beautypg.com

Teledyne LeCroy TA660СА User Manual

Page 147

background image

TA660 User's Manual

Catalyst Enterprises, Inc

141

Sequencer Files

To modify existing SEQ files the user must perform the following steps

1. Define the function

2. Open the SEQ file

3. Issue the desired commands

4. Close the SEQ file

To define the function the user must issue the following command:

CSeqBuilder sequencer;

“sequencer” is a user defined name.

To Open the SEQ file, the user must use the following command:

sequencer.Open(strSeqFileName, CSeqBuilder::ReadWrite);

“sequencer” is the user name defined in the CSeqBuilder statement.

“strSeqFileName” is the path and name of the Sequencer File to be modified or to be read.

In order to minimize the amount of writing to the sequencer file, the commands used to
modify the sequencer file, are stored in a buffer. After all the commands to modify the
sequencer file have been completed, the following command must be used to save and close
the file.

sequencer.Close();

“sequencer” is the user name defined in the CSeqBuilder statement.

To modify the Pretrigger value, use the following command

sequencer.SetPreTrigger(preTrigger);

“sequencer” is the user name defined in the CSeqBuilder statement.

“preTrigger” defines the new value to be for the pretrigger. (1 to 99)

To Read the value of the Pretrigger, use the following command:

sequencer.GetPreTrigger();

To modify the sequencer file the user must use the following command for each
modification:

sequencer.SetField(nStateNo, nFieldIndex, nNewValue);

To read the value of each field of the sequenecr file the user must use the following command:

sequencer.GetField(nStateNo, nFieldIndex, nValue);

This manual is related to the following products: