01-26-2016 04:44 AM
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.
01-26-2016 04:51 AM
01-26-2016 05:24 AM - last edited on 04-15-2024 01:20 PM by Content Cleaner
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.
01-26-2016 05:30 AM - edited 01-26-2016 05:31 AM
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…