FYI - here is the response I got directly mailed to me from NI Support.
The solution works great. - Alan
=============================
From: Support@ni.com
Date: Tue, 25 Jul 2000 14:41:53 -0500
Subject: Re: Loader object - Unloading Logic Problem
Alan,
I have found a solution to your problem that you are receiving when you try
to
unload a process that has not been previously loaded. If you place the
following code in the unload portion of the Loader object (modifying it
accordingly) will eliminate the errors you were seeing.
if(Loader2.Load,if(!Radio1.2,1,0),0)
The code above checks to see if the process has been loaded by checking the
load
attribute of the Loader object. If the process has been loaded, then we
check
to see if we have selected a different process to load, if we have checked a
different process, then we tell the load object to unload the process.
Hope the above helps you in your development of your application.
Best Regards,
John Meier
National Instruments
http://www.ni.com/support
Alan Richard wrote:
> I have an experiment setup that has a bunch of common equipment and a
> chamber that supports 3 different experiment rigs. I created a Lookout
> 4.0.1 process for the common equipment and a separate process for each
> experiment rig, (e.g., Common_Process, A_Process, B_Process,
> C_Process). Only two processes need to be loaded and running
> simulatneously (the common process and a specific experiment's process).
>
> The common process is always loaded. I created a radio button selection
> list to allow the operator to choose loading Experiment A, B, C or
> None. I then created a loader object for each experiment. Here is my
> annoyance. For Experiment A, the Loader object loads the process when
> the radiobutton for Experiment A is selected (no problems here). But
> the trigger for unloading is when any of the other 3 radio buttons are
> selected. The result is whenever we change experiments, I get a 2 error
> messages. Process:Common_Process, Area:Comm, Description:"Unload:
> Process not found: X_Process" where X is the name of the other
> processes. Is there a better way to trigger an unload such that it will
> not try to also unload the other processes?
>
> Please remove the DELETE from my address and respond both directly to me
> and to this NI usegroup.
>
> TIA,
> Alan
>
> <><><><><><><><><><><><><><><><><><><><><>
>
> Historical, though non-PC, quote of the day:
>
> "We have staked the whole future of America's civilization,
> not upon the power of government, far from it.
> We have staked the future of all our political institutions
> ...upon the capacity of each and all of us to govern ourselves
> according to the Ten Commandments of God." - James Madison
--
<><><>><><><><><><><><><><><><><><><><><><>
Historical, though non-PC, quote of the day:
"We have staked the whole future of America's civilization,
not upon the power of government, far from it.
We have staked the future of all our political institutions
....upon the capacity of each and all of us to govern ourselves
according to the Ten Commandments of God." - James Madison