21.09.2013 Views

ATS-2 Basic Extensions.vp

ATS-2 Basic Extensions.vp

ATS-2 Basic Extensions.vp

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>ATS</strong>.File.SaveWfmAs Chapter 10 File<br />

End Sub<br />

<strong>ATS</strong>.File.SaveWfmAs<br />

Method<br />

Syntax <strong>ATS</strong>.File.SaveWfmAs(ByVal FileName As String,<br />

ByVal siOption1 As Integer, ByVal siOption2 As<br />

Integer)<br />

Parameter Name Description<br />

FileName Long Path and File Names permitted up to 128 characters.<br />

siOption1 This option determines the source of the waveform to be<br />

stored in the first section of the disk file.<br />

1 = Acquisition buffer 1<br />

2 = Acquisition buffer 2<br />

3 = Transform buffer 1<br />

4 = Transform buffer 2<br />

siOption2 This option determines the source of the waveform to be<br />

stored in the last section of the disk file.<br />

0 = None<br />

1 = Acquisition buffer 1<br />

2 = Acquisition buffer 2<br />

3 = Transform buffer 1<br />

4 = Transform buffer 2<br />

Result Boolean<br />

True File save successfull.<br />

False File save failed.<br />

Description This command saves waveform data contained in the buffers<br />

designated by Option #1 and #2 into the designated file. The<br />

waveform designated by Option #1 saves to the first section of the<br />

file and the Option #2 waveform to the last section of the file.<br />

Comment Acquisition buffer : This buffer holds waveform data captured into<br />

DSP memory by an acqusition (F9). Selecting the acquisition buffer<br />

causes the complete acquired signal to be saved to a disk file for later<br />

download (via the <strong>ATS</strong>.File.OpenWfm command) for further<br />

analysis including FFT spectrum analysis and waveform display.<br />

AP <strong>Basic</strong> <strong>Extensions</strong> for <strong>ATS</strong>-2 Page 10-11

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!