Created
December 4, 2021 19:23
-
-
Save kmadisa/a420cedc2cb4ef5c3c53f2b1a7406681 to your computer and use it in GitHub Desktop.
tango-simlib simulator data description file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"class_name":"TestClass", | |
"dynamicAttributes":[ | |
{ | |
"basicAttributeData":{ | |
"name":"attribute1", | |
"unit":"", | |
"label":"attribute 1", | |
"description":"An arbitrary attribute 1", | |
"data_type":"Double", | |
"data_format":"Scalar", | |
"format":"6.2f", | |
"data_shape":{ | |
"max_dim_x":1, | |
"max_dim_y":0 | |
}, | |
"attributeErrorChecking":{ | |
"min_value":-10, | |
"max_value":51, | |
"min_alarm":-9, | |
"max_alarm":50, | |
"min_warning":-8, | |
"max_warning":49 | |
}, | |
"attributeInterlocks":{ | |
"writable":"READ" | |
}, | |
"dataSimulationParameters":{ | |
"quantity_simulation_type":"ConstantQuantity" | |
} | |
} | |
}, | |
{ | |
"basicAttributeData":{ | |
"name":"attribute2", | |
"unit":"", | |
"label":"attribute 2", | |
"description":"An arbirtary attribute 2", | |
"data_type":"Double", | |
"data_format":"Scalar", | |
"format":"6.2f", | |
"delta_t":1000, | |
"delta_val":0.5, | |
"data_shape":{ | |
"max_dim_x":1, | |
"max_dim_y":0 | |
}, | |
"attributeErrorChecking":{ | |
"min_value":-10, | |
"max_value":51, | |
"min_alarm":-9, | |
"max_alarm":50, | |
"min_warning":-8, | |
"max_warning":49 | |
}, | |
"attributeInterlocks":{ | |
"writable":"READ" | |
}, | |
"dataSimulationParameters":{ | |
"quantity_simulation_type":"ConstantQuantity" | |
} | |
} | |
} | |
], | |
"commands":[ | |
{ | |
"basicCommandData":{ | |
"name":"Command1", | |
"description":"Exexutes command1 in the Sim device", | |
"actions":[ | |
], | |
"input_parameters":{ | |
"dtype_in":"Void", | |
"doc_in":"No input parameter", | |
"dformat_in":"Scalar" | |
}, | |
"output_parameters":{ | |
"dtype_out":"Void", | |
"doc_out":"Command prints the string 'Sim device Command1 executed!' on stdout", | |
"dformat_out":"Scalar" | |
} | |
} | |
}, | |
{ | |
"basicCommandData":{ | |
"name":"test_Command1", | |
"description":"Executes command1 in the SimControl device", | |
"input_parameters":{ | |
"dtype_in":"Void", | |
"doc_in":"No input parameter", | |
"dformat_in":"Scalar" | |
}, | |
"output_parameters":{ | |
"dtype_out":"Void", | |
"doc_out":"Command prints the string 'SimControl device Command1 executed!' on stdout", | |
"dformat_out":"Scalar" | |
} | |
} | |
} | |
], | |
"class_overrides":[ | |
{ | |
"override_class":{ | |
"name":"Sim_Test", | |
"module_directory":"/tango_simlib/scripts/", | |
"module_name":"test_module", | |
"class_name":"TestSim" | |
} | |
}, | |
{ | |
"override_class":{ | |
"name":"SimControl_Test", | |
"module_directory":"/tango_simlib/scripts/", | |
"module_name":"test_module", | |
"class_name":"TestSimControl" | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment