Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Training Simulator for Motor/Encoder pair (http://www.chiefdelphi.com/forums/showthread.php?t=110897)

fovea1959 10-01-2013 08:56

Training Simulator for Motor/Encoder pair
 
We have many more programmers than cRIOs and robot chassis, and I was running through some state machine training last night, using LV running on the PC. The student exercise was to create a state machine that would switch states based on a knob position and a switch setting (knob simulated an encoder position, switch emulated a proximity sensor), the students simulated the motor driving the shaft by manually moving the knob. It seems hokey, but they *did* all end up with accurate state machines (and got good experience in debugging the state transitions).

The problem is that you code a little differently when you have the use of encoder and motor references; without them, you need to poll the encoder position. It hard to implement code like the lovely code in the sensor fusion paper if you have to pass sensor state into the state machine, instead of passing in sensor references so it can determine sensor state whenever it wants.

Has anyone already written a VI set that provides a visual simulation of a motor controller pair (VI to set the "motor" speed, VI to read the "encoder" position)? Having this to write and debug the logic for state machines on LV on a PC before we had real robot hardware available would make training easier. I haven't looked at the robot simulator much yet (don't know if you can simulate encoders there), but it seems like overkill for what I want to do here.

Alan Anderson 10-01-2013 11:24

Re: Training Simulator for Motor/Encoder pair
 
The LabVIEW robot simulator indeed provides simulated encoders for the left and right drive wheels.

Joe Ross 10-01-2013 14:05

Re: Training Simulator for Motor/Encoder pair
 
You may find this whitepaper worthwhile: http://www.chiefdelphi.com/media/papers/2494

fovea1959 10-01-2013 14:31

Re: Training Simulator for Motor/Encoder pair
 
thanks!


All times are GMT -5. The time now is 10:48.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi