06-17-2010 11:25 AM
Hello,
I am writing a program to read hundreds of OPC signal from a server. The server is a localserver in the PC but its not a Labview server. My labview program reads the OPC signal thru data socket into a Labview Library.(Variable type=single process)
This way is working but not optimal. I have read in Help that I can use a Network-published shared variables. Does this Network-published be able to read the signal from my opc server thru a network path without using data socket? Must it be a Labview server?
this is an example for my opc address
opc://localhost/hteControl_OPC_DA_Server/PLC_FI010_ValueLimit_SP
Thanks
Solved! Go to Solution.
06-17-2010 11:30 AM
fmpfmpf wrote:Hello,
I am writing a program to read hundreds of OPC signal from a server. The server is a localserver in the PC but its not a Labview server. My labview program reads the OPC signal thru data socket into a Labview Library.(Variable type=single process)
This way is working but not optimal. I have read in Help that I can use a Network-published shared variables. Does this Network-published be able to read the signal from my opc server thru a network path without using data socket? Must it be a Labview server?
this is an example for my opc address
opc://localhost/hteControl_OPC_DA_Server/PLC_FI010_ValueLimit_SP
Thanks
LV-DSC (Data Logging and Supervisory Control) aloows you to "bind" the NSV to an OPC server.
As long as the server os OPC compliant it should work and has ben the case for me.
Ben
06-17-2010 11:49 AM
LV-DSC (Data Logging and Supervisory Control) aloows you to "bind" the NSV to an OPC server.
As long as the server os OPC compliant it should work and has ben the case for me.
Ben
_______________________________________________________________________
I read through the Help from Labview. It say:
NI-PSP Networking Technology Dim hasPlayer, playerversion hasPlayer = false playerversion = 10 Do While playerversion > 0 On Error Resume Next hasPlayer = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & playerversion))) If hasPlayer = true Then Exit Do playerversion = playerversion - 1 Loop is_FlashVersion = playerversion is_Flash = hasPlayer
An NI-PSP data item can be a shared variable in a LabVIEW project other than an active project or a data item on a connected server or device, such as an OPC server or FieldPoint module.
So it means for this case, my server program must be a Labview Program. It doesnt work for other OPC server. Am I right?
06-17-2010 11:50 AM
I read through the Help from Labview. It say:
An NI-PSP data item can be a shared variable in a LabVIEW project other than an active project or a data item on a connected server or device, such as an OPC server or FieldPoint module.
So it means for this case, my server program must be a Labview Program. It doesnt work for other OPC server. Am I right?
06-17-2010 11:58 AM
fmpfmpf wrote:I read through the Help from Labview. It say:
An NI-PSP data item can be a shared variable in a LabVIEW project other than an active project or a data item on a connected server or device, such as an OPC server or FieldPoint module.
So it means for this case, my server program must be a Labview Program. It doesnt work for other OPC server. Am I right?
KepWare
RSLogic
are two that came to mind that I have used that are not NI or LV.
Ben
06-17-2010 02:09 PM
KepWare
RSLogic
are two that came to mind that I have used that are not NI or LV.
Ben
Sorry. I don't really understand what you mean.
My question is:
My OPC Server is from another program in my pc. Is it possible to read it through the NI-PSP?
06-17-2010 02:12 PM
I will have to defer to NI to answer that question.
Ben
06-21-2010 06:32 AM
As Ben has already stated correctly, LabVIEW DSC is required to bind a shared variable to an OPC item. Without LabVIEW DSC NI-PSP can't communicate with OPC-Servers, regardless which vendor.
Kind regards,
Jochen Klier
National Instruments
06-21-2010 06:48 AM
OK. Thanks a lot for the information