Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

How to control RPLIDAR A2M8 , I try to sent data by serial port(UART) but lidar not response ?

Now ,I want the lidar work as I sent data refer to picture below but not response . 

My opinion to control the lidar by sent serial port , i sent string data to Visa Write on picture below it dosent work  . Perhaps It incorrect . Thank you advance . 

 

 

Download All
0 Kudos
Message 1 of 5
(2,725 Views)

I'm trying to use the exact same device and also having trouble.  Did you ever figure out how to make it work?

0 Kudos
Message 2 of 5
(2,659 Views)

Have you been able to read the LIDAR data? I want to do the same but don't know how to start yet.

0 Kudos
Message 3 of 5
(2,485 Views)

Hello, yes, I did figure out how to do this.  It took a long time searching around and asking questions, but turns out the secret is that for this device you have to de-assert the "DTR" line in order to be able to communicate with the device.  There is a VISA property node that will allow you to do this.  Once that's done everything else seems to match the PRLIDAR user manual serial communication.

 

Find the property node under "Serial Settings">>"Modem Line Settings">>"Line DTR State".  Set to "Unasserted" then read the port.

0 Kudos
Message 4 of 5
(2,476 Views)

Thank you for your reply.
I also managed to communicate with LiDAR and in two ways. In one case directly through the program on the FPGA, and the other through VISA. However, I'll say right away that through FPGA it doesn't work very well (about 3% of erroneous values) and it's not an NI-supported solution.

0 Kudos
Message 5 of 5
(1,997 Views)