0

I am researching on data transfer from range sensor (Hokuyo UBG-04LX-F01) to matlab directly, using the matlab data acquisition toolbox and I came across the NI-DAQ (data acquisition hardware). Here is what I know so far;

  1. Data sent directly to matlab from sensor is usually encoded with ASCII 2 or 3 bit character encoding.
  2. Data acquisition hardware such as the (NI-DAQ 6008) can act as a medium to receive data from sensor and send it to matlab.

My question is, Can the data acquisition hardware send real time data from the sensor to matlab? Is the data sent to matlab decoded, in other words does the data acquisition hardware decode the data to simple normal range or decimal values before sending it to MATLAB? Given its role as the middleman.

Anderson
  • 211
  • 1
  • 2
  • 3

1 Answers1

0

According to the sensor's data sheet (via hokuyo-aut.jp), the sensor uses serial (RS-232) and USB for control. Using a DAQ device as an intermediary is possible, but in my opinion is unnecessary.

Instead, my suggestion is to communicate with the sensor directly from MATLAB and create small .m subroutines to decode and encode the data. The sensor's command set is well documented and the MATLAB Instrument Control Toolbox supports RS-232.

Joe Friedrichsen
  • 1,976
  • 14
  • 14