Download GraphPad Prism User Guide
Transcript
Scripts
443
23.3.3 Launching a Prism script from outside Prism (Windows)
One way to launch a script is from within Prism (drop the File menu and
choose Run Script). You can also launch a Prism script from outside Prism.
When you launch Prism this way, if the script closes all open Prism files, then
Prism will shut down when the script ends. Otherwise Prism will remain open.
Launching a Prism script from a desktop icon
To create an icon that launches a Prism script, point your mouse to an empty
spot on the desktop, click the right mouse button and select New… Shortcut.
Enter a command line that starts Prism and points to the Prism script file to
launch. Include the @ symbol in front of the path to the script name. If either
path includes spaces, include the entire path in quotes as shown below:
“C:\PRISM5\PRISM.EXE” @”C:\PROGRAM FILES\PRISM 6\SCRIPTS\DOIT.PZC”
Shelling to Prism from another program
To "shell" simply means to launch one program from another. Here is an
example of a shell command in an Excel VBA macro.
Shell ("C:\prism 5\prism.exe @C:\prism 6\dr2.pzc")
The shell command has to specify both the full location of prism.exe and the
script that Prism will launch. Include the @ symbol in front of the script name.
Two important notes:
Prism will run invisibly. Even when it is done, Prism will not show on screen.
As soon as Visual Basic has launched Prism, it will continue to the next
statement in the Visual Basic program or macro. It will NOT wait for Prism to
complete before continuing. If you don't take the extra steps described
below, your Visual Basic program will try to read a file containing Prism’s
results before Prism has finished creating that file. To avoid this, make your
Visual Basic program pause until Prism creates a file, as explained below.
When you write the Prism script, include lines at the end of the script to create
a file that will tell Visual Basic you are done. The example below creates
done.txt.
OpenOutput "done.txt"
WText "done"
CloseOutput
© 1995-2014 GraphPad Software, Inc.
Related documents
C60 System - User Manual
BornAgain User Manual - Scientific Computing Group
Product Manual (): Logic Time
A User's Guide to MLwiN
Liste des symboles - Accueil thèses - Université Toulouse III
Instalação do SKF @ptitude Analyst
SKF @ptitude Analyst Installation Manual
TOCHNOG PROFESSIONAL User's manual Version 22
Synth Legacy Manual
Glassware, Cleaning, Logger Pro, Safety
Chemistry 151/151L
SR192A Development System v4.0 User Manual