microbit_scpi_pass_fail
Fork of microbit-hello-world by
scpi_lib/README.md@1:aa0af9cf4f28, 2018-11-06 (annotated)
- Committer:
- jancumps
- Date:
- Tue Nov 06 20:58:04 2018 +0000
- Revision:
- 1:aa0af9cf4f28
Function complete first version
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
jancumps | 1:aa0af9cf4f28 | 1 | SCPI parser library v2 |
jancumps | 1:aa0af9cf4f28 | 2 | =========== |
jancumps | 1:aa0af9cf4f28 | 3 | |
jancumps | 1:aa0af9cf4f28 | 4 | [Documentation](http://j123b567.github.io/scpi-parser) |
jancumps | 1:aa0af9cf4f28 | 5 | -------- |
jancumps | 1:aa0af9cf4f28 | 6 | |
jancumps | 1:aa0af9cf4f28 | 7 | About |
jancumps | 1:aa0af9cf4f28 | 8 | -------- |
jancumps | 1:aa0af9cf4f28 | 9 | |
jancumps | 1:aa0af9cf4f28 | 10 | [SCPI](http://en.wikipedia.org/wiki/Standard_Commands_for_Programmable_Instruments) Parser library aims to provide parsing ability of SCPI commands on **instrument side**. All commands are defined by its patterns eg: `"STATus:QUEStionable:EVENt?"`. |
jancumps | 1:aa0af9cf4f28 | 11 | |
jancumps | 1:aa0af9cf4f28 | 12 | Source codes are published with open source BSD 2-Clause License. |
jancumps | 1:aa0af9cf4f28 | 13 | |
jancumps | 1:aa0af9cf4f28 | 14 | SCPI parser library is based on these standards |
jancumps | 1:aa0af9cf4f28 | 15 | |
jancumps | 1:aa0af9cf4f28 | 16 | * [SCPI-99](http://www.ivifoundation.org/docs/scpi-99.pdf) |
jancumps | 1:aa0af9cf4f28 | 17 | * [IEEE 488.2-2004](http://dx.doi.org/10.1109/IEEESTD.2004.95390) |
jancumps | 1:aa0af9cf4f28 | 18 | |
jancumps | 1:aa0af9cf4f28 | 19 | |
jancumps | 1:aa0af9cf4f28 | 20 | **SCPI version compliance** |
jancumps | 1:aa0af9cf4f28 | 21 | <table> |
jancumps | 1:aa0af9cf4f28 | 22 | <tr><td>SCPI version<td>v1999.0</tr> |
jancumps | 1:aa0af9cf4f28 | 23 | </table> |
jancumps | 1:aa0af9cf4f28 | 24 | |
jancumps | 1:aa0af9cf4f28 | 25 | |
jancumps | 1:aa0af9cf4f28 | 26 | **Supported command patterns** |
jancumps | 1:aa0af9cf4f28 | 27 | <table> |
jancumps | 1:aa0af9cf4f28 | 28 | <tr><th>Feature<th>Pattern example</tr> |
jancumps | 1:aa0af9cf4f28 | 29 | <tr><td>Short and long form<td><code>MEASure</code> means <code>MEAS</code> or <code>MEASURE</code> command</tr> |
jancumps | 1:aa0af9cf4f28 | 30 | <tr><td>Common command<td><code>*CLS</code></td> |
jancumps | 1:aa0af9cf4f28 | 31 | <tr><td>Compound command<td><code>CONFigure:VOLTage</code><tr> |
jancumps | 1:aa0af9cf4f28 | 32 | <tr><td>Query command<td><code>MEASure:VOLTage?</code>, <code>*IDN?</code></tr> |
jancumps | 1:aa0af9cf4f28 | 33 | <tr><td>Optional keywords<td><code>MEASure:VOLTage[:DC]?</code></tr> |
jancumps | 1:aa0af9cf4f28 | 34 | <tr><td>Numeric keyword suffix<br>Multiple identical capabilities<td><code>OUTput#:FREQunecy</code></tr> |
jancumps | 1:aa0af9cf4f28 | 35 | </table> |
jancumps | 1:aa0af9cf4f28 | 36 | |
jancumps | 1:aa0af9cf4f28 | 37 | **Supported parameter types** |
jancumps | 1:aa0af9cf4f28 | 38 | <table> |
jancumps | 1:aa0af9cf4f28 | 39 | <tr><th>Type<th>Example</tr> |
jancumps | 1:aa0af9cf4f28 | 40 | <tr><td>Decimal<td><code>10</code>, <code>10.5</code></tr> |
jancumps | 1:aa0af9cf4f28 | 41 | <tr><td>Decimal with suffix<td><code>-5.5 V</code>, <code>1.5 KOHM</code></tr> |
jancumps | 1:aa0af9cf4f28 | 42 | <tr><td>Hexadecimal<td><code>#HFF</code></tr> |
jancumps | 1:aa0af9cf4f28 | 43 | <tr><td>Octal<td><code>#Q77</code></tr> |
jancumps | 1:aa0af9cf4f28 | 44 | <tr><td>Binary<td><code>#B11</code></tr> |
jancumps | 1:aa0af9cf4f28 | 45 | <tr><td>String<td><code>"text"</code>, <code>'text'</code></tr> |
jancumps | 1:aa0af9cf4f28 | 46 | <tr><td>Arbitrary block<td><code>#12AB</code></tr> |
jancumps | 1:aa0af9cf4f28 | 47 | <tr><td>Program expression<td><code>(1)</code></tr> |
jancumps | 1:aa0af9cf4f28 | 48 | <tr><td>Numeric list<td><code>(1,2:50,80)</code></tr> |
jancumps | 1:aa0af9cf4f28 | 49 | <tr><td>Channel list<td><code>(@1!2:3!4,5!6)</code></tr> |
jancumps | 1:aa0af9cf4f28 | 50 | <tr><td>Character data<td><code>MINimum</code>, <code>DEFault</code>, <code>INFinity</code></tr> |
jancumps | 1:aa0af9cf4f28 | 51 | </table> |
jancumps | 1:aa0af9cf4f28 | 52 | |
jancumps | 1:aa0af9cf4f28 | 53 | |
jancumps | 1:aa0af9cf4f28 | 54 | [![travis build](https://travis-ci.org/j123b567/scpi-parser.svg?branch=master)](https://travis-ci.org/j123b567/scpi-parser) [![Coverage Status](https://coveralls.io/repos/j123b567/scpi-parser/badge.svg?branch=master&service=github)](https://coveralls.io/github/j123b567/scpi-parser?branch=master) |
jancumps | 1:aa0af9cf4f28 | 55 |