PXI

cancel
Showing results for 
Search instead for 
Did you mean: 

OPC Help

Solved!
Go to solution

I want to be able to have a NI-PXIe 8135 talk to the NI OPC server so I can in turn have GEs iFIX talk to the NI OPC server and us it as the HMI. 

 

PXIe-8135 <->NI OPC Server <->iFIX


I am running Labview 2017. I bought the HIL and Real-Time Test Software Suite ( http://sine.ni.com/nips/cds/view/p/lang/en/nid/212458) and the NI OPC server ( http://sine.ni.com/nips/cds/view/p/lang/en/nid/209059). 

According to http://zone.ni.com/reference/en-XX/help/370622P-01/lvmve/opcua_pal/, "You must activate the LabVIEW Real-Time Module to use the OPC UA VIs on a real-time target" 

I have the LabView Real-Time Module activated. 

Do I actually need the Labview OPC UA Toolkit (http://sine.ni.com/nips/cds/view/p/lang/en/nid/215329) for these VIs? They do not current show up in "C:\Program Files (x86)\National Instruments\LabVIEW 2017\examples\comm". Plus if I right click on the real-time target in Labview and select New -> I/O Server, I do not see OPC as an option (only EPICS).

Or is there a simpler way to connect to iFIX to get the data off of the PXIe?

0 Kudos
Message 1 of 6
(3,508 Views)
Solution
Accepted by topic author JustinWelch

Justin,

 

Short answer: yes.

 

You have linked to the LabVIEW 2016 Help. From 2013-2016, OPC UA VIs were included in the LabVIEW Real-Time and DSC Modules. in LabVIEW 2017, they were separated into their own OPC UA Toolkit. 

 

OPC with LabVIEW Software Options
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019MwxSAE

Message 2 of 6
(3,493 Views)

Thank you for your reply. 

 

If I am reading about DataSocket correctly though, I should be able to communicate using that? By communicate I mean that I could have an HMI (GE's iFIX) read/write data to the PXIe?

 

Is there a good guide somewhere that explains how to use that functionality?   

0 Kudos
Message 3 of 6
(3,486 Views)

Justin,

 

Here are a few articles about establishing that connection:

 

DataSocket Connections for OPC Items
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000P7fWSAS

 

Connecting LabVIEW to an OPC Server Using Front Panel DataSocket
http://www.ni.com/tutorial/3980/en/

0 Kudos
Message 4 of 6
(3,465 Views)

I bought the OPC Toolkit, dowloaded, installed, and activated. 

 

I would have thought that this meant if I right-clicked on my device, go to NEW>> I/O Server and see OPC Client. All I see is EPICS and Modbus.

 

If I try to downal the OPC UA Demo project, I get the following error.

Failed to load shared library bi_opcua.*:

niopcua_client)closeClient:C.

 

Put simply, I want to have my variables in my program read by an OPC Server. Any suggestions on what else I need to do to set it up? 

 

0 Kudos
Message 5 of 6
(3,380 Views)

Justin,

 

In the LabVIEW OPC UA Toolkit, this is done programmatically. Look through the tutorial below, which has examples on how to do so:

 

Tutorial: Creating an OPC UA Server and an OPC UA Client
http://zone.ni.com/reference/en-XX/help/376230A-01/TOC1.htm

0 Kudos
Message 6 of 6
(3,375 Views)