LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How do you make a program draw data from a file of the users' choice, using LabWindows/CVi? Thank-you very much. All your help is greatly appriecated.

I have constructed a program that draws data from a text file that I have specified, but I was interested in changing that aspect of the program. I wanted to sat up my file as a default file,and then allow the user to input the own file. Currently, I have the program set up in the followng way:

This item is declared as a global variable in the program.
static FILE *stream; //Acts as a pointer to a file
//Test run-Proves Testing Is Succesful

This item is in the open cvi callback function
err = GetFileInfo ("E0.txt", &Pointer);

All help is greatly appriecated. Thank you very muc
h.
EF
0 Kudos
Message 1 of 2
(2,718 Views)
There is a function called FileSelectPopup, that will popup a file selection dialog for the user to select a file. Call this function and it will return a string that tells you the file name and path they selected.

Best Regards,

Chris Matthews
National Instruments
0 Kudos
Message 2 of 2
(2,718 Views)