This example uses a script to launch Prism.
Script command |
Comments |
SetPath “c:\data\oct2011\” |
Define the disk and directory to be used by the rest of the commands. |
Open rapid.pzt |
Open the Prism template file rapid.pzt |
GoTo D |
Go to the data table. |
Import today.txt |
Imports the file today.txt. |
GoTo G |
Go to the graph section. |
Save today.pzfx |
Save the file with the specified name |
While Example 4 would not be useful when run from Prism, it would be useful as a way to launch Prism.
For 32 nbit (x86) Windows: Create a shortcut icon with a target something like this:
"C:\Program Files\GraphPad\Prism 8\prism.exe” @”C:\Users\(current user)\Documents\”doit.pzc.
For 64 bit Windows: Create a shortcut icon with a target something like this:
“C:\Program Files (x86)\GraphPad\Prism 8\prism.exe” @”C:\Users\(current user)\Documents\”doit.pzc.
Double-click that icon to launch Prism and run the script doit.pzc.
For Mac: You cannot create an icon that launches Prism running a certain script. All you need to do with Prism Mac is double-click on the script icon and that will launch Prism and run the script.
The script shown above instructs Prism to open a template (today.pzt) and import today's data (today.txt, presumably changing daily) into the file, and go to the graph. Once you have set this up (a few minutes) and also have a mechanism so the data file is updated daily (outside the scope of Prism), you simply double-click the saved file to see a new graph of today’s data.