Tektronix FCA3000 Programmer's Manual page 143

Fca3000 series; fca3100 series; mca3000 series
Hide thumbs Also See for FCA3000:
Table of Contents

Advertisement

Using the *WAI Command
Using the *OPC Command
FCA3000, FCA3100, MCA3000 Series Programmer Manual
TRIGGER:COUNT 1000; :ARM COUNT 1
DISPLAY:ENABLE ON
FORMAT ASCII; :TINFORMATION OFF
/** Start measurement**/
INITIATE
/** Read results **/
FETCH:ARRAY? 1000
Measurements require extended processing time. They may not finish before the
controller attempts to read the results. To be sure the instrument completes the
measurements before the controller reads them, you can synchronize the program.
You can use three commands to synchronize the operation of the instrument with
your application program: *WAI, *OPC, and *OPC?
The *WAI command forces completion of previous commands that generate
an OPC message. No commands after the *WAI are processed before the OPC
message(s) are generated
The same command sequence using the *WAI command for synchronization
looks like this:
/** Set up for period measurement **/
FUNCTION "PERIOD 1"
INPUT:LEVEL 0; :AUTO OFF; :COUPLING DC
TRIGGER:COUNT 1000; :ARM COUNT 1
DISPLAY:ENABLE ON
FORMAT ASCII; :TINFORMATION OFF
/** Start measurement**/
INITIATE
/* Wait until the measurements are complete before
reading them*/
*/
*WAI
/** Read results **/
FETCH:ARRAY? 1000
The controller can continue to write commands to the input buffer of the
instrument, but the commands will not be processed by the instrument until all
in-process OPC operations are complete. If the input buffer becomes full, the
controller is unable to write commands to the buffer. This can cause a time-out.
If the corresponding status registers are enabled, the *OPC command sets the
OPC bit in the Standard Event Status Register (SESR) when an operation is
complete. You achieve synchronization by using this command with either a
serial poll or service request handler.
Status and Events
3-7

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FCA3000 and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Fca3003Fca3103Fca3120Mca3027Fca3020Fca3100 ... Show all

Table of Contents