Table of Contents

Method ReadSequencerRegisterDistinct

Namespace
NationalInstruments.SemiconductorTestLibrary.InstrumentAbstraction.Digital
Assembly
NationalInstruments.SemiconductorTestLibrary.Extensions.dll

ReadSequencerRegisterDistinct(DigitalSessionsBundle, string)

Reads the numeric state of a pattern sequencer flag.

public static int ReadSequencerRegisterDistinct(this DigitalSessionsBundle sessionsBundle, string registerName)

Parameters

sessionsBundle DigitalSessionsBundle

The DigitalSessionsBundle object.

registerName string

Specifies pattern sequencer register to read. Possible values include "reg0" through "reg15".

Returns

int

An single int value for the specified pattern sequencer register.

Remarks

This method is the same as ReadSequencerRegister(DigitalSessionsBundle, string), except it also checks to confirm if the register values are the same across all sessions in the bundle. If the states are indeed the same, it will return the single integer value. Otherwise, it will throw an exception.

Exceptions

NISemiconductorTestException

The state of the sequence register is not the same between instrument sessions.