studio icon indicating copy to clipboard operation
studio copied to clipboard

Support for non-SCPI instruments and devices

Open mvladic opened this issue 2 months ago • 0 comments

  • [x] Specify during IEXT project creation "Commands protocol" with following options: "SCPI", "PROPRIETARY".

    image

  • [x] In case of non-SCPI instrument instead of Add Chart button there is "Show/Hide Plotter" button

    image

    This button will plot received data similar to Arduino IDE Serial Plotter Tool. For example, following chart is displayed:

    image

    for the following data received on the serial port:

    Random:0.52	Sine:0.41
    Random:0.43	Sine:0.41
    Random:0.50	Sine:0.52
    Random:0.21	Sine:0.52
    Random:0.17	Sine:0.52
    Random:0.32	Sine:0.52
    
  • [X] Create chart from selected items button

    image

    image

  • [X] Add line ending option for non-SCPI instruement.

    image

    Default value can be specified in IEXT project:

    image

    Posible values are: "no-line-ending", "newline", "carriage-return", "both-nl-and-cr".

  • [X] Add InstrumentRead and InstrumentWrite action components similar to SerialRead and SerialWrite. SCPI instruments uses SCPI action component to communicate with the instrument, for non-SCPI instruments use these new actions.

    image

  • [x] Similar to SCPI instruments (SCPI subsystems and commands), add commands description feature also for non-SCPI IEXT project.

    • [x] Add "Commands documentation folder" in Settings/General. If this property is set than instruments commands can be synchronized with HTML files inside this folder. Here is how, for example, command can be specified inside HTML file (important part is <a name="_eez-iext-cmd_attenuate">, this will add command attenuate):

      <dt><a name="_eez-iext-cmd_attenuate"></a>attenuate</dt>
      <dd>
          sets the internal attenuation to automatic or a specific
          value<br />usage: attenuate [auto|0-31]
      </dd>
      

      To open synchronization dialog, similar to SCPI commands, click this icon:

      image

mvladic avatar Apr 25 '24 11:04 mvladic