03-11-2010 12:20 PM
Hi All,
I have an application that I'm performing maintenace on, and have just upgraded a LabVIEW 6.1 application to LabVIEW 2009, and migrated from Windows 98 to XP.
The application itself is now working faultlessly, controlling a robotic welding process using analog and digital I/O through an SCXI chassis.
I'm having a major problem however, that when the user exits the LabVIEW application, digital outputs get turned on, which operate a variety of motors - that should be turned off (and are off just before the application closes). This causes us to have to hit the e-stop each time a user exits the application. The application exits using a defined exit loop that switches all outputs off.
Before upgrading the LabVIEW version and OS, this was not a problem.
Digital outputs are through a SCXI-1163R board, defined in Traditional DAQ, and all ouputs are inverted in MAX (as they were in the original setup).
While running the application MAX has been closed. So for some reason when the LabVIEW application closes, digital output values change - anyone have an idea why this might happen?
Thanks,
Martin
03-18-2010 10:10 AM
Hi Martin,
It is a bit odd that since upgrading this has happening. Have you tried probing the last outputs to see what values are being written? How is your code architectured? For example are you using a state machine? If you post your code then we can take a look at it to see what the cause of this may be, whether its software or hardware thats causing this.
Kind Regards,
Jason
03-18-2010 10:34 AM - edited 03-18-2010 10:37 AM
Are the DOs in the expected state during the power on of the computer and before the start of the application ?
Unfortunately I don't know the SCXI-1163R. But I would check (--> MAX) if the new drivers allow to set the power on states of the DOs.