LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

write number in a txt file

I have a VI, she give me as result 2 number, I want to stor these numbers in two different texte file.
I found no fuction to do that.
 
thank you for your help
0 Kudos
Message 1 of 6
(3,608 Views)
Hi,

simply use the standard ansi c functions.

fopen()  to open a file
fwrite() and fread() to access the data which are in the file you opened
fclose() to close the acces to the file

Regards

     NI_Device_user
0 Kudos
Message 2 of 6
(3,600 Views)
I dont want to use C laguage I only need to make it with VI
 
 
thanks
0 Kudos
Message 3 of 6
(3,597 Views)
0 Kudos
Message 4 of 6
(3,594 Views)
You should post that question to the LabVIEW forums instead of the LabWindows/CVI forums.

NickB
National Instruments



0 Kudos
Message 5 of 6
(3,581 Views)

You could use WriteToTextFile.vi properly formatting your data into a string: see the example Write To Text File.vi (formatting will depend on wether your data are an array of measures or a single value).

To format your numbers you could use Build Text express vi or some vi from the String/Number Conversion palette.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
Message 6 of 6
(3,559 Views)