12-14-2009 06:21 AM
Hi guys,
The problem is connecting to a mass spectrometer, for which I have a dedicated LAN cable connection and an IP address. I can ping the device, and connecting to the OPC server works with the Softing OPC client, by manually entering the IP address of the server. However it does not show up in the remote machines list when I try to connect to it with via new I/O server. Is there a way to connect directly to an OPC server having only it's IP address?
12-17-2009 04:56 AM
Still I have not solved this problem. Maybe I should put up more specific information?
* I'm using LabVIEW 2009 with the DSC module
* I want to connect with an OPC server on a device which is directly connected to the PC via ethernet cross cable.
* The OPC device does not show up as a windows PC in the network list, but I do have it's IP address
* Connecting to the OPC device works fine with the Softing OPC client in manual mode
Can anybody give some suggestions on how to connect to this OPC device from LabVIEW?
12-18-2009 01:28 AM
Hi,
What is OPC-server version maybe DA 2.0 or lover? I have noticed that it is normal that you cannot browse OPC-items from LV. When you set OPC server IP address to LV IO-server can you find your OPC server prog id from list?
If you find it you can manually program variables. You just need to write OPC-item names to variables. Variable will be connected even it is not browsable.
12-18-2009 02:06 AM
Dear JasperS,
did you register the OPC server to your shared variables? Please use tools => shared variables => register computer
here you can fill up the correct IP address. I found also this KB if you have any further troubles.
Best regards,
12-18-2009 02:30 AM
Hi SnowForest: From what I gather from the Softing client is that it is actually running both a 2.0 and a 3.0 OPC server. If I manually enter the IP address into the 'machine' field it gives the following error:
----------------------------------
Unable to browse OPC Server from the selected machine.
Error -2147467262 occurred at GetOPCServerList.vi
Possible reason(s):
LabVIEW: (Hex 0x80004002) No such interface supported.
----------------------------------
12-18-2009 03:13 AM
Dear ninImartijn,
Thank you for the suggestion and the document.
After registering the server it shows up in the list when I try to make a shared variable. Still it is empty there. And also it does not show up in the list when creating a new I/O server. Is there more I should do? I haven't worked with the shared variable engine before.
I do not think the KB will help, as the machine should accept any login. Also the question there is to connect to it with DSC after DS is already working. I already tried to get DS working following the OPC examples in LabVIEW, but that doesnt work for me either (error 56 from the DataSocket Open block).
Any ideas?
12-18-2009 04:20 AM
Can you send a screenshot of pop-up window where you wrote a machine name? Also send a screenshot about one variable settings which you want link via OPC. As I said it normal that OPC-server it is not browsable. I get that error often but still my OPC-communication works fine.
Have you tryed set set diagnostics on from IO-server? It will print a log file about OPC-commuincation. There might be a useful errors and messages.
Have you compared DCOM settings between your own OPC-client and LabVIEW shared variable engine?
Check this document: http://digital.ni.com/public.nsf/allkb/5C8A90CD57B279F286256C2C006F1EB4
12-22-2009 10:42 AM
Hi SnowForest, thanks for your suggestions!
I have included a screenshot of my situation. On top you can see the Softing OPC client connected to the server with some of the variables I want to link. Below is LabVIEW which gives an error when I enter the IP address in the 'machine' field.
The document you link to assumes that the server is running Windows and I can modify its network settings. I don't believe it is running Windows. The OPC server is a given to me, and I should just connect to it like the Softing client is doing.
Maybe the screenshot gives you some ideas?
12-23-2009 12:29 AM
Hi,
I'm strongly think that major problem is DCOM settings. Because you are able to read variables from other client firewalls and such things might be okay.
Have you tested browse variables with server explorer? You can find it here: http://joule.ni.com/nidu/cds/view/p/id/569/lang/en
Have you done these (which is described previous link suggestion):
On the client side, reconfigure National Instruments' Variable Engine
service to run as a specific user account that has been granted DCOM
privileges. To reconfigure the National Instruments Variable Engine
follow the steps below
01-04-2010 04:02 AM
Our lab was shut down for the holidays period, so I couldn't try anything for a while. Back on it now though. 🙂
Thanks for your suggestions! However, I still can't reach the server. Some more details in this post.
Anyone?