LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to set numeric representations of TestStand expression control

Hi,

A TestStand step type was developed in CVI which uses TestStand expression control ( TS_ExprCtrl_Create() ) in UIR that the user able to define TestStand variables as input/output of the step type.

The expected type of variable was set ( TS_ExprCtrl_SetRequiredTypes () ) to string ( TSUIConst_ValidExpressionType_String ) and Array of Number ( TSUIConst_ValidExpressionType_NumberArray ).
It was working fine as long as one of the user tried to specify Array of Numbers {Unsigned 64-bit Integer} as input parameter. (default is Double Precision 64 bit Floating Point in TestStand)
Array of Numbers {Unsigned 64-bit Integer} causes:

"Evaluation error: Expected String or Array of Numbers, found Array of Numbers {Unsigned 64-bit Integer}.

NOTE: Numeric representations must match exactly."

I try to find solution in Help to set the expected representation of the number variable in my code but without any luck.
Is there any way to configure the expect representation of the input field in my step type to able to define Array of Numbers {Unsigned 64-bit Integer} as input/output variable.

The best would be if my step type GUI could accept both representation and my code could handle the differences.
I try to avoid the solution converting arrays in TestStand.

 

Thanks

0 Kudos
Message 1 of 2
(1,445 Views)

In the meantime I was able to update my code to read /write number variables stored in any representation.

My only problem is that uir is showing evaluation error if the number variable is not in the default Double Precision 64 bit Floating Point format.

How can I configure the API evaluation function in CVI to accept all three numeric representations in my step type?

 

Regards,

0 Kudos
Message 2 of 2
(1,401 Views)