Scpi Arduino
Simple SCPI parser for Arduino
SCPI Parser for advanced programmers or instrumentation engineers. Tested only on Teensy 4.1 board. Fails to compile for Arduino UnoNano due to missing strtoull in stdlib.h. Port of the CC SCPI Parser library by Jan Breuer. Aims to provide parsing ability of SCPI commands on instrument side.
The SCPI parser is Vrekrer's Parser, an open-source library for the Arduino environment. In another post, I will put this all together to make a simple piece of instrumentation, I am not sure what the test equipment will be yet it will probably be a motor controller for an EMC testing turntable. In that post, we can look at how to send commands with parameters, and request the turntables
Standard Commands for Programmable Instruments SCPI parser for Arduino projects
Select Tools -gt Port -gt ltthe COM port of your Arduinogt. Select Sketch -gt Upload. Your Arduino is now programmed with the Meter example and the SCPI lib. To test the basic setup, open the serial monitor Tools -gt Serial Monitor Enter the SCPI command IDN? and press Send. The monitor should log the result OIC,Embedded SCPI Example,1,10.
To implement SCPI on an Arduino, we can use a simple serial communication approach. Below is an example of an Arduino SCPI implementation that responds to basic commands.
Standard SCPI commands of my environment can be used to read, write, erase and change slots using SCPI commands. After starting up an instrument, its a good practive to search the EEPROM for available EEPROM configuration data. This data is then copied to local RAM for further use.
EEZ H24005 power supply controlled by Arduino Due comes with comprehensive SCPI support. Forked Jan Breuer' SCPI parser is used as basis for SCPI command processing. I'm using the Breuer library whenever I can. For an Arduino UNO, it's just slightly oversized.
SCPI Standard Commands for Programmable Instruments. It definitely makes more sense when you google the right acronym. Even Yoda, who appears to be mocked for his sentence dyslexia, would have known that. Anyway - I did do a few searches on using Arduino as a SCPI device but found just a lot of info on how to interface to SCPI devices via
Arduino Library for SCPI Parser by Jan Breuer. Contribute to sfeisterscpi-parser-arduino development by creating an account on GitHub.