11-28-2008 12:50 PM
I'm running a closed loop PD position controller in Labview 8.5 and NI PCI-6259 M series card and BNC-2120. I'm sending an analog voltage signal (+/- 10) to a Copley Xenus amplifier (current command) as well as a +5v signal to enable the amplifier. The controller uses position for feedback. When labview errors out, the daq card stays in its current state (and keeps sending the 5v enable signal). For safety reasons, how can I configure my system so that this signal stops being sent out, and the amp is disabled?
Maciek
11-28-2008 01:02 PM
11-28-2008 01:28 PM
The other day, the actuator encountered an unusually large disturbance. The PD controller in labview tried to send a voltage command which was larger than 10v, and that caused an error. The program stopped, but the daq card kept sending a 5v enable signal to the amplifier.
11-28-2008 02:31 PM
11-28-2008 03:41 PM
The program crashed. I shut off the amp. The actuator shaft, which is positioned vertically, dropped to its lowest position due to gravity (it's a linear actuator). The daq card kept pumping out a high force command, due to the large position error created by the disturbance, as well as the 5v enable signal. Upon turning the amp back on, the PD controller saw a large difference between desired and actual position, and the actuator shaft shot up forcefully, creating a very dangerous situation. In the program, I have a case structure which won't enable the amp. unless the difference between desired and actual position is small enough. But the amp stays enabled when labview crashes.
m
11-28-2008 03:44 PM
I'm sorry... The program errored out. It didn't crash. Is it possible to make labview send a default command (like 0v instead of 5v) when it errors out?
m
11-28-2008 07:18 PM
11-29-2008 11:19 AM
I'd prefer to disable the drive upon an error. How does one do that?
m
11-29-2008 04:25 PM
11-29-2008 05:57 PM
Ok, so that approach should work for errors. But how can you disable the amp when labview crashes? I just tried it and the daq card keeps sending out 5v - enable signal to the amp after I closed the program down. What can be done?
m