Post on 12-Mar-2020
Software
YouneedthefollowingSoftware:• LabVIEW(LabVIEWProfessionalDevelopmentSystem32-Bit:English)
• NIOPCServers
AllLabVIEWSoftwarecanbedownloadedfrom:www.ni.com/download
Youmayusethemin“EvaluationMode”ifyoudon'thaveavalidLicensekey
WriteDatatoOPCServerReadDatafromOPCServer
LabVIEWApplication#1 LabVIEWApplication#2
InthisExampleLabVIEWApplication #1andLabVIEWApplication#2areonthesamecomputer.Normallytheyarelocatedon2differentcomputersinaNetwork.
NIOPCServers
NIOPCServersADemoversionshouldbeincludedwithLabVIEWDSCModuleorLabVIEWReal-TimeModule
UseSearchinWindows.Searchfor«OPCServers»Andselect«OPCServersConfiguration»
TheOPCFunctionsinLabVIEW
TheDataSocketpaletteinLabVIEW: WriteDatatoOPC
ReadDatafromOPC
OpenConnectiontoOPCServer CloseConnection
toOPCServer
BrowseOPCServersandOPCItems
YoucanuseLabVIEWasanOPCclientbyconnecting toanOPCserverthrough aDataSocket connection.
WriteDatatoOPCServerReadDatafromOPCServer
LabVIEWApplication#1 LabVIEWApplication#2
InthisExampleLabVIEWApplication #1andLabVIEWApplication#2areonthesamecomputer.Normallytheyarelocatedon2differentcomputersinaNetwork.
NIOPCServers
Write toOPCServerusingLabVIEW
OrspecifyURLdirectly:
1 2 3 4
WhileLoop
WhileLoop
UsetheBucketBrigade Items– becausetheycanbeusedforbothreadingandwriting
WriteDatatoOPCServerReadDatafromOPCServer
LabVIEWApplication#1 LabVIEWApplication#2
InthisExampleLabVIEWApplication #1andLabVIEWApplication#2areonthesamecomputer.Normallytheyarelocatedon2differentcomputersinaNetwork.
NIOPCServers
WriteDatatoOPCServerReadDatafromOPCServer
LabVIEWApplication#1 LabVIEWApplication#2
InthisExampleLabVIEWApplication #1andLabVIEWApplication#2areonthesamecomputer.Normallytheyarelocatedon2differentcomputersinaNetwork.
NIOPCServers