From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
06-27-2007 08:43 PM
06-27-2007 08:44 PM
06-27-2007 09:14 PM
Try putting the vi in here.
C:\Documents and Settings\All Users\Start Menu\Programs\Startup
06-27-2007 11:10 PM
@JHourigan wrote:
For starters: The problem is that we have numerous power problems at my lab. So I lose control of my system when the computer momentarily shuts down. When the computer restarts I would like for the main control vi to launch and run so that the valves I am controlling return to a safe defualt state.To accomplish this, I need to get the main control vi to launch on Windows start-up. I understand from previous threads that there may be some timing nuance to this process. And I understand that this is probably something that is best accomplished using the Autoexec.BAT file. But if anyone has any hints or words of wisdom I would appreciate them greatly.PS - A UPS would be a great fix but is currently out of my price range, and may be overkill.
I think you really need to rethink your priorities here!
You know you have a numerous power problems. You need the computer to restart automatically so the valves can return to a safe state. And you say a UPS is too expensive, i.e. "out of your price range"? What is your price on safety?!!!
A good normal size UPS for a desktop computer runs $100-$150 US. If you bought it to begin with, it would have already paid for itself!
You don't say if your power problems are just affecting your PC, or are affecting your system as well. Let's assume it is just the PC. A UPS will let it ride through shorter durations. You can use a relay with the coil directly connected to non-backed up power to detect whether you've lost power. The contacts on the relay could be fed into a digital input that your software monitors. You can put in code that directs the system to shutdown the valves and then the PC if the power outage lasts too long.
If it is a case of your whole system losing power, and if the power that the valves need is not high power or high voltage, you could direct the power from the UPS to control them so that you can still return the valves to the "safe state" even if power to your whole system is out.
If your whole system is so big and powerful that a normal PC UPS can't support it, then high power battery backup, generator, whatever, should have been budgeted into the system when it was first designed and installed.
If you are controlling real life equipment that has a hazardous potential, safety should be at the top of your priority list. If you can't afford safety, you shouldn't be doing whatever it is your trying to do!
06-28-2007 12:14 AM
Ravens Fan is out of his or her element telling me how to set my lab builiding priorities. And his or her reply is neither constructive nor in the spirit of the NI discussion forum.
This is an academic lab where decisions have to be made based on budgetary constraints. I am looking for a low-cost software fix to this rather than a high cost (>$1500 + recurring maintence) hardware fix Let's just say that a "small" UPC won't cut it and there are not an human safety issues. If specifics are needed, I have an ultra high vacuum system with normally closed pneumatically actuated valves. Normally closed works for all but one of these valves - the one that is used to isolate the turbo molecular pump from the foreline and rotary vane pump. The turbo pumping station will often spin back up after a power glitch while the computer goes through a restart cycle. This leaves the turbo spinning into a closed foreline. While not a major issue, it would be nice to open the foreline valve as the computer boots back up.
A Festo valve manifold that operates on 24V logic controls airflow to the actuators. The 24V is supplied to the solenoid via an NI USB Digital Output device. When the power cycles the Festo solenoids all close, closing the UHV valves leaving the line protected from venting. If the PC were to be on a small UPC it would leave the valves open while the pumps spun down, potentially venting the line.
In an ideal world the one foreline isolation valve would open up when power was restored. The simplest way of accomplishing this would be to have my systems control code launch at start-up; it would go through initialization and put the valves into a default state.
So I will repeat my question from is there a way to get Labview and a specifc VI to launch at startup
Constructive replies welcome
06-28-2007 12:28 AM
06-28-2007 12:33 AM - edited 06-28-2007 12:33 AM
Message Edited by TonP on 06-28-2007 07:33 AM
06-28-2007 07:50 AM
06-28-2007 09:43 AM
Ravens Fan - thanks for the UPS suggestions and monitoring power loss. There is nothing that will injure people in my lab, mostly vacuum generation, motion and vision, and mass spectrometery. There is no safety hazard posed to lab workers should the power go out.
Unfortunately I work on a university campus where power outages, particularly in the winter are not infrequent (3-4 times per year) and emergency power is supplied only to the most sensitive of instruments, a cateqory into which my equipment does not fall unfortunately. This condition is not really acceptable, but it is a university infrastructure issue that is far beyond my control.
"Safe" in "Safe Default Mode" refers to the valves being closed to the possibility of venting to atmosphere if the turbomolecular pumps spin down. This is accomplished when the power cycles. All the digital outs on the NI USB digital output are reset and the solenoids which deliver air to the pneumatic actuators close. I have gone through several of these power cycles to date without incident and the vacuum is maintained. However, I am about to add another valve in the foreline region of the turbo molecular pumping station which I would prefer to be open, unfortunately I currently possed only a normally closed valve. I would like the foreline to valve to open upon return of power so that the pressure gradient is maintained and the pump does not back stream. In my particular case, "unsafe" is prolonged (>12hrs) closure of this foreline valve and the risks of backstreaming in this case are still minor. I'm most worried about the weekend power glitch when the pumps restart and the computer restarts but the one valve remains closed. I agree that Raven Fans' event logging would allow a message to be sent to a phone or pager, which is an attractive feature. But it would be nice to just have the computer put the valves into a default mode unprompted by external user input.
So ultimately, this is a convenience rather than a safety issue.
06-28-2007 07:28 PM