LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Opc without dsc

Is there any way to Run labview as opc-client or fetch Data from a Third Party opc client without dsc or run-time Module?

I have labview 2015, 64bit running, so no datasocket
0 Kudos
Message 1 of 9
(4,708 Views)

I believe there is.  So if you want to be an OPC Client to an existing server you can get away with using Datasocket.  Here is an example but I think there is also one in the example finder.

 

http://digital.ni.com/public.nsf/allkb/9ECBED80EBA9D2A48625672400653220

 

If you don't have a server and need one, you can either run Kepware, NI OPC, or I think RSLinx.  But if you want to run the newer OPC UA I believe you can make a server in LabVIEW with either the DSC toolkit, or I think just the RT toolkit.  There is an example in the example finder called OPC UA Demo, the front panel makes it sound like you just need RT but I'm not sure when that example or the OPC UA Server code got installed, it might have been with DSC.

Message 2 of 9
(4,676 Views)

Thank for the reply.

 

I've read everywhere that opc via datasocket doesn't work with Labview 64Bit. Can you confirm or deny that? But i will try your solution on Monday and report.

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

I can't confirm that, I have never known anyone personally to use LabVIEW 64 bit and I don't have it installed to test with.  Unlike other 64 and 32 bit software, NI hasn't fully adopted it for all their toolkits.  But all toolkits do support 32 bit, so everyone I know just runs LabVIEW 32 bit on Windows 64, if you don't really need the increased maximum amount of memory that the application can allocate, I also suggest sticking with 32 bit LabVIEW.

 

http://www.ni.com/white-paper/10383/en/

Message 4 of 9
(4,662 Views)

sadly it's not my decision which version to use, but in the end, if nothing works out, we're gonna switch.

just wanted to make sure i'm not missing something obvious

0 Kudos
Message 5 of 9
(4,653 Views)

@Unidaim wrote:

 

I've read everywhere that opc via datasocket doesn't work with Labview 64Bit. 


Where is "everywhere"? It typically helps to actually give links to the top information sources you used.

Why are you using 64bit LabVIEW? Any particular reason?

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

sorry, forgot:

 

http://zone.ni.com/reference/de-XX/help/371361M-0113/lvconcepts/opc_dev_clients/

"Hinweis  LabVIEW (64 Bit) unterstützt keine DataSocket-Verbindungen mit einem OPC-Server."

translates to "Attention: LabVIEW(64bit) does not support DataSocket-Connections with a OPC-Server"

edit: found the english version:

http://zone.ni.com/reference/en-XX/help/370051V-01/toolslib/cvidatasocket_overview/

 

no, we do not have a specific reason why the machine is set up with 64bit LabVIEW, it's probably that nobody was aware of the Problem. I'm just evalutation the hassle of making it work with something else vs. setting it up with 32bit.

Message 7 of 9
(4,646 Views)

Kudo for teaching me something I didn't know, but will probably need to know for my job if/when we go to 64 bit.

 

Sounds like your options are use LabVIEW 32 bit, wait for Datasocket to support OPC on 64 bit, or wait for DSC to be supported on 64 bit (because apparently it isn't either).  There maybe some other crazy custom options like 3rd party software but I wouldn't know where to start with that.  Really sounds like you are stuck which sucks for sure.

 

Oh there is also this OPC UA thing that comes with either DSC or Real-Time which I mentioned earlier.

 

http://zone.ni.com/reference/en-XX/help/370622M-01/lvmve/using_opcua/

 

If it comes with LabVIEW RT and RT supports 64 bit, then I'd hope this toolkit has a 64 bit option.  Again I can't test, I just installed 32 bit LabVIEW, 32 Bit RT, and DSC and noticed it on the palette.

Message 8 of 9
(4,627 Views)

@Unidaim wrote:

sorry, forgot:

 

http://zone.ni.com/reference/de-XX/help/371361M-0113/lvconcepts/opc_dev_clients/

"Hinweis  LabVIEW (64 Bit) unterstützt keine DataSocket-Verbindungen mit einem OPC-Server."

translates to "Attention: LabVIEW(64bit) does not support DataSocket-Connections with a OPC-Server"

edit: found the english version:

http://zone.ni.com/reference/en-XX/help/370051V-01/toolslib/cvidatasocket_overview/

 

no, we do not have a specific reason why the machine is set up with 64bit LabVIEW, it's probably that nobody was aware of the Problem. I'm just evalutation the hassle of making it work with something else vs. setting it up with 32bit.


That's what happens when you no one consults an expert until too late in the discussion.  😉

 

I would lobby hard for LV 32-bit unless you are expecting gargantuan chunks of data that cannot be broken down into bite-sized pieces.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 9 of 9
(4,578 Views)