ice:commands:overview
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
ice:commands:overview [2013/12/04 20:10] – Michael Radunsky | ice:commands:overview [2013/12/05 16:59] – Ben Luey | ||
---|---|---|---|
Line 4: | Line 4: | ||
we recommend talking to the Master board via USB Serial using a terminal program such as | we recommend talking to the Master board via USB Serial using a terminal program such as | ||
[[http:// | [[http:// | ||
- | |||
//Note: All commands are case insensitive.// | //Note: All commands are case insensitive.// | ||
+ | |||
+ | There are 2 types of commands: | ||
+ | * Commands for the Master board | ||
+ | * Commands for individual Slave boards, routed by the Master. | ||
+ | |||
+ | All commands for the Master Board are prefixed with the character "#", | ||
+ | are commands for the master. Any command that does not start with "#" | ||
+ | that the master is talking to. The **#Slave** command shows/sets what slot (1-8) the master board is talking to. | ||
+ | |||
+ | ===== Sample Conversion ===== | ||
+ | |||
+ | For example, let's say you have a Quad Temp board in Slot 2 and a Peak Lock Servo & Current Controller | ||
+ | in Slot 5. Then you may have the following conversation over the serial: | ||
+ | |||
+ | #Slave | ||
+ | 6 | ||
+ | #Slave 2 | ||
+ | 2 | ||
+ | SetTemp 3 24.56 | ||
+ | 24.56 | ||
+ | Bipolar 3 On | ||
+ | On | ||
+ | #Slave 5 | ||
+ | Laser Off | ||
+ | Off | ||
+ | | ||
+ | A translation of the above conversation with the ICE Master board is as follows: | ||
+ | |||
+ | |What slave device are you talking to? | | ||
+ | | I'm talking to the device in slot 6 (Master)| | ||
+ | |Please start talking to the device in slot 2 | | ||
+ | | Ok, I'm now talking to the device in slot 2 (Master)| | ||
+ | |Set the temperature setpoint of channel 3 to 24.56°C | ||
+ | | Done, set to 24.56°C | ||
+ | |Disable bipolar mode for channel 3 | | ||
+ | | Done, bipolar mode is now off (Quad Temp in Slot 2)| | ||
+ | |Please start talking to the device in slot 5 | | ||
+ | | Ok, I'm now talking to the device in slot 5 (Master)| | ||
+ | |Please turn off the laser | | ||
+ | | Ok, the laser is now off (Peak Lock in Slot 5)| | ||
+ | |||
+ | |||
+ | ===== Sample Command Description ===== | ||
The documentation for every command will look like the example below: | The documentation for every command will look like the example below: | ||
Line 19: | Line 61: | ||
**TempMin** is the name of the command. The arguments list shows the parameters that must be | **TempMin** is the name of the command. The arguments list shows the parameters that must be | ||
included when running the command. The datatype (integer, floating point number, ascii characters) for | included when running the command. The datatype (integer, floating point number, ascii characters) for | ||
- | the argument is bracketed ([]) before the name of the argument. The Description section | + | the argument is bracketed ([]) before the name of the argument. The Description section |
what the function does and how the arguments are used. The first line of the example section is INPUT and | what the function does and how the arguments are used. The first line of the example section is INPUT and | ||
shows what should be typed into //putty// or similar terminal program and the second line is a sample of the | shows what should be typed into //putty// or similar terminal program and the second line is a sample of the | ||
output sent back to the terminal program after the first line is completed and ENTER is pressed. | output sent back to the terminal program after the first line is completed and ENTER is pressed. | ||
- |
ice/commands/overview.txt · Last modified: 2023/11/30 21:29 by 127.0.0.1