You will find it in the "Control Design & Simulation" or you can find it in the "starting window" under Examples. Open "Toolkits and Modules" and "PID Control". Or use the searchfunction, serach for "PID". Use (almost) any .vi and copy the subvi PID.
Forgot about the rotationcount. It uses the built-in encodersignal and it makes 360 counts in one whole turn (one count = one degree).
Thanks for pointing out the direction to wander on 😉
A small problem arrises when you change the direction of the motor:
my strange.vi (see attachement) based on previous writer Get&Set output state... vi gives me the unwanted result that when you change the direction of the motor, it turns approx 2x the set amout of Tacholimit (in my example 360°).
So whenever in previous state it went approximately from 0->360°->720°->1080 and then you'd inverse direction it is going from 1080 -> a very unprecise 360° !! I can't explain why.
For the record I did try Regulation, braking, state-running, and other possibilities. No luck so far, so I was wondering if you guru's could point out the direction to solve this.
Fredje AKA GGGss (from Belgium) new labview user
After I post this thread at 12/15/06,I began to study how the actuating motor worked. NXT used this kind of motor.
To make it work, a runtime feedback must be essential. For example,if we want it rotate 120 degree,we give it power,let the moto run,and check the current degree very fast.When the feedback degree is =120,then cut the motor power or force it stop.
All these functions must run very fast. However, usb or bluetooth connect are not fast(have not realtime feature).For this reason,we hardly get the real current motor degree and also can not stop the motor at we wanted time.
This is why NI does not provides motor degree control feature in it's NXT direct commands tools but provides this kind of features in NXTtoolkit which must be downloaded in your NXT and run on NXT.
For this reason,I think in the future version of Ni NXT tools,we can not see this feature aslo.
I have created the rotate by degrees program but there is an error which i can't figure out how to fix. I am using version 8.2. Could someone please assist me. Thanks.
I would like to generate oscillation with one motor. Have you got a solution for me ?