NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

expression to get a field description string

need to get the descrption string in a filed message(for ex. in a numeric data check test the title)..
I need to get this title in string form into another array i have defined globally.
Is there any fucntion to perform this automatically, other than copying each title one at a time
If u know of any method please let me know.
 
Thanks,
Prabuddha
0 Kudos
Message 1 of 5
(3,252 Views)
Hi,
 
I am not sure, but i think this is what youre a looking for
 
Hope this helps
 
juergen
 
--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 2 of 5
(3,244 Views)
Actually what I require is to obtain the field name..
As shown in the attachment..
IF u have any idea let me know 
0 Kudos
Message 3 of 5
(3,241 Views)

Hi

Check this out

juergen

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 4 of 5
(3,234 Views)

Hi Prabuddha,

You are asking for Step Name as a field name.

To get the the Step Name as a Text String use the NameOf() function. This fuction returns string name of the object provided as a parameter. In your sequence put the following line in the pre-expression:

FileGlobals.MessageFieldsNames[0]=NameOf(Step)

This will copy the name of step ("Device Designator" in your case into the global variable)

-Kaustubh Smiley Wink

0 Kudos
Message 5 of 5
(3,208 Views)