Daqarta
Data AcQuisition And Real-Time Analysis
Scope - Spectrum - Spectrogram - Signal Generator
Software for Windows
Science with your Sound Card!
The following is from the Daqarta Help system:

Features:

Oscilloscope

Spectrum Analyzer

8-Channel
Signal Generator

(Absolutely FREE!)

Spectrogram

Pitch Tracker

Pitch-to-MIDI

DaqMusiq Generator
(Free Music... Forever!)

Engine Simulator

LCR Meter

Remote Operation

DC Measurements

True RMS Voltmeter

Sound Level Meter

Frequency Counter
    Period
    Event
    Spectral Event

    Temperature
    Pressure
    MHz Frequencies

Data Logger

Waveform Averager

Histogram

Post-Stimulus Time
Histogram (PSTH)

THD Meter

IMD Meter

Precision Phase Meter

Pulse Meter

Macro System

Multi-Trace Arrays

Trigger Controls

Auto-Calibration

Spectral Peak Track

Spectrum Limit Testing

Direct-to-Disk Recording

Accessibility

Applications:

Frequency response

Distortion measurement

Speech and music

Microphone calibration

Loudspeaker test

Auditory phenomena

Musical instrument tuning

Animal sound

Evoked potentials

Rotating machinery

Automotive

Product test

Contact us about
your application!

Macro Edit Definition

Controls: Options >> Macro Dialog >> Edit >> Definition

This is the part of the macro that controls its operation. The Definition is just a list of commands, which may be basic internal Daqarta operation names, or the Names of other macros. You can put one command on each line, or put multiple commands on a line if they are separated by commas or one or more spaces.

Internal Daqarta commands end with an '=' sign and are typically followed by a value or text string, such as:

 ToneFreq=1000

Values are entered the same as you would enter them manually for the given control. In the above case, you could use 1k instead of 1000 to get the same result.

For text strings that contain spaces or commas, enclose the string in quotes so that Daqarta can find the end properly, as in:

 Label="Power, Watts"

Some strings can extend over multiple lines, using quotes at the overall start and end:

 Msg="Multi-line message box.
 Second line of message.
 Third line of message."

Some internal commands take multiple parameters separated by commas, and these also must be surrounded by quotes:

 MsgBkColr="255,255,0"
 MsgColr="255,0,0"
 MsgPos="100,100"

Commands that are the names of other macros must be preceded by '@' and normally not be followed by '=' or any parameters. For example, if you have previously defined _MyMacro you can invoke it from another macro via:

 @_MyMacro

However, you can also run such a macro in a Loop by specifying the number of times you want to repeat it. For example, to repeat 100 times you would use:

 @_MyMacro=100

You may also add comments to the Definition, in order to document what it is doing. A comment is any text that appears after a semicolon, for the rest of that line.

The Tab key moves among different controls or fields in a dialog. Within the Definition, you can use CTRL+Tab to move to the next tab stop. You may want to use this to space comments away from commands.

You can use CTRL+ALT+D to enter the current date, or CTRL+ALT+T to enter the current time. The Edit Date/Time Preferences menu allows you to specify the date or time format, and whether UTC time or local time will be used.

You can conclude a Definition by clicking on another control, such as Save. For keyboard-only control, the Tab key will conclude entry and move the focus to Save.

Each Definition is limited to about 3000 characters. For ease in reading and maintaining longer macros, it is best if they are subdivided into logical units that can be called as separate macros with meaningful names, such as StartTest or SaveData.


See also Macro Edit, Macro Dialog, Macro Overview


GO:

Questions? Comments? Contact us!

We respond to ALL inquiries, typically within 24 hrs.
INTERSTELLAR RESEARCH:
Over 35 Years of Innovative Instrumentation
© Copyright 2007 - 2023 by Interstellar Research
All rights reserved