LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

append data to binary file

hi, im trying to make a temp sensor that takes measurements every nth second and then save the data to one binary file. the measurement bit works ok but i cant get it to append properly [or i cant read it properly im not sure]
ive attached the acquire vi, read vi and .dat binary file contianing 87 voltage readings [hopefully!] im not sure if its the write or reading thats out but ive tried changing the format the binary is read in and nothing seems to work.
oh also please ignore the fft bit on the read vi as it was being used for vibration
 
thanks
 
andy
0 Kudos
Message 1 of 2
(2,546 Views)
You need to read the data in the exact same format as you write it, you don't seem to be doing that. You write it as a flattened contatinated string of the array and a carriage return. However you are reading it back as dbl, you have to read it back as the same then convert it. However you could really just put the array output of the Daqmx read into the write binary and read it back the same (just change the single dbl type to an array dbl type in the read binary function).
________________________________________________________

Use the rating system, otherwise its useless; and please don't forget to tip your waiters!
using LV 2010 SP 1, Windows 7
________________________________________________________
0 Kudos
Message 2 of 2
(2,532 Views)