Edbarrow
2008-08-08 12:10:08 UTC
Hi there,
I am using a USB-6009 and Labview 8.2 to control a series of relays. On one side of the USB-6009 I have three analogue voltage inputs from a 3-axis joystick which give out a voltage of 1.15V, plus or minus around 1.5V at full travel in each axis. The outputs then go to the digital side, to six relays. When the joystick is moved in one axis, the program monitors this voltage change, and relates it to a time delay. The output to the relay is then pulsed, firstly open for a period of time as defined by the front panel, then closed for a period of time as defined by the voltage input. The relationship between the time delay between pulses and the voltage input is controlled by the numbers input to the front panel, I usually use 15 for value 1 and 300 for value 2.
The program works well, and will pulse fast enough for the speed we want it to, but sometimes when the joystick is released from a position if full travel the relay will still actuate one extra time and give one extra pulse. Given that this is an undesired effect, is there any modifications I could make to the code to stop this from happening?
Pulse program.vi:
http://forums.ni.com/attachments/ni/250/42189/1/Pulse program.vi
I am using a USB-6009 and Labview 8.2 to control a series of relays. On one side of the USB-6009 I have three analogue voltage inputs from a 3-axis joystick which give out a voltage of 1.15V, plus or minus around 1.5V at full travel in each axis. The outputs then go to the digital side, to six relays. When the joystick is moved in one axis, the program monitors this voltage change, and relates it to a time delay. The output to the relay is then pulsed, firstly open for a period of time as defined by the front panel, then closed for a period of time as defined by the voltage input. The relationship between the time delay between pulses and the voltage input is controlled by the numbers input to the front panel, I usually use 15 for value 1 and 300 for value 2.
The program works well, and will pulse fast enough for the speed we want it to, but sometimes when the joystick is released from a position if full travel the relay will still actuate one extra time and give one extra pulse. Given that this is an undesired effect, is there any modifications I could make to the code to stop this from happening?
Pulse program.vi:
http://forums.ni.com/attachments/ni/250/42189/1/Pulse program.vi