Cheatography
https://cheatography.com
YAML file format used in PyVisaSim's device simulators.
This is a draft cheat sheet. It is a work in progress and is not finished yet.
Version
spec: "" |
File Version |
float |
Devices
Syntax |
Type |
Description |
devices: |
list |
All Devices |
device: |
list |
Device |
eom: |
list |
End of Messages |
|
resource |
Resource Type |
|
str |
Write Termination |
|
str |
Read Termination |
dialogues: |
list |
Communication |
|
str |
Command |
|
str |
Response |
error: |
list |
Errors |
|
list |
Type |
|
str |
Value |
|
str |
Default |
command_error: ""
|
str |
Command Error |
query_error: ""
|
str |
Query Error |
properties: |
list |
Properties |
propertyname: |
list |
Name |
|
any |
Default |
|
list |
Getters |
|
str |
Query |
|
str |
Response |
|
list |
Setters |
|
str |
Query |
|
str |
Response (Optional) |
|
str |
Error (Optional) |
|
list |
Attributes |
|
any |
Minimum |
|
any |
Maximum |
|
type |
Type |
valid: []
|
list |
Values (Optional) |
resources: |
list |
Addresses |
address: |
list |
Address |
device: device1 |
device |
Address Assign |
filename: dev.yaml |
filename |
External File |
bundled: false |
bool |
Stock |
newstuff
spec: "1.1" |
devices: |
BH15: |
eom: |
GPIB INSTR: |
q: "\0" |
r: "\n" |
dialogues: |
- q: "OUTP?1" |
r: "1.0" |
error: |
error_queue: |
- q: "queue" |
default: "false" |
command_error: "set_queue" |
query_error: "get_queue" |
properties: |
parity: |
default: 0 |
getter: |
q: "getparity" |
r: "getparity" |
setter: |
q: "setparity" |
r: "setparity" |
specs: |
min: 0 |
max: 255 |
type: int |
valid: range(min, max, 1) |
resources: |
GPIB0::1::INSTR: |
device: BH15 |
filename: bh15.yaml |
bundled: false |
Spec
spec: " " |
str(float) |
File Version |
|