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 for LEGO MINDSTORMS and LabVIEW for Education

cancel
Showing results for 
Search instead for 
Did you mean: 

Wait for NXT Color

Does the "Wait for NXT Color" block exist ?. I want an engine to advance until the color sensor detects the red color. That is possible to do in NXT-G and in NXC, but I can not see it in LabVIEW. 

I am using Labview 2016 and the NXT module for Labview 2016.

PD: Attached image.

Wait for NXT Color.png

 

0 Kudos
Message 1 of 2
(3,486 Views)

As far as I know it is not available as a function but easy to implement in a while loop.

Eventually add a wait (ms) function in the while to prevent a higher than necessary processor usage.

greetings from the Netherlands
0 Kudos
Message 2 of 2
(3,469 Views)