Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

NI OPC Client status (connected?) no updating when connection is lost

Hi, 

 

I'm using DSC Module 2009 and OPCTech OPC Server.

 

I'm reading the value of the connection between the OPC Server and the NI OPC Client via a shared variable called "connnected?" in the NI OPC Client variable. The problem is that when I turn off the OPC Server, the value of the Shared Variable added to the project associated to the "connected?" boolean in the NI OPC Client doesn't changed to false, it stay on.

 

If I open NI Distributed Manager 2009 and refresh value, it then turn off. It doesn't changed by itself?

Weird thing : If I turn off the OPC Server and refresh Variable in NI Distri Manager, the boolean change to false (ok..) and the variable change back to True when the OPC Server became back on? it is working in one way....

 

Thanks for your help.

Patrick

Message Edited by paubine on 08-27-2009 02:01 PM
Message Edited by paubine on 08-27-2009 02:01 PM
Message Edited by paubine on 08-27-2009 02:03 PM
0 Kudos
Message 1 of 4
(3,725 Views)

What are the shared variable settings?

Could you attach a screenshot of the Varaible properties so we can see how and where you are binding the shared variable.

 

0 Kudos
Message 2 of 4
(3,685 Views)

Here is the properties of the shared variable .

 

Thanks for helping.

Patrick

0 Kudos
Message 3 of 4
(3,682 Views)

So your binding looks good, a few other questions.

 

How often are you reading the Shared Varibale in your LabVIEW Application? (screenshot of the read code)

If you check the "show trend" box in DSM do you see the graph update correctly?

0 Kudos
Message 4 of 4
(3,661 Views)