From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
11-16-2007 12:50 AM
11-18-2007 08:20 PM
Hello. There's a vi in LabView called "write to spreadsheet file" and another one called "write characters to file", either one may be of help for what you need. I suggest you first use an "open/create file" and wire it to one of the other two in case you want to create a new file. Place the functions on the block diagram and right click on the icon and select "help". I've always find the help quite useful.
cheers,
Ali
11-19-2007 11:17 AM - edited 11-19-2007 11:22 AM
Hi Jerry,
From my understanding, you are using Signal Express and an unspecified NI-DAQ card to acquire analog voltage signal from a chip.
You would like to be able to save the data to a text file.
Signal Express allows you to save analog signals to LVM files or ASCII files. The LabVIEW Measurement (.lvm) format is a text-based file format for
one-dimensional data that you want to use with the Read LabVIEW Measurement File and Write LabVIEW Measurement File Express VIs. The .lvm
file is designed so it is easy to parse and easy to read when imported into a spreadsheet program, such as Microsoft Excel, or a text
editor, such as Notepad. AscII file is just a generic text file with file extension .txt.
In order to save signal as ASCII/LVM, add a step after your DAQmx acquire step. Click "Add Step" and choose "Load/Save Signals">> "Analog
Signals">> "Save to ASCII/LVM". As you can see in the pic below, you can change the file settings to your liking.
-click folder to select file path
-Make sure to select "Append to file" for continuous runs so that you don't generate multiple files for each run
-In "Export file type" you have a choice of .lvm or .txt.
I hope this helps.
12-20-2007 02:52 PM
12-21-2007 02:51 PM - edited 12-21-2007 02:54 PM
Hi Jim,
As I understand the issue, you are using LabVIEW Signal Express to perform a Data Acquisition Step, a Power spectrum step, and lastly a Save to ASCII file step. You wanted to know what the units of the waveform axis are after the power spectrum step has been performed. Is my understanding of your question correct?
As can be seen in the attached screenshot, you can control the scaling of the Y-axis. What you are most likely interested in is selecting Spectrum type so that it is either units of Power or units of Magnitude displayed on the Y-axis, where Power is equal to Magnitude squared. The default setting is Power. You also specify Peak Conversion, though the default is RMS.
I hope this explanation helps. Happy Holidays, Mallori M.