FasterCap Automation Example Programs
Altough Automation is a complex topic, using FasterCap via Automation is simple enough. To get you started, we have created some example scripts which can be used to learn how to control FasterCap and as a base to build more complex applications. In spite of their short length, these examples are quite comprehensive and the source code is well commented.
You can find the example files in a sub-directory in FasterCap's installation directory.
FasterCapClient Sample Program
This is the most complete example, which shows the use of all FasterCap methods and properties. To compile this example, you must have MS Visual Basic 6.0 (or newer) installed.
For your convenience, we provided also the executable file that you can directly run, provided that you have Visual Basic 6.0 DLL installed.
fastercap_drive.xls Sample Program
This is a Visual Basic for Applications example. To run this example, you must have MS Excel 2000 (or newer) installed. With minor modifications, marked with proper comments in the Visual Basic source code embedded in the spreadsheet, you can also run the same example using LibreOffice Calc.
Remark: for the script to work, you must answer 'yes' at the prompt which asks you if you want to enable the macros, when you load the file into Excel or Calc.
Remark: the files sphere0.txt, sphere1.txt, sphere2.txt, sphere3.txt are used by this script and must reside in the same directory of fastercap_drive.xls for the script to work.
fastercap_drive.vbs Sample Program
This is a Visual Basic Script example. The best way to launch this script is from a DOS shell, typing "cscript fastercap_drive.vbs", in the directory where fastercap_drive.vbs resides.
You can also double-click on the file name, but in this case all the log messages will appear in separate pop-up message boxes.
Remark: the files sphere0.txt, sphere1.txt, sphere2.txt, sphere3.txt are used by this script and must reside in the same directory of fastercap_drive.vbs for the script to work.