05-29-2009 09:25 AM
I am trying to plot 2 functions on one graph. Instead of just getting these 2, i am getting a plot with numerous other ones which are all very similar to at least one of the ones i want.
I have attached a copy of the graph and code (Pardon the clutter)
Any help will be greatly appreciated!
- Marge
Solved! Go to Solution.
05-29-2009 09:50 AM
If you are getting that many plots, that means you must be acquiring that many channels of data. Since you are doing anything else with them, don't set up your DAQ task with so many channels.
How do you determine which plots you want to see and which you want to eliminate? Since you have a large 2-D array that contains all the samples from all the DAQ channels, you just need to use the appropriate array functions to get out only the parts of the array you want. Such as Index Array to get let's say the 1st and last columns (perhaps rows, not sure) and then Build Array to but only those two back together into a 2-D array.
05-29-2009 09:56 AM
Right click on your chart and deselect Transpose Array. The data from the DAQmx Read with 2D DBL NChan NSamp is organized where each row is a channel and each column is the samples for that channel.
05-29-2009 09:58 AM
Interesting. I have the DAQ physical channels set to cDAQ1Mod1/ai0:1, which if im correct should only be collecting data from the first 2 channels.
05-29-2009 10:17 AM
05-29-2009 10:38 AM
06-02-2009 02:57 AM
06-02-2009 03:22 AM
06-02-2009 04:01 AM
06-02-2009 05:00 AM
Hello Mr Coq Rouge
I downloaded your Project_Filter.vi and i need the password to see the block diagramm.
I am traying to understand the VI because i will try to determine the frequency of the bioimpedance signal.
Thank you for your help