LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is available DSC Opcdemo source code?

For development and testing purpose I want create an OPC server like Opcdemo supplied in DSC for Labview.
Is available the source code of the Opcdemo (NationalInstruments\datasocket\opcdemo.exe) or an equivalent OPC server example best if in Labview?

Thanks in advance Massimo.
0 Kudos
Message 1 of 3
(3,240 Views)

Hi Massimo,
in Labview it is possible to create an OPC Server using specific DSC VIs. You can find complete information in the manual called "VI-Based Server development Manual":

https://www.ni.com/docs/en-US/bundle/370260b/resource/370260b.pdf

Consider that a VI-based server is a data server that is written in LabVIEW, unlike an OPC server, which is typically written in Visual Basic or C++.
Like any server, a VI-based server can be a real I/O server for a device,a simulation server as in the Cookie Factory example, or a computational server doing complex computation for your application and serving the results as items.

You can find examples about VI-Based Serve in C:\Program Files\National Instruments\LabVIEW 7.1\examples\lvdsc\servers.

I hope this help you.

MarcoC

Message 2 of 3
(3,220 Views)
Thank Marco this is exactly wath I'm looking for, I need to create a virtual server of the real hardware to test my DSC application. If I correctly understand it is possible to swap from real and virtual server only changing the .scf file and use VI sever front panel to set virtual hardware I/O.


PS se ho indovinato sei il Marco che ci ha tenuto questo mese a Milano il corso custom di Labview, ciao e grazie!
0 Kudos
Message 3 of 3
(3,213 Views)