From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

open variable connection for entire module

According to this white paper http://www.ni.com/white-paper/8071/en "The ability to read and write I/O values to an entire C Series module as an array was added as native functionality in LabVIEW 2010." On the RT side, I am able to wire the Open Variable Connection using the notation for the entire module and get an array output from the Scanned Variable Read.  However, I am not able to do so on the host side. I get the error -1950678944 LabVIEW:  (Hex 0x8BBB0060) The Class Identifier property of the variable object specified in the variable identifier URL is incompatible with the refnum configuration. The class of the variable object is not equivalent to or does not derive from the class you configured for the refnum. This error might occur if you try to reference a Variable object, but the specified variable identifier URL does not reference a Variable.

 

RT side Open Variable Connection

RT Side Open Var Connection.png

 

Host side Open Variable Connection

Host Side Open Var Connection.png

I realize the issue is with the refnum but when I browse using the Browse Variable Objects browser on the RT side, it allows the selection at the module level but does not on the host side.

 

RT side browse allows module selection indicated by bolded module and greyed channels

RT Side Browse Var Objects.png

 

Host side browse only allows channel selection indicated by greyed module name and bolded channel names

Host Side Browse Var Objects.png

0 Kudos
Message 1 of 4
(2,711 Views)

Hello,

 

I think this feature is reserved just for user-defined I/O variables. Take a look to the next document, I think I could help.

http://zone.ni.com/reference/en-XX/help/371361G-01/lvioscanhelp/io_vars/

 

Regards,

 

Richard.

0 Kudos
Message 2 of 4
(2,635 Views)

Did you ever solve this? i'm having the same issue right now.

 

https://forums.ni.com/t5/LabVIEW/Scanned-variable-read-function-all-channels/m-p/3794475/highlight/f...

 

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

I figured it out. The refnum has to have the correct class. see image below. 

image.png

0 Kudos
Message 4 of 4
(2,429 Views)