mp5103_commands
¶
The MP5103 commands module.
THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED.
Please report an issue if one is found.
MP5103CommandConstants
¶
The MP5103 command argument constants.
This provides access to all the string constants which can be used as arguments for MP5103 commands.
MP5103Commands
¶
The MP5103 commands.
This provides access to all the commands for the MP5103 device. See the documentation of each property for more usage information.
Properties and methods
.bit: Thebitcommand tree..buffer_var: ThebufferVarcommand tree..dataqueue: Thedataqueuecommand tree..delay(): Thedelay()function..digio: Thedigiocommand tree..eventlog: Theeventlogcommand tree..exit(): Theexit()function..firmware: Thefirmwarecommand tree..format: Theformatcommand tree..fs: Thefscommand tree..gettimezone(): Thegettimezone()function..io: Theiocommand tree..lan: Thelancommand tree..localnode: Thelocalnodecommand tree..login(): Thelogin()function..logout(): Thelogout()function..makegetter(): Themakegetter()function..makesetter(): Themakesetter()function..node: Thenode[N]command tree..opc(): Theopc()function..os: Theoscommand tree..print(): Theprint()function..printbuffer(): Theprintbuffer()function..printnumber(): Theprintnumber()function..reset(): Thereset()function..script_var: ThescriptVarcommand tree..script: Thescriptcommand tree..settime(): Thesettime()function..settimezone(): Thesettimezone()function..slot: Theslot[Z]command tree..status: Thestatuscommand tree..timer: Thetimercommand tree..trigger: Thetriggercommand tree..tsplink: Thetsplinkcommand tree..tspnet: Thetspnetcommand tree..usbtmc: Theusbtmccommand tree..user: Theusercommand tree..userstring: Theuserstringcommand tree..waitcomplete(): Thewaitcomplete()function.
bit
property
¶
bit: Bit
Return the bit command tree.
Sub-properties and sub-methods
.bitand(): Thebit.bitand()function..bitor(): Thebit.bitor()function..bitxor(): Thebit.bitxor()function..clear(): Thebit.clear()function..get(): Thebit.get()function..getfield(): Thebit.getfield()function..set(): Thebit.set()function..setfield(): Thebit.setfield()function..test(): Thebit.test()function..toggle(): Thebit.toggle()function.
buffer_var
property
¶
Return the bufferVar command tree.
Info
bufferVar, the reading buffer; can be a dynamically allocated user-defined buffer or a dedicated reading buffer.
Sub-properties and sub-methods
.appendmode: ThebufferVar.appendmodeattribute..cachemode: ThebufferVar.cachemodeattribute..capacity: ThebufferVar.capacityattribute..clear(): ThebufferVar.clear()function..clearcache(): ThebufferVar.clearcache()function..columnname: ThebufferVar.columnnamecommand tree..fillcount: ThebufferVar.fillcountattribute..fillmode: ThebufferVar.fillmodeattribute..fractionalseconds: ThebufferVar.fractionalseconds[N]attribute..measurefunctions: ThebufferVar.measurefunctions[N]attribute..measureranges: ThebufferVar.measureranges[N]attribute..n: ThebufferVar.nattribute..readings: ThebufferVar.readings[N]attribute..seconds: ThebufferVar.seconds[N]attribute..sourcefunctions: ThebufferVar.sourcefunctions[N]attribute..sourceoutputstates: ThebufferVar.sourceoutputstates[N]attribute..sourceranges: ThebufferVar.sourceranges[N]attribute..sourcevalues: ThebufferVar.sourcevalues[N]attribute..statuses: ThebufferVar.statuses[N]attribute..timestampresolution: ThebufferVar.timestampresolutionattribute..timestamps: ThebufferVar.timestamps[N]attribute.
dataqueue
property
¶
dataqueue: Dataqueue
Return the dataqueue command tree.
Constants
.CAPACITY: The maximum number of entries that you can store in the data queue.
Sub-properties and sub-methods
.add(): Thedataqueue.add()function..clear(): Thedataqueue.clear()function..count: Thedataqueue.countattribute..next(): Thedataqueue.next()function.
digio
property
¶
digio: Digio
Return the digio command tree.
Sub-properties and sub-methods
.readbit(): Thedigio.readbit()function..readport(): Thedigio.readport()function..trigger: Thedigio.trigger[N]command tree..writebit(): Thedigio.writebit()function..writeport(): Thedigio.writeport()function..writeprotect: Thedigio.writeprotectattribute.
eventlog
property
¶
eventlog: Eventlog
Return the eventlog command tree.
Sub-properties and sub-methods
.clear(): Theeventlog.clear()function..count: Theeventlog.countattribute..next(): Theeventlog.next()function.
firmware
property
¶
firmware: Firmware
Return the firmware command tree.
Sub-properties and sub-methods
.load(): Thefirmware.load()function..update(): Thefirmware.update()function.
format
property
¶
format: Format
Return the format command tree.
Sub-properties and sub-methods
.asciiprecision: Theformat.asciiprecisionattribute..byteorder: Theformat.byteorderattribute..data: Theformat.dataattribute.
fs
property
¶
fs: Fs
Return the fs command tree.
Sub-properties and sub-methods
.cwd(): Thefs.cwd()function..is_dir(): Thefs.is_dir()function..is_file(): Thefs.is_file()function..mkdir(): Thefs.mkdir()function..readdir(): Thefs.readdir()function..rmdir(): Thefs.rmdir()function.
io
property
¶
io: Io
Return the io command tree.
Sub-properties and sub-methods
.close(): Theio.close()function..flush(): Theio.flush()function..input(): Theio.input()function..open(): Theio.open()function..output(): Theio.output()function..read(): Theio.read()function..type(): Theio.type()function..write(): Theio.write()function.
lan
property
¶
lan: Lan
Return the lan command tree.
Sub-properties and sub-methods
.applysettings(): Thelan.applysettings()function..autoconnect: Thelan.autoconnectattribute..config: Thelan.configcommand tree..enable: Thelan.enableattribute..hislip: Thelan.hislipcommand tree..identify: Thelan.identifyattribute..ipconfig(): Thelan.ipconfig()function..linktimeout: Thelan.linktimeoutattribute..nagle: Thelan.nagleattribute..rawsocket: Thelan.rawsocketcommand tree..reset(): Thelan.reset()function..restoredefaults(): Thelan.restoredefaults()function..status: Thelan.statuscommand tree..telnet: Thelan.telnetcommand tree.
localnode
property
¶
localnode: Localnode
Return the localnode command tree.
Sub-properties and sub-methods
.license: Thelocalnode.licenseattribute..linefreq: Thelocalnode.linefreqattribute..manufacturer: Thelocalnode.manufacturerattribute..model: Thelocalnode.modelattribute..prompts: Thelocalnode.promptsattribute..prompts4882: Thelocalnode.prompts4882attribute..serialno: Thelocalnode.serialnoattribute..showerrors: Thelocalnode.showerrorsattribute..version: Thelocalnode.versionattribute.
node
property
¶
Return the node[N] command tree.
Info
N, the node number of the specified instrument.
Sub-properties and sub-methods
.execute(): Thenode[N].execute()function..getglobal(): Thenode[N].getglobal()function..setglobal(): Thenode[N].setglobal()function.
os
property
¶
os: Os
Return the os command tree.
Sub-properties and sub-methods
.clock(): Theos.clock()function..remove(): Theos.remove()function..rename(): Theos.rename()function..time(): Theos.time()function.
script
property
¶
script: Script
Return the script command tree.
Sub-properties and sub-methods
.delete(): Thescript.delete()function..load(): Thescript.load()function..new(): Thescript.new()function..newautorun(): Thescript.newautorun()function..restore(): Thescript.restore()function.
script_var
property
¶
Return the scriptVar command tree.
Info
scriptVar, the name of the variable that references the script.
Sub-properties and sub-methods
.autorun: ThescriptVar.autorunattribute..list(): ThescriptVar.list()function..name: ThescriptVar.nameattribute..run(): ThescriptVar.run()function..save(): ThescriptVar.save()function..source: ThescriptVar.sourceattribute.
slot
property
¶
Return the slot[Z] command tree.
Info
Z, the module slot number.
Sub-properties and sub-methods
.firmware: Theslot[Z].firmwarecommand tree..license: Theslot[Z].licenseattribute..manufacturer: Theslot[Z].manufacturerattribute..model: Theslot[Z].modelattribute..psu: Theslot[Z].psu[X]command tree..serialno: Theslot[Z].serialnoattribute..smu: Theslot[Z].smu[X]command tree..status: Theslot[Z].statuscommand tree..trigger: Theslot[Z].triggercommand tree..version: Theslot[Z].versionattribute.
status
property
¶
status: Status
Return the status command tree.
Sub-properties and sub-methods
.condition: Thestatus.conditionattribute..node_enable: Thestatus.node_enableattribute..node_event: Thestatus.node_eventattribute..operation: Thestatus.operationcommand tree..request_enable: Thestatus.request_enableattribute..request_event: Thestatus.request_eventattribute..reset(): Thestatus.reset()function..standard: Thestatus.standardcommand tree..system: Thestatus.systemcommand tree..system2: Thestatus.system2command tree..system3: Thestatus.system3command tree..system4: Thestatus.system4command tree..system5: Thestatus.system5command tree.
timer
property
¶
timer: Timer
Return the timer command tree.
Sub-properties and sub-methods
.cleartime(): Thetimer.cleartime()function..measure: Thetimer.measurecommand tree..readtime(): Thetimer.readtime()function.
trigger
property
¶
trigger: Trigger
Return the trigger command tree.
Constants
.EVENT_ID: The command interface trigger event number..EVENT_NONE: This trigger event ID is never generated. It is used to disconnect stimulus inputs.
Sub-properties and sub-methods
.clear(): Thetrigger.clear()function..detector: Thetrigger.detector[N]command tree..generator: Thetrigger.generator[N]command tree..timer: Thetrigger.timer[N]command tree..wait(): Thetrigger.wait()function.
tsplink
property
¶
tsplink: Tsplink
Return the tsplink command tree.
Sub-properties and sub-methods
.group: Thetsplink.groupattribute..master: Thetsplink.masterattribute..node: Thetsplink.nodeattribute..readbit(): Thetsplink.readbit()function..readport(): Thetsplink.readport()function..reset(): Thetsplink.reset()function..state: Thetsplink.stateattribute..trigger: Thetsplink.trigger[N]command tree..writebit(): Thetsplink.writebit()function..writeport(): Thetsplink.writeport()function..writeprotect: Thetsplink.writeprotectattribute.
tspnet
property
¶
tspnet: Tspnet
Return the tspnet command tree.
Sub-properties and sub-methods
.clear(): Thetspnet.clear()function..connect(): Thetspnet.connect()function..disconnect(): Thetspnet.disconnect()function..execute(): Thetspnet.execute()function..idn(): Thetspnet.idn()function..read(): Thetspnet.read()function..readavailable(): Thetspnet.readavailable()function..reset(): Thetspnet.reset()function..termination(): Thetspnet.termination()function..timeout: Thetspnet.timeoutattribute..tsp: Thetspnet.tspcommand tree..write(): Thetspnet.write()function.
usbtmc
property
¶
usbtmc: Usbtmc
Return the usbtmc command tree.
Sub-properties and sub-methods
.access: Theusbtmc.accessattribute.
user
property
¶
user: User
Return the user command tree.
Sub-properties and sub-methods
.password: Theuser.passwordcommand tree.
userstring
property
¶
userstring: Userstring
Return the userstring command tree.
Sub-properties and sub-methods
.add(): Theuserstring.add()function..delete(): Theuserstring.delete()function..get(): Theuserstring.get()function.
delay
¶
delay(seconds: int) -> None
Run the delay() function.
Description
- This function delays the execution of the commands that follow it.
TSP Syntax
- delay()
| Parameters: |
|
|---|
| Raises: |
|
|---|
exit
¶
exit() -> None
Run the exit() function.
Description
- This function stops a script that is presently running
TSP Syntax
- exit()
| Raises: |
|
|---|
gettimezone
¶
gettimezone() -> str
Run the gettimezone() function.
Description
- This function retrieves the local time zone.
TSP Syntax
- gettimezone()
| Returns: |
|
|---|
| Raises: |
|
|---|
login
¶
login(password: str) -> None
Run the login() function.
Description
- This command logs a user in to the mainframe and allows remote access.
TSP Syntax
- login()
| Parameters: |
|
|---|
| Raises: |
|
|---|
logout
¶
logout() -> None
Run the logout() function.
Description
- This function logs a user out of the mainframe.
TSP Syntax
- logout()
| Raises: |
|
|---|
makegetter
¶
Run the makegetter() function.
Description
- This function creates a function to get the value of an attribute.
TSP Syntax
- makegetter()
| Parameters: |
|---|
| Returns: |
|
|---|
| Raises: |
|
|---|
makesetter
¶
Run the makesetter() function.
Description
- This function creates a function that, when called, sets the value of an attribute.
TSP Syntax
- makesetter()
| Parameters: |
|---|
| Returns: |
|
|---|
| Raises: |
|
|---|
opc
¶
opc() -> None
Run the opc() function.
Description
- This function sets the operation complete status bit when all overlapped commands are completed.
TSP Syntax
- opc()
| Raises: |
|
|---|
print
¶
print(value: str) -> None
Run the print() function.
Description
- This function generates a response message.
TSP Syntax
- print()
| Parameters: |
|
|---|
| Raises: |
|
|---|
printbuffer
¶
Run the printbuffer() function.
Description
- This function prints data from tables or reading buffer subtables.
TSP Syntax
- printbuffer()
| Parameters: |
|
|---|
| Returns: |
|
|---|
| Raises: |
|
|---|
printnumber
¶
Run the printnumber() function.
Description
- This function prints numbers using the configured format.
TSP Syntax
- printnumber()
| Parameters: |
|
|---|
| Returns: |
|
|---|
| Raises: |
|
|---|
reset
¶
reset(system: str | None = None) -> None
Run the reset() function.
Description
- This function resets commands on all slots and channels to their default settings.
TSP Syntax
- reset()
| Parameters: |
|
|---|
| Raises: |
|
|---|
settime
¶
Run the settime() function.
Description
- This function sets the present time and the real time clock.
TSP Syntax
- settime()
| Parameters: |
|
|---|
| Raises: |
|
|---|
settimezone
¶
settimezone(
offset: str,
dst_offset: str | None = None,
dst_start: str | None = None,
dst_end: str | None = None,
) -> None
Run the settimezone() function.
Description
- This function sets the local time zone.
TSP Syntax
- settimezone()
| Parameters: |
|
|---|
| Raises: |
|
|---|
waitcomplete
¶
waitcomplete(group: str | None = None) -> None
Run the waitcomplete() function.
Description
- This function waits for all previously started overlapped commands to complete.
TSP Syntax
- waitcomplete()
| Parameters: |
|
|---|
| Raises: |
|
|---|
MP5103Mixin
¶
A mixin that provides access to the MP5103 commands and constants.
Properties
.command_argument_constants: The MP5103 command argument constants..commands: The MP5103 commands.
command_argument_constants
cached
property
¶
command_argument_constants: MP5103CommandConstants
Return the MP5103 command argument constants.
This provides access to all the string constants which can be used as arguments for MP5103 commands.
commands
cached
property
¶
commands: MP5103Commands
Return the MP5103 commands.
This provides access to all the commands for the MP5103 device. See the documentation of each sub-property for more usage information.
Sub-properties and sub-methods
.bit: Thebitcommand tree..buffer_var: ThebufferVarcommand tree..dataqueue: Thedataqueuecommand tree..delay(): Thedelay()function..digio: Thedigiocommand tree..eventlog: Theeventlogcommand tree..exit(): Theexit()function..firmware: Thefirmwarecommand tree..format: Theformatcommand tree..fs: Thefscommand tree..gettimezone(): Thegettimezone()function..io: Theiocommand tree..lan: Thelancommand tree..localnode: Thelocalnodecommand tree..login(): Thelogin()function..logout(): Thelogout()function..makegetter(): Themakegetter()function..makesetter(): Themakesetter()function..node: Thenode[N]command tree..opc(): Theopc()function..os: Theoscommand tree..print(): Theprint()function..printbuffer(): Theprintbuffer()function..printnumber(): Theprintnumber()function..reset(): Thereset()function..script_var: ThescriptVarcommand tree..script: Thescriptcommand tree..settime(): Thesettime()function..settimezone(): Thesettimezone()function..slot: Theslot[Z]command tree..status: Thestatuscommand tree..timer: Thetimercommand tree..trigger: Thetriggercommand tree..tsplink: Thetsplinkcommand tree..tspnet: Thetspnetcommand tree..usbtmc: Theusbtmccommand tree..user: Theusercommand tree..userstring: Theuserstringcommand tree..waitcomplete(): Thewaitcomplete()function.