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,970 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,965 Views)
Message 3 of 3
(2,957 Views)