Skip to content

QuantumCMU/easy_phi_MatLab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

This is a simple MatLab client that works with Easy-Phi system. Client uses REST API to communicate with the system. Client contains two basic functions: send SCPI command to a particular module, addressed with SlotID; and query generic rack info.

Set up

  • Install MatLab
  • Import send_scpi.m and rack_info.m (File->Open)
  • Run send_scpi or get_platform_info functions

send_scpi.m

Input: base_url - host ip address + port (Example: “http://127.0.0.1:8000”) slot - slot id of the module (Example: “1”) scpi - SCPI command to send (Example: “*IDN?”)

Output: Response - response from the module

rack_info.m

Input: base_url - host ip address + port (Example: “http://127.0.0.1:8000”)

Output: Response - response from the system containing platform info

WebSockets support

It is possible to create a MatLab client that would support system’s WebSockets capabilities with the use of 3rd party extensions for MatLab. E.g.: https://github.com/mingot/matlab-websockets

Screenshots

http://i.imgur.com/VFZdCNn.png
http://i.imgur.com/tlWu8Cc.png

About

A simple MatLab client that works with Easy-Phi system

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages