LJTick-RelayDriver help needed. | LabJack
 

LJTick-RelayDriver help needed.

5 posts / 0 new
Last post
Rednecknerd
Rednecknerd's picture
LJTick-RelayDriver help needed.

I am using a U6.  I have a LJtick-Resistance on AIO2 and AIO3.  LJTick-DAC on FIO0 and FIO1.  I have my LJTick-RelayDriver on FIO2 and FIO3.

I can not get the Relay driver to work for me.  I am trying to switch a 5 v relay. When shorted to VS and GND my relay works fine.  

When using VS to relay to RA or RB I get no control.  Even if I use the example labview code.  I also tried using a known good LED to act as the relay.

Please let me know what I am hooking up wrong.

LabJack Support
labjack support's picture
Make sure you are carefully

Make sure you are carefully following Figure 5 of the relay driver's Datasheet.  The relay driver uses low side switching logic and the VR screw terminal of the relay driver is not the same as VS on the LabJack device.

To verify your ability to control an LED, connect the anode lead to a spare VS screw terminal on the LabJack device and connect its cathode lead to the RA screw terminal on the relay driver.  Then using LJControlPanel, enable FIO2 and FIO3 as digital output lines and you should be able to toggle on and off an LED.

Rednecknerd
Rednecknerd's picture
Tried that.   Didn't work.

Tried that.   Didn't work.  On a whim I moved to  FIO0 & 1.

I used the U6 Single IO Example.  It worked. Moved it back to FIO2 & 3.  It worked.

So it is not how I hooked it up.  It is a problem with the how my labjack is interacting with the example code used in U6 Multiple IO Example & U6 Multiple IO Example Loop.

U6 Multiple IO Example eAddGoGet works.  The other two do not change the output on the FIO channels.

LabJack Support
labjack support's picture
Thank you for making us aware

Thank you for making us aware of this issue with the examples. It looks like those two examples are setting the digital output for channels 11 (EIO3) and 13 (EIO5) by mistake. For FIO2 and FIO3 they should be channels 2 and 3. I'll inform the LabVIEW examples person about this.

Rednecknerd
Rednecknerd's picture
Haha, I didn't catch that.  I

Haha, I didn't catch that.  I just copied the example into my code and didn't check the channel.

Changed it to 2 and 3 and, like magic.......it worked!