NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

fopen("file.txt", "r") fails to find file after TestStand has been opened and closed.

The code fopen("file.txt","r") returns NULL after TestStand is closed and reopened. If I delete and then add the path to file.txt in Search Directories, fopen will work again until TestStand is closed and reopened.
0 Kudos
Message 1 of 2
(2,952 Views)
Icebiker,

Are you using this function within TestStand or calling this code directly from TestStand? fopen isn't recognized as a TestStand function; it is a C function. If you are inside your C programming environment when you call fopen, I'm not sure if the TestStand search directories would make a difference from your C code module. Would it be possible for you to post an example that demonstrates this? If not, a more detailed explanation of how your system is set up and where the fopen call takes place would be great.

Thanks!
Shannon R
Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(2,952 Views)