Data AcQuisition And Real-Time AnalysisScope - Spectrum - Spectrogram - Signal Generator
Software for Windows
Science with your Sound Card!
Contact us about
Save Generator Setup
Since there are a lot of controls in the Daqarta Generator, you may want to save all the settings to a file so you can return to the same setup by loading the file in another session, or even later in the same session. Just click this button and you will be prompted for a file name for the setup. The setup file saves only information about the signal to be generated, not main Daqarta status or start or run preferences, which are saved separately. In particular, it does not save the current sample rate.
Note that the setup file includes the state of the Generator, plus volume control settings. If you load a setup that was saved with the Generator running, on the same sound card, it will immediately produce an output at the original volume.
However, the setup file preserves only the normal stereo volume settings, not those for Multi-Channel Outputs (4, 6, or 8 channels). Those are controlled via the custom control panel that comes with your multi-channel card, or (currently for Windows XP only) Daqarta's multi-channel slider dialog.
Although multi-channel volume settings are not currently saved in the Generator setup, in XP they are saved (along with most other sound card settings) in the Daqarta0.MIX file when you exit Daqarta, and restored the next time Daqarta starts.
The saved setup also includes the contents of the long Generator title control window above the main trace area. When you later load the setup, the title will be shown in that same location. The title text can be up to 64 characters long.
Daqarta Generator setup files have a .GEN file extension and each takes about 7300 bytes.
If you use the same setup for many sessions (say, a standard auditory threshold test) and change only the volume during each session, you can prevent the Save prompt by unchecking Prompt Volume Change in the Run Preferences dialog.
The SaveGEN= macro has no effect if any File Open or Save As dialog is already active.
SaveGEN= without a name will open the Save As dialog showing all .GEN files, with the default set to Setup or the most recent .GEN name.
SaveGEN="MyFile" will open the Save As dialog with the default name set to MyFile. (Note that quotes are needed around all filenames in macros.) If you accept this by hitting Enter or the Save button in that dialog, Daqarta will assume you want to save a file named MyFile.GEN. If that file already exists, you will be prompted to replace it.
After either of the above commands, you may use IF.Posn?f=0 to see if the user has hit Cancel instead of choosing a file name. This allows your macro to exit gracefully or take other action.
A.SaveGEN="MyFile" will save MyFile.GEN directly, without any Save As dialog. Note that if the file already exists, it will be overwritten without any confirmation prompt.
Similarly, if the Macro Variable Var0 holds a value of 12, then SaveGEN="Test"+Var0 will set a default file name of Test12. If you expect to use a large series of files, you can use SaveGEN="Test"+Var0(3) (for example) to set the decimal format to 3 integer places to get Test012. This will allow proper sorting by file name.
Before saving the setup with SaveGEN, you can use GenTitle to set the Generator title via macro.
Questions? Comments? Contact us!We respond to ALL inquiries, typically within 24 hrs.
Over 35 Years of Innovative Instrumentation
© Copyright 2007 - 2023 by Interstellar Research
All rights reserved