LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How save analogdata with labview 8.5

Hi Everybody,
 
I would like to save and read analogdata.
 
I used the function "Messwert" (see analogdata in attachment), but I have the error 8 (see fehler in attachment).
I used the function "Write Waveforms to file.vi" and "Read Waveform from file.vi" (see analogdata_2 in attachment) too, but I have the error 1059.
 
Could say me if I used the good functions?
Could say me why I have these errors and what are the error 1059 and the error 8?
 
Thank you very much for your help.
 
Romantic
Download All
0 Kudos
Message 1 of 4
(3,100 Views)

Is 'Istwert_Drehzal' a folder or a file name? If it's a folder, you will have to include a file name.

Also, the Instrument I/O Assistant is not returning analog data. It looks like you have it configured for digital so I don't know what you are actually trying to save.

0 Kudos
Message 2 of 4
(3,097 Views)

Thank you for your answer.

I would like to save and then read a number. I read this number by a sonde to know the type of this number. The number is "118" (look the example in attachment). For me, it is an analoge data and not digital.

I would like to save this number and then to read it. I used the fonction to write and read a digital data and I have no error.

The problem is, I read on my front page "Sollwert_Drehzahl=0" (look the example_Fontpage in attachment) and I saved "0 v". With the Ascii table, 118=v.

How is it possible to read the number "118" and not "0"?

Thank you for your help.

0 Kudos
Message 3 of 4
(3,082 Views)
You are using the Write To Binary File and passing an integer array to it. When you use the Read From Binary File, you are not specifying the data type and get a string back. You need to be consistant. Specify the same integer type as you use with the Write if you want to read/write binary. If you want to be able to read the file in another application, you might want to save as text. The function Number to Decimal String could be used.
0 Kudos
Message 4 of 4
(3,066 Views)