Discussion:
Ni-DAQ Multiple Waveform Question
(too old to reply)
RCBrust
2008-08-15 15:10:09 UTC
Permalink
I'm new to LabView so hopefully I'm using the correct terminology.  I've used DAQ Assistant to create a DAQ Assistant Express VI which reads 2 channels from my NI hardware, voltage and current.  This seems to function well in that I can graph the captured waveforms and also write them to a file.  The problem I'm having is that the waveform output has the two signals embedded together and I can't find a way to access them separately.  For example, if I create a graph it graphs both voltage and current.  I can't create one graph to display just voltage and a second to display just current.  Another example is when I try to move the waveform into an array.  The function block works fine in that I can display the array and step through the data, but it will only give me the voltage data with no access to the current data.  Any help would be appreciated. Thanks,Randy 
StevenA
2008-08-15 15:40:05 UTC
Permalink
the daq assistant returns data using the dynamic data type.&nbsp; I would convert the dynamic data type to an array of waveforms.&nbsp; Then you can index the first element (channel) and put in on one graph, index the second element and put it on another graph.&nbsp;&nbsp;<img src="Loading Image..." border="0" width="416" height="186"> The convert from dynamic data function is under the express pallet &gt; signal manipulationMessage Edited by StevenA on 08-15-2008 09:18 AM


diagram.PNG:
http://forums.ni.com/ni/attachments/ni/170/349620/1/diagram.PNG
Cory K
2008-08-15 15:40:05 UTC
Permalink
I would suggest using the &quot;Split Signal&quot; functionIt is located:Express &gt;&gt; Signal Manip &gt;&gt; Split Signal&nbsp;Wire the output of your DAQ assistant to the split singal.Then the two outputs of that function will be voltage, and current.Then you can do whatever you want with each one.
StevenA
2008-08-15 15:40:05 UTC
Permalink
Cory K wrote:
I would suggest using the &quot;Split Signal&quot; functionIt is located:Express &gt;&gt; Signal Manip &gt;&gt; Split Signal&nbsp;Wire the output of your DAQ assistant to the split singal.Then the two outputs of that function will be voltage, and current.Then you can do whatever you want with each one.
&nbsp;Split signal works too :smileyhappy:
RCBrust
2008-08-15 15:40:06 UTC
Permalink
Hmm, I did happen to find the Split Signal function and tried it but it didn't seem to work.&nbsp; Trying it again now...&nbsp;Thanks guys.&nbsp;Randy&nbsp;
Cory K
2008-08-15 15:40:07 UTC
Permalink
What is not working? Graphing the data?Or splitting the signals?
RCBrust
2008-08-15 15:40:07 UTC
Permalink
Ok, if I add a Split Signal function, I can right click on the top output and I get the option of adding a graph which I do and I get my voltage waveform alone, which is what I'm looking for.&nbsp; But when I right click on the next output, it seems to have no waveform associated with it.&nbsp;Randy&nbsp;
StevenA
2008-08-15 15:40:10 UTC
Permalink
RCBrust wrote:
Ok, if I add a Split Signal function, I can right click on the top output and I get the option of adding a graph which I do and I get my voltage waveform alone, which is what I'm looking for.&nbsp; But when I right click on the next output, it seems to have no waveform associated with it.&nbsp;Randy&nbsp;
I'm seeing the same thing with the split signals...this should work, I'm not sure why?&nbsp; Using my method where you convert to waveform data type will work.&nbsp;
RCBrust
2008-08-15 15:40:10 UTC
Permalink
Got it to work another way.&nbsp; I found the Select Signals function.&nbsp; I put it in twice.&nbsp; On one I selected voltage and the other selected current.&nbsp; Works perfectly.&nbsp; Thanks for the help.&nbsp;Randy&nbsp;
Loading...