NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Opening ini files

Hi everyone,
 
I need to access files (preferably ini or .txt) from CVI. I have searched this site but could only find read/write to excell files. Is there anyone who could either point me in the right direction or provide some samples. Thanks!
 
Kat
0 Kudos
Message 1 of 7
(4,666 Views)

Did you search the CVI board for 'ini file'? I did and came up with 118 results.

There is an entire set of ini file functions in toolslib\toolbox. Load the .fp file.

p.s. For CVI questions, you should post to the CVI board.

0 Kudos
Message 2 of 7
(4,652 Views)
Omg, sorry, that was a typo. I know how to handle ini files in CVI. I meant to say Test Stand.
 
~Kat
0 Kudos
Message 3 of 7
(4,646 Views)
Okay, I figure it out.
 
Test Stand can have access to any CVI tools by
1.) Create and action
2.) Locate the .obj of the library you wish to use.  //I don't have the .dlls for these libraries
3.) Perform the same function calls as if you are writing code.
 
I can't believe I missed that.
 
0 Kudos
Message 4 of 7
(4,644 Views)

Nevermind, the inifile.obj doesn't work. I get wierd parameters that don't make sense. Can anyone point me in the direction to find the .dlls which contains functions like

ini_New(int)

ini_ReadFromFile(string, string)

Or explain why I get crazy parameters from the .obj file?

0 Kudos
Message 5 of 7
(4,643 Views)
What I do in TestStand is to call kernel32.dll and GetPrivateProfileStringA. Here's a simple example.
Message 6 of 7
(4,639 Views)

small corrections (TS2010SP1)

0 Kudos
Message 7 of 7
(3,837 Views)