Digital Multimeters (DMMs) and Precision DC Sources

cancel
Showing results for 
Search instead for 
Did you mean: 

how to create an array with dmm multiple readings

Hello,

I am using LabVIEW 7.1 to acquire current readings from an HO34401A DMM (connected through GPIB).
Based on the examples, I was able to create a vi that displays the same current reading being shown on the DMM. What I would like to do is to log all these readings in an Excel file. Any suggestions how I could do this?

Thanks
0 Kudos
Message 1 of 4
(7,176 Views)

Hello,

There are a number of ways to write data to a spreadsheet file. The two easiest can be seen below. The top method uses the 'Write to Spreadsheet File' VI to write an array of numbers to a file. The second method converts an array of strings to a spreadsheet string and writes that to file as well using the 'Write Characters to File' VI. These are the two quickest ways to get started. You may also want to consult some of the examples in the example finder by searching for "spreadsheet" (I believe the "Write to Text File" Example may be helpful).  Good luck.

Regards,

Chris J

Message Edited by ChrisJ on 08-11-2005 09:18 PM

0 Kudos
Message 2 of 4
(7,162 Views)
Great! Thanks a lot!

Also, I would like to timestamp each reading. Any suggestions?
0 Kudos
Message 3 of 4
(7,152 Views)

Hello Cintia,

Well there are several ways to do that as well. The easiest is to get the date/time string every time you get data from your device and then build an array with the instrument readings and the date/time strings (in this example im just pretending the "Instrument reading" string constant is an actual value you are acquiring from your instrument).

Regards,

Chris J

Message Edited by ChrisJ on 08-17-2005 07:36 PM

0 Kudos
Message 4 of 4
(7,142 Views)