LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

OPC UA read from created OPC server

I need help if someone can do please about the following:

I need to acquire data (read) from software called PumpWorks using OPC server. The PumpWorks is creating an OPC server automatically once opened and get started providing flow rate, pressure, and temperature. what I need is to understand how to create a labVIEW code to read from this OPC server. Thank you.  

0 Kudos
Message 1 of 12
(586 Views)

Do you have the OPC UA Toolkit? https://www.ni.com/nl-nl/shop/product/labview-opc-ua-toolkit.html

 

Rolf Kalbermatter
My Blog
0 Kudos
Message 2 of 12
(576 Views)

Not yet, I am planning to get it and want to make sure that will help before getting that toolkit. I still need to know is OPC UA toolkit will be enough to done this job or I need to get another additional toolkit. 

0 Kudos
Message 3 of 12
(573 Views)

If that software provides an OPC UA server and not an OPC DA server (old OLE based OPC) then it will most likely work. There might be minor problems for accessing complex data elements (structures and similar) but as long as you try to access scalars and/or arrays of basic data types (floats, integers) it should work. Another potential problem could be advanced security protocols and certificates but since you are apparently operating on the local machine this should be not necessary.

Rolf Kalbermatter
My Blog
0 Kudos
Message 4 of 12
(546 Views)

Thank you soo much for your support. I just have a question, is LabVIEW 2024Q1 is supporting DDE communication protocol ? 

0 Kudos
Message 5 of 12
(510 Views)

Not really!!

 

There is a DDE library present in vi.lib/Platform/dde.llb, but it is not available on the LabVIEW palette anymore and unsupported since many many years.

 

Disadvantages:

- NI has declared it obsolete over 10 years ago and removed it from the palette but left it in there for backwards compatibility reasons

- You will be hard pressured to find any examples for it anywhere

- it uses a CIN underneath which can't be ported to 64-bit LabVIEW. LabVIEW at some point in the not so far future will move to 64-bit only and then it will be definitely gone.

- it lacks certain DDE operation that may or may not be important for your use case

- it's a technology that Microsoft pretty much has abandoned many many moons ago too

- DDE is dog slow

- if you run into problems nobody will be able to help you and NI support will ask you: DDE, What???

 

Advantages:

- none really

Rolf Kalbermatter
My Blog
0 Kudos
Message 6 of 12
(502 Views)

I know that it is very old, but the pump system I am using (Quizix pump) with operating software called PumpWorks is only using DDE and OPC protocols to read and write data from and to the PumpWorks software. So, your advice is to use OPC instead of DDE!! I still think that very few examples for OPC protocols are available. 

0 Kudos
Message 7 of 12
(497 Views)

If it is that old that it supports only OPC and DDE, I'm very much afraid that you trying to use OPC UA is definitely barking up the wrong tree too!

 

OPC UA is based on internet protocols over TCP/IP and while not brand new, it's still a fairly recent technology. OPC DA based on Microsoft OLE was the next hot thing after DDE, but that is 25 years ago too. Microsoft was embracing it since their OLE technology was suited to lock in everyone into the Windows platform. (While there were attempts by other parties to provide OLE and OLE for Process Control (OPC), some even with license deals with Microsoft for other platforms including Linux, this never really took off. Microsoft enabled it with their license deals but at the same time made sure to push them into the corner far enough that they never really made any chance).

 

The good news is that there might be a possibility to access OPC DA items as Datasocket channels in LabVIEW, but that is a very old technology too and might be not working reliably anymore too.

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000P7fWSAS

 

Rolf Kalbermatter
My Blog
0 Kudos
Message 8 of 12
(488 Views)

Do you think that I need to contact the manufacturer about that and ask for assistance since I don't have other option to done my work !!  

0 Kudos
Message 9 of 12
(477 Views)

@Omar-Abdelhameed wrote:

Do you think that I need to contact the manufacturer about that and ask for assistance since I don't have other option to done my work !!  


It's your project! I have no idea what this PumpWorks software is. And it may be so old that the actual manufacturer doesn't exist anymore or at least doesn't want to be remembered about this software anymore. 😀

 

It still would seem to me the most likely source to get some more information, even though I would keep my hopes low about that if I was in your place.

Rolf Kalbermatter
My Blog
0 Kudos
Message 10 of 12
(471 Views)