LabJack U6 with cb37 terminal board and LJTick-Dac
Posted 20 June 2013 - 07:35 PM
Posted 21 June 2013 - 10:04 AM
Take a look at the MATLAB examples as they provide example code to read analog inputs:
Note that AIN0-AIN3 screw terminal signals are shared with the CB37's AIN0-AIN3 screw terminals.
We do not have a LJTick-DAC MATLAB example, but the LJTick-DAC datasheet provides example pseudocode using the UD driver, and the MATLAB examples will demonstrate how to use the UD driver in MATLAB:
Posted 22 June 2013 - 03:04 PM
Posted 24 June 2013 - 10:04 AM
2. Are you saying that you are using a DMM to measure the voltage from FIO0 to GND and see 5 volts? That is not right. Rather if FIO0 is set to input or output-high you should see 3.3 volts, and if FIO0 is set to output-low you should see 0.0 volts.
3. No, FIO0 on the U6 is a digital I/O only. You can't use it as an analog input.
Posted 24 June 2013 - 01:05 PM
Posted 24 June 2013 - 02:20 PM
Posted 24 June 2013 - 02:31 PM
Yes, This is the correct output. Our devices have 5V available on the VS pins. Our devices however use 3.3V logic so you will see 3.3V and 0V when you set the FIO/EIO/CIO channels.
But when I set FIO0 to high using ...
I read the voltage to be 3.5 volts.
And when I set FIO0 to low using...
I read the voltage to be 0.47 volts
Yes, this output is also expected. When you install a LJTIC-DAC on a device it is adding pull-up resistors on the corresponding FIO channels.
For FIO1-FIO5 (ones that contain a LJTICK-Dac) I did not specify high or low but it reads 5 volts by default? FI06-FIO7 has a voltage reading of 0.03 volts(ones without LJTick-DAC).
When you have the channels set to inputs those pull-up resistors will drive the digital I/O channel to 5V which is exactly what you are seeing.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users