LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Valid shared variable output does not work!

I am having a problem getting the string to shared variable to function correctly.  Specifically the "Valid Shared Variable?" output.  It always give a false output even when I know the variable is deployed.  Could it be that it only functions correctly on shared variables from the localhost and not a remote system?  If so is there another way to check?

 

Thanks

Todd

0 Kudos
Message 1 of 4
(3,242 Views)

Todd,

 

Is this an IO variable made with an IO server? If so, this is a known issue that they always output 'False'

 

As far as nework variables on remote systems, I can try this out and let you know if it works or not.

Rob K
Measurements Mechanical Engineer (C-Series, USB X-Series)
National Instruments
CompactRIO Developers Guide
CompactRIO Out of the Box Video
0 Kudos
Message 2 of 4
(3,222 Views)

Thanks for the reply Rob,

  Yes this is a variable made by an IO Modbus server on a remote system.  I searched all over and didn't find find this as an issue but thanks for brining it to my attention.  Is there another way to verify the validity of a shared variable?

 

Thanks

Todd

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

There is a community example on this at http://decibel.ni.com/content/docs/DOC-3861

 

The DLL is included in DSC, but if you have 2009 you may have to relink it. There is a boolean output for valid in this as well. Pop this in a subvi, and you have the functionality you are looking for.

Rob K
Measurements Mechanical Engineer (C-Series, USB X-Series)
National Instruments
CompactRIO Developers Guide
CompactRIO Out of the Box Video
0 Kudos
Message 4 of 4
(3,200 Views)