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.
I am very new to Labview and need to produce a program to do the following. I am building an ultrasonic distance measurement sensor which is mounted on top of a remote control car. I need to control the car motors so that I can move back or forward depending on the distance measurement. Right now I need to write a program so that I can turn off and on the motors depending on a numeric condition: e.g.. if x<=10, motor off, else motor on. I have a basic knowledge of matlab so I am familiar with loops. I need to use something like an "if" loop but all I have done in Labview so far is o/p, i/p of analogue and digital signals. I have a DAQ-USB-6008, and a relay wired to analogue o/p. I can control the on off of the motor with numeric controls no problem but I would like a way of setting a condition. Any help or even where to find relative information would be appreciated.