Interactors have a number of inputs. You can expose them via the CDB by hitting ctrl-F when you highlight the interactor stand-in icon in the VPE When the CDB opens up, hit the expand button. You can pass other data to these inputs, which may come from other interactors, externally via Import (or another program via DXLink) or computed elsewhere in the network. The saved values will still be in the .net file, but when you execute the program, the interactors will be updated. If you package the net as a turnkey application, you can always force the execution when DX is launched so that the saved values you don't want will not be seen by the user.
An alternative workaround requires that you know the syntax of the scripting language and how variables are named and assigned by the VPE as stored in the .net file. In this case, you treat the saved network as a master template, but then modify interactor inputs and/or outputs for customized behavior. If you are operating in script mode, you can load a network, reassign variables and then execute so as not to use the saved values. The new values can come from whereever you want. Since the .net file is ASCII, you can used sed, awk, etc. to find the relevant variables and change them based upon external input, create a new .net file, which you then pass to DX to run. Of course, you could write a program to do that too... I have used these methods successfully. In your case, you could have an interactor specify the number of time steps or you can read that from your file and pass that as input (max) to Sequencer or to interactors. "Frederick R. Phelan Jr." <[EMAIL PROTECTED]>@opendx.watson.ibm.com on 04/17/2001 02:43:14 PM Please respond to [email protected] Sent by: [EMAIL PROTECTED] To: [email protected] cc: Subject: [opendx-users] Setting defaults for a .net file One "feature" of DX that can be a little annoying is that the INTERACTOR widgets such as file selectors, counters, etc., come up with the value they were when you last used them. Trouble with this is that when you look at a new data set, the widgets may be set to innapropriate values. For example, with time-dependent data sometimes I might include 25 time-steps in the data file, another time just 5 steps, and other times just the steady state data. Well, if the time step value is set to 25 and you only have fewer steps than that, the message windows pops up with an error message. This is just one example. Is there any way to set defaults for the values of the INTERACTOR widgets? Thanks, Fred Phelan Frederick R. Phelan Jr., Ph.D. Multiphase Materials Group Polymers Division National Institute of Standards and Technology NIST, Bldg. 224/Rm. B108 100 Bureau Dr., STOP 8543 Gaithersburg, MD 20899-8543 301.975.6761 (VOX) 301.975.4932 (FAX) [EMAIL PROTECTED] http://www.nist.gov/frederick_phelan
