LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do you add 2 physical channels from the same control?

I really appreciate your patience and help. I just spent a bit reading up on the "export to spreadsheet Vi" and honestly have no clue how to incorporate it into this VI. Would it require a complete overhaul of what I already have in place? Also, why exactly are there 2 file paths?

0 Kudos
Message 21 of 42
(1,281 Views)
Just wire it up to the waveform array from the DAQmx Read.

I'm not sure what you mean about two paths. There is an input and an output. If the input is blank, you get promoted for a path. This is what is output. You would use a shift register to avoid repeated prompts.
0 Kudos
Message 22 of 42
(1,269 Views)

Here is an update. I figured out how to write them to the file in columns as desired. Now, I would like to add a real-time plot of each voltage input. I know the columns of data are in the orange wire (circled), I just dont know how to extract both of the plots from them.

 

Thanks!

 

VI.JPG

0 Kudos
Message 23 of 42
(1,244 Views)
So why did you change from nsamp with a precise sample rate to 1samp with a variable sample rate? Why did you get rid of the waveform data type?
0 Kudos
Message 24 of 42
(1,235 Views)

I couldnt figure out compatibility issues with the waveform data type wires, so I tried a couple of the other settings and the 1D DBL Nchan 1Samp seemed to output what I was looking for in terms of the dataset. Is this a big no-no?

0 Kudos
Message 25 of 42
(1,229 Views)
I have no idea what you tried. The output of the DAQmx Read would be wired directly to the export waveforms function. Nothing else would have been required.

When you switch to 1samp, you turn off the hardware timing. The time between samples is software timed and subject to a great deal of jitter because of Windows. It's up to you if it's enough.
0 Kudos
Message 26 of 42
(1,222 Views)

Ok, what you said makes sense. Would the "export to waveform" and its inputs (file name, etc) be inside of the while loop?

0 Kudos
Message 27 of 42
(1,218 Views)
Just the write waveforms to spreadsheet would be inside.
0 Kudos
Message 28 of 42
(1,205 Views)

I am trying to link the file path from the Open/Create/Replace VI to the "export waveform to spreadsheet", but the wire is broken. Am I using the correct VI to open the spreadsheet file?

0 Kudos
Message 29 of 42
(1,200 Views)
I don't quite understand what you wiring. All that you need is a file path control or the file dialog. The export function will open the file.
0 Kudos
Message 30 of 42
(1,194 Views)