10-25-2011 03:53 PM
I am continuously collecting data from a current, voltage and temperature module and I would like to plot the three DAQmx Read (VI) output waveforms in a single csv file. I will be taking samples at the same rate (1k Hz) for each virtual channel so I assume the time data for each respective virtual channel will be the same? When I wire the three waveforms to a write to file or write to spreadsheet file I am receiving errors stating that there can only be one source. How can I write these three waveforms to a single csv file? An example containing a VI that writes three arbitrary waveforms to a single csv file would help me out immensely.
10-25-2011 04:23 PM
From your description, I am assuming that your waveforms will have the same time constant. If this is true, the attached example should do what you want. This will take 3 waveforms, create a series of time values and save them all as a single csv file. Hope this helps!
10-25-2011 07:29 PM
10-25-2011 08:47 PM
Dennis,
I tried doing that but when I wired all three waveforms to the single input of the build array function I received an error saying there can only be one source? Could you post a simple vi showing how to wire up three random waveforms to the build array function to a write to spreadsheet file vi? Thats really all I need to get my VI running. Thanks
10-25-2011 09:35 PM
10-26-2011 11:49 AM
Hello mbrupb,
Here is a VI that can show you how you can save 3 signals into a .csv file using the write to spreadsheet VI. In this example 3 waveforms are being generated and then written to the file.
I hope this help you with your project.
Best Regards
08-29-2012 08:36 AM
Hi, im also facing this problem, i have a signal that is a special waveform, am i able to save the data as a csv file so that i can analyse it? i am unable to open the solution u gave and would love to give it a try in my project. (i am using Labview 2010)
here is the image URL:
http://forums.ni.com/ni/attachments/ni/170/692316/1/F0000TEK.JPG
08-29-2012 08:47 AM
I converted the file to 8.0 for you. 2010 can open that.
How are you obtaining the waveform? I see a scope screen capture, but you need the actual waveform data in order to save it to a csv. Also, the scope may be able to save the waveform to a csv for you (I had an older Tek scope that did).
08-29-2012 08:58 AM
thanks in advance for the conversion. the image is taken from a oscilloscope but for the actual project i would be using DAQ9219 or 9222 for voltage capturing.