![Ceyear 4051 Series User Manual Download Page 636](http://html1.mh-extra.com/html/ceyear/4051-series/4051-series_user-manual_2584924636.webp)
6 Remote control
6.1 Basis of Remote Control
622
6.1.4.1 Prevention of Overlapping Execution of Commands
In order to prevent overlapping execution of commands, multiple threads or commands can be applied,
including *OPC, *OPC? or *WAI. The three commands cannot be executed until the hardware is set. The
computer may be forced to wait for a certain period to synchronize certain events in the programming process.
The above methods are described below.
Use multiple threads in the control program.
Multiple threads are used to complete waiting commands and synchronize the user interface and program,
that is, the command ―*OPC?‖ is executed in each single thread, with no blockage of GUI or program
threads.
The use of three commands in synchronous execution is shown in the following table.
Table 6.5 Command Grammar
Method Execution Action
Programming Method
*OPC
After command execution, set the operation
completion bit in the ESR register.
Set ESE BIT0;
Set SRE BIT5; send the overlapping
command and *OPC;
Wait for the service request signal (SRQ).
The service request signal means that the
overlapping command has been executed.
*OPC? Stop executing the current command and return to 1.
Only when the operation completion bit in the ESR
register is set, the command will be returned,
indicating that the previous command has been
processed.
End the current command processing before
executing other commands. Directly send the
command after processing of the current
command.
*WAI Before executing *WAI, wait for sending of all
commands.
Then
process
the
uncompleted
commands.
End the current command processing before
executing other commands. Directly send the
command after processing of the current
command.
6.1.5 Status Report System
The status report system is used to save all operation status information and error information of the current
instrument. The operation status information and error information are respectively saved in the status register
and error queue and can be inquired through the programmed interface.
Structure of status register organization
Application of status report system
6.1.5.1 Structure of Status Register Organization
Register categories are as follows:
1)
STB, SRE
The top register of the status report system is composed of the status byte (STB) and associated shielding
register, i.e. service request enabling register (SRE). STB is used to collect the information of registers of the
lower layers and save the general working conditions of the instrument.
2)
ESR and SCPI status register
STB is used to receive the following register information:
Relevant values of event status registers and event status enabling (ESE) shielding registers.
SCPI status registers, such as STATus:OPERation and STATus:QUEStionable registers (defined by the
SCPI standard), including specific operations of the instrument. All the SCPI status registers have the
Summary of Contents for 4051 Series
Page 5: ......
Page 6: ......
Page 7: ......
Page 14: ......
Page 18: ......
Page 68: ......
Page 225: ...5 Menu 5 1 Menu structure 211 5 1 3 13 Maker Mkr Fig 5 3 13 Marker Menu...
Page 241: ...5 Menu 5 1 Menu structure 227 5 1 4 13 Maker Mkr Fig 5 4 13 Marker Menu...
Page 259: ...5 Menu 5 1 Menu structure 245 5 1 5 13 Maker Mkr Fig 5 5 13 Marker Menu...
Page 266: ...5 Menu 5 1 Menu structure 252 5 1 6 5 Sweep Sweep Fig 5 6 5 Sweep Menu...
Page 275: ...5 Menu 5 1 Menu structure 261 5 1 6 13 Maker Mkr Fig 5 6 13 Marker Menu...
Page 277: ...5 Menu 5 1 Menu structure 263 5 1 6 15 Peak Search Peak Search Fig 5 6 15 Peak Search Menu...
Page 280: ...5 Menu 5 1 Menu structure 266 5 1 7 3 Span X Scale Span Fig 5 7 3 Span Menu...
Page 291: ...5 Menu 5 1 Menu structure 277 5 1 7 13 Maker Mkr Fig 5 7 13 Marker Menu...
Page 296: ...5 Menu 5 1 Menu structure 282 5 1 8 3 Span X Scale Span Fig 5 8 3 Span Menu...
Page 306: ...5 Menu 5 1 Menu structure 292 5 1 8 12 Marker Marker Fig 5 8 12 Marker Menu...
Page 307: ...5 Menu 5 1 Menu structure 293 5 1 8 13 Maker Mkr Fig 5 8 13 Marker Menu...
Page 309: ...5 Menu 5 1 Menu structure 295 5 1 8 15 Peak Search Peak Search Fig 5 8 15 Peak Search Menu...
Page 312: ...5 Menu 5 1 Menu structure 298 5 1 9 3 Span X Scale Span Span 4 000000 GHz Fig 5 9 3 Span Menu...
Page 323: ...5 Menu 5 1 Menu structure 309 5 1 9 13 Maker Mkr Fig 5 9 13 Marker Menu...
Page 328: ...5 Menu 5 1 Menu structure 314 5 1 10 3 Span X Scale Span Fig 5 10 3 Span Menu...
Page 329: ...5 Menu 5 1 Menu structure 315 5 1 10 4 Bandwidth BW Fig 5 10 4 Bandwidth Menu...
Page 333: ...5 Menu 5 1 Menu structure 319 5 1 10 7 Trace Trace Fig 5 10 7 Trace Menu...
Page 340: ...5 Menu 5 1 Menu structure 326 5 1 10 13 Maker Mkr Fig 5 10 13 Marker Menu...
Page 345: ...5 Menu 5 1 Menu structure 331 5 1 11 3 Span X Scale Span Fig 5 11 3 Span Menu...
Page 357: ...5 Menu 5 1 Menu structure 343 5 1 11 13 Maker Mkr Fig 5 11 13 Marker Menu...
Page 359: ...5 Menu 5 1 Menu structure 345 5 1 11 15 Peak Search Peak Search Fig 5 11 15 Peak Search Menu...
Page 656: ......