LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to convert Variant data to boolean cluster - REST API

Hi everyone,

 

I am trying to convert variant data to Boolean cluster data using "Variant to data function" but I am getting the error 91.

 

I could be able to unflatten json string to variant data successfully, if you look into the image attached.

 

I also tried unbundling the 'SetupState' cluster to 'state'cluster before wiring to variant to data function's type input. But unable to convert the data successfuly.

 

Please share any inputs. Thank you in advance.

0 Kudos
Message 1 of 5
(594 Views)

If you flatten to a JSON string you need to unflatten from JSON. Flatten variant creates a much different result.

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 2 of 5
(593 Views)

I see no image attached

0 Kudos
Message 3 of 5
(550 Views)

Sorry, here is the image. 

Variant to Data.PNG

0 Kudos
Message 4 of 5
(472 Views)

Thanks for the help. I found the issue. The default type input of 'variant to data' is actually a cluster of integer data, but not the cluster of boolean data. Thanks once again.

0 Kudos
Message 5 of 5
(455 Views)