NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to call a .ini file from a TestStand sequence (ex: display a message box using a .ini file text) ?

Thank you for your help.
 

Message Edité par Ralphi le 09-26-2005 03:26 AM

0 Kudos
Message 1 of 4
(3,654 Views)

You will need to use the GetResourceString method. A good place to start is here: http://zone.ni.com/devzone%5Cconceptd.nsf/webmain/E835479AA4E7CB2486256BEB006B4925

Hope this helpsSmiley Happy

kph

0 Kudos
Message 2 of 4
(3,618 Views)

If the ini file is not a TestStand string resource file, just call whatever function/vi/method is most convenient to get the strings you want from your file into local variables.  If you don't have your own function, you could always use the Windows SDK function GetPrivateProfileString in Kernel32.dll (refer to Windows SDK for details).

You can then put your local variable in the Message Expression field of the Message Popup step, either by itself, or concatenated with other variables and string constants to form a larger message.

0 Kudos
Message 3 of 4
(3,614 Views)
Thank you for your help. It works !
0 Kudos
Message 4 of 4
(3,490 Views)