LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

file

Hi,

               I am trying to read a values from an .csv file using labview. When i run my VI it asks the path for the file from which it has to read from. But if i close the VI and open it again to run then it asks me to load the path of file. Is it possible to set default path for the file . If so can you please tell me how to implement it.

 

 

Thanks & Regards,

Vikas P N

 

0 Kudos
Message 1 of 5
(2,770 Views)

Are you talking about the Read from Spreadsheet file VI? All the file reading will have a Path terminal and if you wire the file path then you won't get any pop-up message. Select the VI and Press Ctrl+H for more details.

-----

The best solution is the one you find it by yourself
0 Kudos
Message 2 of 5
(2,768 Views)

Hi,

                Actually my question is I need to feed the path for a file in path terminal everytime when i run a VI . Is it possible to set a default path instead of loading the path everytime when I run a VI.

 

 

Thanks & Regards,

Vikas P N

0 Kudos
Message 3 of 5
(2,762 Views)

You can create constant file path instead keeing the path as a control. Please show the code for better understanding on what you are trying to do.

-----

The best solution is the one you find it by yourself
0 Kudos
Message 4 of 5
(2,754 Views)

If you want to have the control on the front panel (so you can change the path) you can set the default (of any control) by right clicking on it and going to Data Operation -> Make Current Value Default.

 

Then, everytime you load the front panel it will use the default value.

 

You can also set the value programmatically when your software starts by using property nodes / local variables (sparingly!).


LabVIEW Champion, CLA, CLED, CTD
(blog)
0 Kudos
Message 5 of 5
(2,742 Views)