EIO: Bits 7/8 constantly 'high' | LabJack
 

EIO: Bits 7/8 constantly 'high'

5 posts / 0 new
Last post
Chrono10
ChristineBlume's picture
EIO: Bits 7/8 constantly 'high'

Dear all, I am using the U3 device to send triggers to an EEG device on a computer running Ubuntu. I use the ressources here (https://gitlab.com/thht/lj_python_matlab) to initialise the LabJack. Unfortunately, line 30 in Labjack.m constantly seems to set bits 7 and 8 to 'high', wherefore I cannot get any triggers below 192. Additionally, there is a '192' following any other trigger. Unfortunately, I find myself unable to locate the source of the problem...as I can get the triggers I want on Windows using the respective functions, it does not seem to be a hardware-related problem. Thanks for your thoughts!

LabJack Support
labjack support's picture
Line 30 in Labjack.m leads to

Line 30 in Labjack.m leads to opening a U3 and configuring all digital I/O to output-low in the Python th_py_labjack.py:

        self._device = u3.U3()
        self._device.configIO(EIOAnalog=0, FIOAnalog=0)
        self._device.getFeedback(u3.PortDirWrite([255, 255, 255]))
        self._device.getFeedback(u3.PortStateWrite([0, 0, 0]))

I tried the same configuration in Python on a non-Windows machine, and EIO6 and EIO7 were working as expected.

For initial troubleshooting, power cycle your U3, and double check connections from your EEG device and U3 are secure. If they are and you are still seeing that EIO6 and EIO7 are high, disconnect current connects to the U3, run the code and confirm with something like a voltmeter the EIO6 and EIO7 ourput states. About 0 V is low and 3.3 V is high.

Chrono10
ChristineBlume's picture
We have performed all tests

We have performed all tests including measurements with a voltmeter. This revealed that EIO6 and 7 are indeed high with 3.3V, whereas EIO0-5 are <0.3V. We do exclude a hardware-related issue as the very same setup works fine under Windows. I am running Ubuntu 18.04 and Matlab 2018b with Python 2.7. The following code is the one I run to initialise the LJ.

lj = labjack.Labjack(labjack.Labjack.ChannelGroup.EIO, labjack.Labjack.TriggerMethod.MULTI, 0, 0);

Unfortunately, I have no clue where the problem could arise...it would be a shame if I had to switch to Windows with far worse timing. Any other suggestions will be highly appreciated.

LabJack Support
labjack support's picture
On your Windows machine, use

On your Windows machine, use LJSelfUpgrade with your U3 and make sure it has the latest firmware version 1.46:

https://labjack.com/support/firmware/u3

I see an update in version 1.11 that fixed an issue like you are seeing where EIO6 and EIO7 could not be set:

1.11: Port digital state functions are now allowed to update EIO6 and EIO7.

After upgrading your firmware, let us know if you still have the issue in Ubuntu.

Chrono10
ChristineBlume's picture
Thank you so much! Indeed,

Thank you so much! Indeed, our labjack had been shipped with firmware version 1.000. This fixed the problem.