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.

NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

get all the local variables

Hi,

   I found several API calls to get/set the local variables, if i know the name of the variable. However, if i want to get the list of variables from locals, parameters etc., how should i be able to get this from "ThisContext".

Thanks,
Regards,
Aparna

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

Hello Aparna,

to get the number of Locals in a sequence
(1) Use the method GetNumSubProperties("Locals") and store the Return Value (= Number of Locals).
(2) Loop on a step that uses GetNthSubPropertyName("Locals", ...) to get the names of the locals.

Best regards, Guenter

Message 2 of 3
(2,981 Views)
Message 3 of 3
(2,973 Views)