Data AcQuisition And Real-Time AnalysisScope - Spectrum - Spectrogram - Signal Generator
Software for Windows
Science with your Sound Card!
Contact us about
Generator Volume/dB Slider Button
Macros: GenVolDlg, Atten_dB?, Atten_G?
This control is the small button between the Left and Right volume controls, labeled 'Vol' on an uncalibrated system, or 'dB' after calibration (if Use dB is set). Besides serving as the label for the volume controls, it also opens a dialog with slider controls. There are separate dialogs for uncalibrated Vol mode and calibrated dB or User Units mode.
Note: If your sound card uses a custom mixer that denies access to Daqarta, the volume controls are disabled here. You must make all volume changes with the custom mixer, and they will not be stored in Daqarta setups.
You may find sliders more convenient than simple edit controls, especially for uncalibrated operation. In that case, there are separate sliders for Master and Wave attenuators, whereas the main Generator edit controls only affect the Wave settings.
Also, the slider dialogs provide Track options to allow the Left and Right controls to be locked together, such that either one affects both. If enabled, Track stays in effect for the main edit controls as well.
Near the bottom of the slider dialogs are Auto and Mute buttons. Auto is a convenient duplicate of Generator Auto-Mute in Edit Menu - Run Preferences. Mute disables the output sound without changing the visible volume control settings.
The Auto and Mute buttons will be disabled if your sound card does not support the Mute operation.
Note that you can use the F9 function key to open the slider dialog at any time, including over any other dialog, to allow quick volume adjustments without having to close and re-open whatever you were working on.
If the main Generator dialog is open, GenVolDlg=1 opens either the Volume or the dB slider dialog, depending on the Attenuator Options settings (and whether your system is calibrated). GenVolDlg=0 closes the dialog, and GenVolDlg=x toggles between open and closed.
Unlike the manual F9 function key, GenVolDlg will not open the slider dialog unless the Generator dialog is open, but it will open over any Generator Stream dialog or sub-dialog.
Atten_dB?2 is a read-only variable that returns the total attenuation, in dB, for channel 2. You may use channels 0-3 here, given as a single digit; variables are not allowed:
0 = Left In 1 = Right In 2 = Left Out 3 = Right Out
The return value for output channels 2 or 3 takes both Master and Wave volume settings into account, if these controls are available on your system.
(For input channels 0 or 1 the return value takes into account whether your sound card has separate input lines and if so which one is selected, as well as whether you have separate attenuation or gain due to Input Line or Master levels.)
If you have not yet performed an auto-calibration, the return value will always be 0 dB.
Atten_G?2 is similar to the above but instead of dB it returns the attenuation as a linear gain factor. For example, Atten_G?2 would return 0.5000 where Atten_dB?2 returns 6.02 dB, or 1.000 instead of 0.00 dB.
Questions? Comments? Contact us!We respond to ALL inquiries, typically within 24 hrs.
Over 30 Years of Innovative Instrumentation
© Copyright 2007 - 2013 by Interstellar Research
All rights reserved