LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I need read data from serial port and write data file

I have LabVIEW 3.x , I need read data from serial port and write data file, I try to write a library but don't work. Can you send me a VI example for this version?, Thanks
0 Kudos
Message 1 of 2
(2,876 Views)
Hello,

I could not find any example Serial and/or File I/O examples on the NI website that go as far back as LabVIEW 3.x. However, I noticed that LabVIEW 3.x has all the standard functions for Serial I/O and File I/O. You would want to use the sequence of Serial Port Init >> Serial Port Write >> Serial Port Read to get the data from your Serial Port, then you would use the sequence Open/Create/Replace File >> Write File >> Close File for saving the data. There are examples that ship with LabVIEW 3.x that demonstrate these programming techniques...you can look in the /LabVIEW/Examples/INSTR/SMPLSERL.LLB for Serial Examples and /LabVIEW/Examples/FILE/SMPLFILE.LLB for File I/O examples.

Also, make sure to check out http://www.ni.com/labview to learn about LabVIEW 6,
the latest version of LabVIEW. An upgrade to this version would only be $395 if you are a registered LabVIEW user!

Have a great day,

Darren Nattinger
Applications Engineer
National Instruments
Message 2 of 2
(2,876 Views)