FilmStar BASIC is a VBA (Microsoft Visual Basic for Applications)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
IDE (Integrated Development Environment)The screen shot at the left (click to enlarge) shows how the BASIC IDE appears within FilmStar. The IDE holds up to nine windows, making it easy to cut and paste code. This particular program, fnum32.bas (included with FilmStar DESIGN), performs cone angle calculations by repeatedly averaging over series of angles. By NOT being 'hard-wired' into FilmStar DESIGN, users can modify the code to account for angular light distribution, etc. The Enter values dialog was implemented with the visual User Dialog editor. In this editor users click on the desired Windows object (button, label, etc.) and drag it into place. Upon exiting the dialog, the code shown below is automatically pasted into the IDE.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Integration with FilmStar ModulesFilmStar BASIC is integrated with other FilmStar modules: FSPlot Module, Workbook, Report Generator and FilmStar Database. In this simple example, FilmStar BASIC uses the FSPlot Module to display color shifts as a function of incident angle.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
On-Line HelpIn addition to its well- documented set of language instructions, which will be familiar to anyone who has programmed in some version of BASIC, FilmStar BASIC adds special commands, keywords, and subroutines. These are documented in on-line help as well as in the BASIC object browser. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Running BASIC ProgramsIt is not necessary to run programs from the BASIC IDE. Once a program is developed it can be run as a macro assigned to keys <Shift+F1> to <Shift+F6>. As illustrated here, a Macro of Macros allows far more than the six programs assigned to shortcut keys. The Optics Quality Control dialog illustrates compelling reasons to understand and implement FilmStar BASIC programs. Complex QC sequences can be reduced to step-by-step procedures, thereby reducing training costs and enabling coating facilities to sincerely comply with ISO-9001 requirements. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Integration with External ProgramsFilmStar BASIC lets users add calculation or data acquisition modules. As an example FilmStar includes an ActiveX server for data acquisition from Ocean Optics spectrometers. The server can run in stand-alone mode for testing or automatically from DESIGN and MEASURE. FilmStar BASIC can also communicate with DLLs (dynamic linked libraries) developed in various Windows languages. Excel and other 32-bit Windows applications can utilize FilmStar's ActiveX interface. As illustrated by Bar-code Reader, 16-bit software can be integrated with FilmStar via DDE (dynamic data exchange). |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Included FilmStar BASIC Programs (partial list)
With the exception of IndexSolve.bas, the above programs are provided in the Free Version. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Copyright © 2010 FTG Software Associates
Last updated on
August 31, 2010