02-06-2019 08:52 AM - edited 02-06-2019 08:54 AM
Hello,
I am transferring data from lock-in amplifier to labview via ADC. I have built a labview data acquisition VI for this. My problem is that I am saving the data in waveform function. When I export the data to excel sheet, it only saves the data that is presented on the graph at that time. While, I want to export all the data.
I am attaching the VI here for reference. Any help would be appreciated.
Mehr
02-06-2019 10:57 PM
There are several "strange" things about this VI:
You'll note I'm not providing any VIs or Snippets. You should be able to do all of these steps yourself (except, perhaps, replacing the DDA with DAQmx functions, but you can learn about that by doing a Google search for "Learn 10 Functions in NI-DAQmx ...") as they use functions you have in your original code. If you get stuck, post what you have and someone (I, if noone else chimes in) will make suggestions.
Bob Schor
02-07-2019 06:02 AM
@Bob_Schor wrote:
On the Output of the While Loop, you can use a For Loop to convert the Array of Waveforms into a Concatenated Waveform, suitable for writing. Note I'd recommend using Delete from Array to remove the first Element, use that to initialize your Shift Register, then use the remaining Array and an Indexing Tunnel to concatenate the remaining Waveforms onto the end of the Waveform in the Shift Register.
I would recommend a Producer/Consumer setup in order to log the data as it is acquired. Or, even simpler, is to use the DAQmx Configure Logging (or the "Logging" tab in the DAQ Assistant) to have DAQmx automagically log the data for you to a TDMS file. You should have a plugin to open the TDMS file in Excel.