Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

How to make the active save-to-file with the data from GPIB ?

Hello,,everybody !!

I want to make the active save-to-file with the data from GPIB since starting the measurement. To save-to-file at the end of measurment is somehow risky for losing the data because my measurment have to take for long time (eg. 24-48 hours).

Thank you in advance for anybody's help !!
0 Kudos
Message 1 of 4
(3,148 Views)
What programming language are you using? It would be easier to point to some examples if that information was provided. If you are already doing a save to file at the end of all your measurements, then you've done most of the work already. Use the existing code but modify it so that it appends data to the file.
0 Kudos
Message 2 of 4
(3,148 Views)
Thanks Dennis,

I have already append, I got it but still have one small problem that between each line it has the blank line. Example as below ,

16:40:33 54.24

16:40:34 54.23

16:40:35 54.24


I want to get rid of the blank line in between.. Do you have the idea about it ?
0 Kudos
Message 3 of 4
(3,148 Views)
Just that when you're writing the data to file you've got an extra CR/LF in there someplace. Without seeing your code (or even knowing what program language you're using), I can't give an exact answer. You can post code to the forum.
0 Kudos
Message 4 of 4
(3,148 Views)