LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

how do I pass filenames via argv in debug mode?

I'm currently using a wrapper to define fin and fout before calling the targeted function.

how do I pass filenames via argv in LabWindows/CVI8.5? 

 

 

int main (int argc, char *argv[])
{
 char *fin=malloc(132);
 char *fout=malloc(132);
   int i;
 
   F_linux=0;
 /* read in command and process from a file
      ../lrmaster_list.txt
      each line represents a test conditon
  Results are stored in
  ../lrdoodoo1 */
 fin="../lrmaster_list.txt";
 fout="c:/Temp/cct.txt"; 
   i=Irrisefall (fin, fout);
 return(1);
}

0 Kudos
Message 1 of 2
(3,010 Views)

Sorry, I got it now.

 

enter the argv via run -> command line

Don't include the program name

 

then run-> Debug xxx.exe

0 Kudos
Message 2 of 2
(2,998 Views)