11-07-2013 04:52 AM
Hello,
I am controlling a stepper motor through a circuit which converts analog voltage to frequency. I use NI6009 USB for generating the voltage for a Voltage to Frequency Converter circuit. My problem is that, the user can control the output from 0 to 5 volts with a knob in the front panel. But if the user increases or decreases the value very fast the stepper motor is not able to handle the inertia and stops or functions improperly. So I need something that will generate the output voltage with a slope even if the user increases / decreases it suddenly from the front panel. For example it may increase to the value chosen in 10 seconds etc. The control of the output voltage is done in real time so prefunctions does not work.
I use DAQmx Base.
If somebody can help me I will be very happy. Thanks.
11-07-2013 07:42 AM - edited 11-07-2013 07:42 AM
Hi,
I am not an expert, but I'd suggest to do it manually and use a while cycle for instance where you decrease the value bit by bit for each cycle till you reach the desired value.
Best Regards,
Seno
11-08-2013 04:52 AM - edited 11-08-2013 04:53 AM
You could also put a small capcitor across the output.
11-08-2013 05:23 AM
Can't I find a soulution in the labview code?
11-08-2013 05:59 AM
You could put the control in a while loop and feed the knob value to a shift register. Then add elements to the left shift register, build them to an array, then take the average of those as your output value. The number of elements you average, and the speed of your loop, determines the amount of filtering.
11-08-2013 06:39 AM
See example
11-11-2013 06:09 AM
Thanks a lot, both solutions look very well.