LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

how to create a file with name give at run time?

hi,
the open/create file vi accepts file name as file path type and not a string,
i want to assign file name through a program,
please tell me how to do it,
if you can attach an example it will be halpful
thank you
akash


0 Kudos
Message 1 of 2
(2,812 Views)

Hi Akash,

 

you are wrong here, as you are asking a LabVIEW Question, you shoul post it in the LaBVIEW section, not in the CVI section. Take care the next time 😉

Anyway, here to your question:

Ther is a VI, that can "translate"  a string into the file path type. You can find it in the function palette:

Programming >>> File I/O >>> Adv File Funcs >>> string to path

Attached you can find an example, that uses a user defined prefix and the date to generate the path and filename dynamically.

Hope this helps!

 

André

 

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