LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

NI myRio and ultrasonic sensor

Hello everyone,

 

I would like to calculte distance using my ultrasonic sensor MB1040 (http://maxbotix.com/documents/LV-MaxSonar-EZ_Datasheet.pdf) with my NI myRio.

The connections that i have made with the sensor and NI myRIO MXP Connector B are shown below:

 1. VCC: A/+3.3V (pin 33)

 2. GND: A/GND (pin 30)

 3. TX: A/UART.RX (pin 10)

 

But my code has the error -1073807253

 

error.png

 

Any help is much appreciated !

Thank you for your time.

0 Kudos
Message 1 of 4
(4,226 Views)

Are you really using myRIO??

 

https://decibel.ni.com/content/docs/DOC-36001

 

Also you can post it here to get quick reply for issues related to academic hardware.

 

If its just a serial communication give some time to read data in the loop(add wait) - Else refer Find example for basic serial read write

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

First of all thank you for your answer. I tried to give some time to read data in the loop but i still have the same error.

0 Kudos
Message 3 of 4
(4,192 Views)

Hi,

 

Have you taken a look at this document?

http://digital.ni.com/public.nsf/allkb/F3E0621CB71AA16786256F970000FC57

 

I hope this helps!

 

Best Regards,

T. Le
Vision Product Support Engineer
National Instruments
0 Kudos
Message 4 of 4
(4,128 Views)