Compiling and Running an IDL Program
To compile and run an IDL program using the IDL Workbench:
- Open the file in the IDL editor:
- Use the Project Explorer view to select a file located in one of your projects. Double-click on the file to open it in an editor.
- Alternately, use File → Open File to select a file from the file system. For example, you could open the file
examples\demo\demosrc\d_uscensus.profrom the IDL installation directory. - Compile the file by clicking the Compile button
on the toolbar, or by selecting Run → Compile filename, where filename is the name of the file opened in the IDL editor. - Execute the file by clicking the Run button
on the toolbar, or by selecting Run → run filename, where filename is the name of the file opened in the IDL editor.
Note
You do not need to explicitly compile your program each time you run it. Clicking the Run button will compile the file automatically if it has not yet been compiled. You do need to recompile your program if you compiled it and then made changes to the source code.