06-16-2009 05:18 PM
I am using two cFP-1808s and programming in VS 2005 C#. Is there any way to determine in code wether the cFP-1808s are powered on? I am using datasockets to read data and have discovered that if you connect to a datasourse that does not exist, the server crates the data source with a default value of 0. This causes a problem when I try to disconnect, the programs just hangs after the datasocket.disconnect() command.
Willy
07-09-2009 12:54 PM
07-10-2009 01:49 PM
Then why is it allowed to connect to a datasource that does not exsist?
Willy
07-13-2009 09:12 AM
Even datasocket should give you an error message, if an address is not correct, because the module is not there or its a different module, or network is down or the 180x is not powered up correctly.
So checking the status comming back from your datasocket function should fix this issue.
DirkW
07-13-2009 11:08 AM
07-13-2009 02:40 PM
08-04-2009 10:55 AM
I found the RT System Replication VIs very useful in detecting whether a RT target is online. Check the article below.
http://zone.ni.com/devzone/cda/tut/p/id/3937
Volker