LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to configure TX and RX PIN in Labjack(U3-HV)

Hai,

   I tried to Configure TX and RX as EI05 and EI07 respectively in LabJack U3-HV .But I can only some other  pins as Tx and Rx.Kindly help!!!

Suchithra29_0-1672999906920.png

 

0 Kudos
Message 1 of 8
(2,062 Views)

Hi Suchithra,

 


Suchithra@29 wrote:

I tried to Configure TX and RX as EI05 and EI07 respectively in LabJack U3-HV .But I can only some other  pins as Tx and Rx.


In the datasheet I don't see any mentioning of "Tx" and "Rx" regarding DIO pins (see chapter 2.8).

 

So maybe you should explain what you are trying to achieve in a more detailed way!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 8
(2,058 Views)

U3 HV Labjack has a UART that Support Serial Communication.I need to transmit data from EIO5 and receive data from EIO7.

 

 

Suchithra29_0-1673001768138.png

 

0 Kudos
Message 3 of 8
(2,052 Views)

This forum is for NI LabVIEW software.  Your question is very specific to LabJack hardware.  Have you tried asking on their forum?  Forums | LabJack

 

 

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Message 4 of 8
(2,020 Views)

It is not possible to configure any arbitrary digital IO for Asynchronous serial on the U3. The TX and RX pin must always be adjacent pin numbers. Additionally, the TX and RX lines cannot appear on either EIO6 or EIO7. Suchithra@29 provided a good capture of relevant documentation. That capture was from the following page on our website:

https://labjack.com/pages/support?doc=/datasheets/u3-datasheet/4112-asynchronous-serial-communicatio...

 

As described there, the Asynchronous serial feature TX and RX lines appear on FIO/EIO after any timers and counters. That is controlled by the TimerCounterPinOffset configuration, which must be 4-8 on the U3. You can find related details in our Timer/Counter documentation and the related pseudocode:

https://labjack.com/pages/support?doc=/datasheets/u3-datasheet/29-timerscounters-u3-datasheet/

https://labjack.com/pages/support?doc=/datasheets/u3-datasheet/416-timers-counters-u3-datasheet/

 

For example, if you do not have any timers or counters enabled and the TimerCounterPinOffset set to the maximum value of 8, The asynch TX line would appear on DIO8 (EIO0) and RX would appear on DIO9 (EIO1). If you had both timers and both counters enabled and TimerCounterPinOffset=8, TX would appear on DIO12 (EIO4) and RX on DIO13 (EIO5).

 

LabJack monitors the NI forums for LabJack related topics, but we might be a bit slower to respond here than other support methods.

 

Unfortunately, we decided not to transfer our forum to our new website, and it should be noted that the old forum linked at old3.labjack.com/forums is set to read only. For technical support, we recommend contacting us via email at support@labjack.com or our live chat support from 9-11am and 2-4pm MST, Mon-Fri. You can find the widget for our live chat support in the bottom right corner of all of our webpages:

https://labjack.com

0 Kudos
Message 5 of 8
(1,990 Views)

Thanks for the reply and clarification LabJack!  I looked at your forum and noticed the "old3" in the URL but didn't realize that it was read-only now.

 

My suggestion to the OP would be to follow LabJack's recommendation and just use a USB to Serial Port adapter.

Try to find one with a modern FTDI chipset.  I have good luck with Prolific, Star Tech and Tripp-Lite models.

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Message 6 of 8
(1,983 Views)

@NIquist wrote:

 

My suggestion to the OP would be to follow LabJack's recommendation and just use a USB to Serial Port adapter.

Try to find one with a modern FTDI chipset.  I have good luck with Prolific, Star Tech and Tripp-Lite models.


FYI
Prolific has its own RS232-to-USB chip set and  is a competitor to FTDI.

Star Tech and Tripp-Lite can use either chip set to create the USB to RS232 adapter.

Personally, I have always use FTDI chip sets. (and have gotten lucky never to have had a fake one... that I have known about)

 

---------------------------------------------
Former Certified LabVIEW Developer (CLD)
Message 7 of 8
(1,968 Views)

I used to use Prolific all the time since my last company stocked them and they were good to us but I never knew they were not using FTDI chips. 

I agree that FTDI chips are the best choice going forward. 

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Message 8 of 8
(1,903 Views)