12-13-2007 06:46 AM
12-13-2007 09:03 AM
You just have to specify multiple channels in the physical channel control (or in the task you created in MAX). The syntax for continuous channels is 'Dev1/ai0:7' for channels 0 through 7 for example, and 'Dev1/ai0,Dev1/ai2' for channels 0 and 2 for example.
You can use the Index Array function or the Split Signal function to separate the data from the DAQmx Read into individual channels.
12-14-2007 08:32 AM
12-14-2007 08:45 AM
12-14-2007 10:46 AM
12-14-2007 11:32 AM - edited 12-14-2007 11:38 AM
Hi Cornelius,
To expand upon what Dennis said, you do not need to make any changes to the block diagram for acquire over multiple channels. This is manually done on the front panel by typing in the physical channel control box. This can be seen in the attached screenshot.
Adding channels will add multicolor plots to the same waveform indicator. If you want to have 8 different graphs, as Dennis stated, this can be done by using the Index Array Function. This function takes the data from the DAQmx read and returns the specific elements of the array that you input. In order to index multiple elements, after placing the function on the block diagram, you can click on the bottom and drag down to expand the number of inputs. This can be seen in the attached block diagram screenshot.
If you right click on the outputs of the Index Array Function and create Indicators, on the front panel a text box with appear with amplitude and timestamp data. You will want to right click on this Indicator and select Replace>> Graph>> Waveform Graph in order to get the graph indicators you desire.
I hope this explanation helps. Good luck, Mallori M.
12-17-2007 10:01 AM
12-17-2007 09:48 PM - edited 12-17-2007 09:50 PM
Delete all of the duplicate code you have. You cannot have a second DAQms Timing function. All channels have to use the same timing. And you would only use a second DAQmx Create Channel if you wanted different limits or a different configuration for a different channel. And, in that case, you would need to use the DAQmx Create Channel for the same task as the other DAQmx Create Channel. I'm also not sure why you provide the name of an existing task and then use the DAQmx Create Channel. If you have an existing task, then you don't use the DAQmx Create Channel unless you want to add a new channel to the task.
You might want to spend some time reviewing the information at http://zone.ni.com/devzone/cda/tut/p/id/5434
12-18-2007 04:01 AM
12-18-2007 05:30 AM