VeriStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to Use the VeriStand System Definition .NET API GetVariantProperty Method Outputs

Oh hi!

 

Unfortunately, the help document for this method doesn't provide much additional insight, so I'm turning to the fine users of the even finer product that is VeriStand to assist me.

 

How, may I ask, do I use the "type" and "value" outputs to get my original data?

 

 

GetVariantPropert Snippet.png

 

To note, the string constants are just placeholders.

 

Heartfelt thanks,

Mike

0 Kudos
Message 1 of 3
(2,863 Views)

To answer your question in the free label, no you're not even close. Why do you need to access a variant property?

 

Attached is how to unflatten the Type and Data fields (LV 2017).

Note this could change at any time, as this API is unsupported and mostly for NI R&D's internal use.

 

--Eric

Eric M. - Senior Software Engineer
Certified LabVIEW Architect - Certified LabVIEW Embedded Systems Developer - Certified LabWindows™/CVI Developer
Neosoft Technologies inc.

0 Kudos
Message 2 of 3
(2,837 Views)

Hi Eric,

 

Sorry that it's taken me forever to respond, but I really appreciate your quick and helpful response!

 

I'm using a variant because I have several 2D arrays serving as look-ups that can have different lengths and I don't want LabVIEW to append 0s to the shorter ones (see MyData in snippet below).

 

GetVariantProperty.png

 

Do you have any suggestions as to a different approach?

 

Mike

0 Kudos
Message 3 of 3
(2,755 Views)