01-06-2017 12:56 PM
I am trying to use NI USB 6002 in order to adjust the gain of a multiplying DAC. But I am not sure how to use the digital bits(from LSB to MSB) for this purpose.
The adjusted gain will be multiplied with the output voltage of a potentiometer until this becomes equal to the voltage across a metal line(sample).
Thanks in advance!
01-06-2017 02:19 PM
And what is the problem, at what step?
Convert your scale U8 (or U16 depending on DAQ bitness) into 1D boolean array. Look at this boolean array. Least significant bit is the one that is on when you convert 1.
Create single channel multiple lines Digital Write task. Write boolean array, check voltages on outputs. Compare 5 V / 0 V values with true false in array if you are in doubt.
Connect board LSB (digital line 0) to LSB of the DAC. Etc.
01-06-2017 02:27 PM
One more thing. To get help how to convert gain into boolean array, we need to know the format your daq requires: is it floating, fixed point, integer value.
01-06-2017 02:31 PM
It is floating point.
01-06-2017 02:39 PM
I have never used USB 6002 before. I tried looking for the help on the internet but could not get the information that I needed.
I will try the way you suggested. It would be great if you could help me with a image of the labview code that you are talking about. I am kind of new to labview as well.
Thanks,
Amit
01-07-2017 06:59 AM
Hi amit,
It's a simple DAQmx device supporting some AI, DIO and AO channels…
01-07-2017 08:36 PM
Thanks GerdW!