LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

serial port communication to read from an inertail sensor from Analog Devices

Solved!
Go to solution

Hi, I have an Inertial Sensor ADIS16350 by Analog Devices. My motive is to read continuous data from the sensor. The sensor firmware has specific commands as follows:

 

at wil return OK

 

ra will read once from sensor

 

ca will read continuously from sensor

 

When I try this in the hyperterminal it all works fine.

 

However I tried in labview the same method. However when I send any of this commands the front panel shows an Error message. Meaning if I send 'at' command, instead of returning 'OK' I get 'ERROR: 61-74-30-43-error' I believe this is an error sent by the sensor firmware. However just to test the system, I tried sending the 'continuous acquisition' command from my LABVIEW program, close LabVIEW, Open Hyperterminal. To see the data is being received at the Hyperterminal.

 

Has anyone come acroos such a situation? Your feedback is greatly appreciated.

 

Thankyou!

 

Chathuri 

0 Kudos
Message 1 of 4
(2,571 Views)

Chathuri,

 

Suggest you try using NISpy to monitor the port.  With NISpy running, use Hyperterminal to send command.  Shut down Hyperterminal to free up the port and try your LV vi.  Now you can look at the NISpy log and compare what the two programs are doing.

0 Kudos
Message 2 of 4
(2,558 Views)
Solution
Accepted by topic author Chathuri

Check on the termination character you are sending with your command.  Is it carriage return \r (hex 0D dec 13) or new line/line feed \n (hex 0A dec 10)??

Message 3 of 4
(2,548 Views)

Yes the problem was the termination character. I have to use /r/n after my command in order for it to send data.

 

Thank you!!

 

Chathuri

0 Kudos
Message 4 of 4
(2,520 Views)