07-21-2005 12:09 PM
I'm not sure how you plan to measure the currents through each. Normally when you measure current, unless you have a meter in series with the resistor, you measure the voltage across a "current shunt" in series with the load (the individual resistance). These shunts are usually a very low resistance wire (or bus bar for high currents) so as minimally influence the current. The voltage across these shunts is usually very low (my most recent was rated at 10mV/Ampere). As pointed out the voltage across all of the parallel connected resistors will be the same, so if you know the individual resistances then measuring the voltage across one will give you the info needed to calculate the current through each of them. Otherwise you will need to put a shunt in series with each and measure the voltage across each of those to measure the actual current in each leg. A multichannel analog board will make simultaneous measurements of all its channels (if so directed) and then present the results as an array of values. If you are using DAQmx the pulldown selections allow "multiple channels, single sample" which returns a 1D array with each element representing a channel, and "multiple channels, multiple samples" a 2D array with each row representing multiple measurements of a channel.
Hope this helps,
P.M.

07-21-2005 12:36 PM
07-21-2005 12:38 PM
07-21-2005 12:42 PM
07-21-2005 12:48 PM
07-21-2005 01:08 PM
07-21-2005 01:30 PM
07-21-2005 01:41 PM
And as mentioned earlier, you can create a DAQmx task in Meas & Automation Explorer (on the desktop), which allows you to choose the channels, give them "names" that mean something (like "Motor1 voltage") and configure the channel for the type of measurement. As was mentioned, they are voltage measurements, but in this task configuration you can define them as "current measurement" and then configure the shunt resistance and MAX will give back a number that is the calculated current, based on the voltage measured across that shunt. Similarly if config'd as a temperature measurement it will ask for the type of thermocouple and calculate the temperature based on that types linearity equation. In your program you can then do the DAQmx measurement by task name making the program more meaningful when you go back in vs. some device# channel#, etc. MAX and MAX tasks are also a good tool for checking out your NI hardware connections before you have written any code, and for troubleshooting your setup and code when the numbers don't seem quite right.
You should learn to field strip the NI-MAX in the dark, your program may depend on it! ![]()
P.M.

07-21-2005 01:47 PM
dennis:
that makes sense to me, and thats what i have been doing...however if i wanted to display say 4 different waveforms, and 4 difference avg voltage values on the front panel and save the values to a spreadsheet, it seems like i need another structure. would the data just pass through? as in display all voltages on one waveform.
lv_pro:
actually i have been playing around with the DAQmx tasks before all of this, it only operates on one channel correct? like would i be able to create a task, that takes the voltage of channels 0-4?
thanks guys. much much help.
07-21-2005 02:18 PM