LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

usb-6002

Hello,

 

it's my first Post, i hope I'm right here.

 

I have a NI USB6002 and want to connect a distance sensor SRF02.

 

I don't know where to connect the TX and RX? Is there maybe any example from the past?

 

Thanks a lot and best regards,

 

Hoisei

 

In the appendix the Datasheet of my sensor.  

0 Kudos
Message 1 of 4
(3,101 Views)

Hi Hoisoi,

 

did you read the first paragraph of the linked manual? It says all you need to know!

 

You cannot connect your sensor to a USB6002…

Best regards,
GerdW


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

As GerdW was alluding to, that sensor uses a serial port to send the information.  If your computer does not have a serial port, then go get a USB-Serial adapter.  All of the serial settings are in that first paragraph and explains everything you need to know.

 

If you need help with reading a serial port, then look in the Example Finder (Help->Find Examples) for the Simple Serial Read VI.

 

Just re-read it.  It uses I2C, not RS-232.  So you might want to get a USB-8451.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 3 of 4
(3,059 Views)

Hi crossrulz,

 

for both options (RS232 and I2C) the manual suggests to use some additional hardware!

For RS232 it recommends the MAX232 IC to change voltage levels from TTL to RS232 compatible.

For I2C it recommends some "USBI2C module" device to connect the sensor to a PC.

 

I would take the MAX232 route in favor of the USB8451 - for it's price tag and simplicity…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 4
(3,050 Views)