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.

Academic Hardware Products (myDAQ, myRIO)

cancel
Showing results for 
Search instead for 
Did you mean: 

timed loop with real time app using myrio

Hello

iam using myrio and connected to it Pmod CMPS and two DC motor 
the compass (Pmod CMPS) demo(demo is came with myrio ) has timed loop but to be honest i did used timed loop before and i dont know why the reading of the compass inside it 

so my program is to read from compass and regard the change of the angle i have to control the dc motor but to make live easy i replace the timed loop with while loop also i place the control of the dc motor in same loop 

but i dont know if what i did is correct ?
because my program is not working properly , any idea ? 

0 Kudos
Message 1 of 2
(2,672 Views)

Hello, 

 

How do you know that your program is not running properly?

What are you seeing? Errors?

What do you expect to see?

Can you please attach your code?

 

Danielle 

National Instruments

0 Kudos
Message 2 of 2
(2,572 Views)