08-18-2014 09:37 AM
I am incredibly new to Labview, so please bare with me here.
I am trying to modify existing code to record data from two channels of an osciloscope. I have been searching the internet high and low for a solution, but I haven't found anything.
I have attached a screen cap of my current setup. For the first two case structures I am trying to "force" the channel configure into differnet channels, but every time I start measuring with signal going in to one channel both channels measure the same pulse.
Thanks for any help in advance.
08-18-2014 09:41 AM
Do not do the setups in parallel. You are likely just confusing the instrument. Setup one channel, then the other. After the scope acquires the waveform, read from one channel and then the other.
08-18-2014 09:51 AM
So something along these lines?
08-18-2014 10:00 AM
08-18-2014 10:21 AM
Thanks for the replies guys, I would imagine these are super trivial questions for you.
So I have combined the case structures and everything should have the correct settings, but how would I go about connecting this to my graph graphing now?
08-18-2014 10:30 AM
How are you currently doing it? Personally, I would use a FOR loop to read the data from the two channels. It there is a function available, read then as a waveform data type. You can then wire the array of waveforms to your graph.
08-18-2014 11:52 AM
I'm trying to setup the array. I get to channels now with the "Read Waveform" vi, but I can't put it into my array because of conflicting terminal types. It's saying that my source is a 1D array of Waveform, but I just need the Waveform. Is there any way to convert this that I'm missing?
Side note: I'm trying to graph temperature and wavelength at the same time.
08-18-2014 11:56 AM
Oh, there's a VI to get multiple channel's data. And the output is already an array of waveforms! Just wire that array straight to your graph. And change your XY Plot to a Graph.
08-18-2014 02:00 PM
I should already have that VI here, it's the "Read Waveforms (Multiple)". When I double click that VI it shows two different channels of the scope (which is awesome!) but when I try to run the line to my graph it just throws errors, so I figured I would just have two seperate graphs. I am still only getting one channel on the graph though...
08-18-2014 03:59 PM
Your problem is that you have an XY Plot. You need a Graph. They are very similar, but very different.