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!

MemArb_To_File Macro

After you have created a MemArb in memory and tested (and perhaps modified) it, you may want to save it to a file. This might be useful for other applications, or for using as a normal file-type Arb in a Generator setup. That's important because .GEN setups don't save MemArb data, but they can save Arb file names, and load such files automatically when the .GEN setup is loaded.

If you created the MemArb using the Arb_From_Equation or Arb_From_List macro mini-apps, you have already created the Arb file. Here we consider the case where the MemArb may have been created by some other macro, or even a series of macros modifying a normal Arb while in memory.

The included MemArb_To_File macro mini-app will save the designated MemArb (or modified Arb) to the .WAV file of your choice. You can change the file format via the "Save as type" drop-down control in the Save As dialog, or use a simple macro modification to always default to another file format.

You choose the MemArb number to save by entering it into Field1. (Note that Label1 is not changed to denote this.) Alternatively, if you always want to use a specific MemArb number, uncomment the second line by removing the leading semicolon. Change Ch=0 to whatever MemArb number you want to use.

If you always want to save to another format besides .WAV, change the MemArbV="<SaveWAV: command to the desired default extension. You can use .DQA, .WAV, .DAT, or .TXT. For example, to default to .TXT instead, use MemArbV="<SaveTXT:". (Technically, you can also use the high-resolution .BUF format, which supports values with 32-bit integer and 32-bit fraction parts, but MemArbs only hold 16-bit integers. Also, you can't later load .BUF files as Arbs, only into Buf0-Buf7 memory arrays.)


;<Help=H491B
Ch=Field1 & 7              ;Get MemArb number 0-7 from Field1
;Ch=0                      ;Force specific MemArb 0-7
UX=MemArbV?N               ;Size of MemArb (V = num in Ch)
IF.UX=0                    ;No MemArb there?
    Msg="MemArb" + Ch + " not found."
ELSE.
    MemArbV="<SaveWAV:
ENDIF.

See also Memory Arbs (MemArb0-7), Wave Dialog, Arb Wave.

GO:

Questions? Comments? Contact us!

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