beautypg.com

Teledyne LeCroy TA660СА User Manual

Page 150

background image

TA660 User's Manual

Catalyst Enterprises, Inc

144

// The code below is an example of how to use the function to modify or read
// sequencer files, from the DllUserView.cpp file in the DLLUSER project:

#include "FileBuilder.h"

CSeqBuilder sequencer;

UINT nStateNo = SEQ_S1;

builder.Open(testboard.seq, CSeqBuilder::ReadWrite);

// open testboard.seq

sequencer.SetField(nStateNo, SEQ_TRIGGER, TRUE);

// Set trigger to TRUE

sequencer.SetField(nStateNo, SEQ_EXERCISER, FALSE);

// Set Start Exerciser

// to FALSE

sequencer.SetField(nStateNo, SEQ_STORE, SEQ_EV8);

// Store EV8

sequencer.SetField(nStateNo, SEQ_IF_TIME, FALSE);

// Set time to FALSE

sequencer.SetField(nStateNo, SEQ_IF_COUNT, 10);

// Set counter to 10

sequencer.SetField(nStateNo, SEQ_IF_CONDITION, SEQ_NONE);

// Set If condition to NONE

sequencer.SetField(nStateNo, SEQ_IF_TAG, TRUE);

// Set Tag flag to TRUE

sequencer.SetField(nStateNo, SEQ_IF_THEN, SEQ_S20);

// Set IF Then to goto S20

sequencer.SetElseStatement(nStateNo, 0, SEQ_ELSE_CONDITION, "ev1+ev2");

// set else condition to the expression “ev1+ev2”

sequencer.SetElseStatement(nStateNo, 0, SEQ_ELSE_DISCARD, TRUE);

// Set ELSE discard flag to True

sequencer.SetElseStatement(nStateNo, 0, SEQ_ELSE_THEN, SEQ_S20);

// Set Else statement 0 to goto S20

sequencer.Close();

// Close and save the sequencer file

This manual is related to the following products: