05-01-2010 09:36 AM
Im in the middle of a project for university. in its simplest form it is simply reading data from sensors and then controlling the movement of 2 dc motors. i'm having trouble however understanding what to do in labview. Im using version 9 with a Crio and an NI-9505 and NI-9205
My intial though was to create a new vi and target it that to the fpga.
in this VI i would use a flat sequence to intialise the motors, then measure the data multiply by various gains etc, to get my voltage out for my motors, then use this to set the duty cycle on a square wave to turn the motors
can any one offer any on this, or point me in the direction of a example which may help
05-01-2010 11:46 AM
05-01-2010 05:32 PM
What's the problem? Have you implemented this code? What's not working/not doing what you want it to do?
There are heaps of examples on ni.com. Try searching for them. Also, try searching the LV help for examples. Open the context help for each of your VIs and see if there are any examples included for them.
Have you thought about doing some ni training or getting a training manual?
05-02-2010 02:20 PM
05-15-2010 06:20 PM
Your code is very simple. I can't see that you can really go wrong with it. Unfortunately I have none of the hardware you're using. Maybe someone else does.
If you dont understand the fundamentals about timing engines then (1) do a search for tutorials (there has to be one) (2) have a go at implementing one (3) post any specific questions you have.
Cheers,
Battler.