09-14-2009 01:21 PM
09-14-2009 01:23 PM
How does the motor communicate with the computer? An analog/digital output board (from NI)?
What are you having an issue with in your code?
09-18-2009 02:36 PM
09-18-2009 02:51 PM
6009 is software timed, so don't expect very good control. What code have you deisgned thus far. By the way, duplicate post here:
http://forums.ni.com/ni/board/message?board.id=170&thread.id=440971
-AK2DM
09-18-2009 03:10 PM
How long are your pulse widths? If they are in 10's of msecs, then you could probably get away with software timed loops to produce the PWM signal from a digital output.
If you require shorter pulse widths than that, you can build a pretty simple PWM circuit that uses 3 op-amps to produce a square wave based on a voltage reference. I.e., 0V input for 0% Duty Cycle, 5V input for 50% Duty Cycle, 10V input for 100% Duty Cycle. Then you would use the analog output from your USB-6009 board to set the duty cycle. The timing of the square-wave could be set by an RC time constant. Just an idea... you wouldn't be able to change duty cycle % very quickly, however. Again in the 10's of msecs I would imagine. But it would give you shorter pulse widths.
Basically, we need more information about what you are doing as the hardware you have choosen to do the task makes the job non-trivial.
09-19-2009 10:42 AM
09-22-2009 06:44 AM - edited 09-22-2009 06:53 AM
Go to
Help >> NI Example Finder
browse for
Hardware i/p & o/p >> DAQ mx >> Analog Generation >> Voltage
It will be the sample vi of 3 op amps as discussed earlier:)
Similarly you can browse through the Digital Generation.
It'll give you an idea of how digital data can be generated.
09-23-2009 10:57 AM
OT:
DavidGilmour:
Cool user name. He rocks! Have you seen the various DVD's of his latest concert tours?
-AK2DM
09-23-2009 10:50 PM
He is the God!
My all time favourite.
I've seen some videos 3months back. Are there any more recent ones?
BTT:
Are you able to generate PWM?
This link might be useful.
http://search.ni.com/nisearch/app/main/p/bot/no/sn/ssnav%3Acod/ps/10/ap/tech/q/pwm/ses/false/
09-26-2009 03:51 AM