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: 

Variant to Data Error

Hi all,

 

When I run the below mentioned code in 2010, it is popping the error message.

 

But when I run the same in 8.6, it is not popping the error message.When I connect the indicator, it is updating the indicator with the Error.

 

I verified, the Error handling in Tools->Options. That are set properly.

 

 

 

 

 

 

Thanks,


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

Hi g,

 

which error message?

Could you attach a VI instead of a picture?

 

When the variant input contains a boolean value then you don't get an error. Otherwise you get error 91 - the error description is quite clear...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 4
(2,256 Views)

Sorry for missing the attachments.

 

Please find the attachments for the VI, Error message, and the settings that i have.

 

Error is popping in 2010 LabVIEW.

 

But I have the same code opened in 8.6 LAbVIEW, it is not popping up the Error.

When i connect the error indicator, it is showing the error in the indicator. But if indicator is not connected, it is not throwing any error message(i.e default LabVIEW Error pop up if error occurs and indicators are unwired).

 

I checked the settings in Tools-->Options which are set properly.

 

Please let me know the cause.

 

Suresh

Download All
0 Kudos
Message 3 of 4
(2,231 Views)

What created the variant you are trying to convert back to data?

 

Apparently the data in the variant is not a boolean datatype.

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