From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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,220 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,209 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,186 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,122 Views)