LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

opc server into shared variable

Solved!
Go to solution

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

0 Kudos
Message 1 of 9
(4,266 Views)
Solution
Accepted by topic author fmpfmpf

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

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 2 of 9
(4,263 Views)

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? 

 

0 Kudos
Message 3 of 9
(4,254 Views)

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? 

0 Kudos
Message 4 of 9
(4,252 Views)

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

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 5 of 9
(4,249 Views)

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? 

0 Kudos
Message 6 of 9
(4,236 Views)

I will have to defer to NI to answer that question.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 7 of 9
(4,233 Views)

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

0 Kudos
Message 8 of 9
(4,174 Views)

OK. Thanks a lot for the informationSmiley Happy

0 Kudos
Message 9 of 9
(4,153 Views)