MATLAB Toolbox
Created: January 23, 2025 | Updated: February 04, 2025
The Matlab Toolbox lets you read from and write to Requirements & Systems Portal directly from your Matlab simulations.
Example usage:
% 2) optional: pull all Valis for faster access or access via name |
% 3a) get Vali as a struct |
3a) ValispaceGetVali("MySat.Mass") |
3b) ValispaceGetValue("MySat.Mass") |
% 4) push value to Valispace |
4) ValispacePushValue("MySat.Mass",0) |
% 4b) update dataset (x values as first row and y values as second row) |
4b) ValispacePushDataset("MySat.Mass", [0,1,2,3,4,5,6; 10,20,30,40,50,60,70]) |
% get matrix values from matrix ID |
5) ValispaceGetMatrix(217) |
6) ValispacePushMatrix(217,[2,3;4,5]) |
% post data through REST API |
7) ValispacePost(url, data) |
% get data in json format through REST API |
Please note: until you run clear all
the all ValispaceGetVali()
and ValispaceGetValue()
will use the cached values from your last ValispacePull()
call.
ValispaceGetVali()
/ ValispaceGetValue()
/ ValispacePushValue()
work with the argument as a string (name) or integer (id) i.e. ValispaceGetValue("MySat.Mass")
and ValispaceGetValue(217)
.
When using these functions with an integer id, step 2) can be skipped. In this case, the WebInterface will be accessed with every individual call.
Both ValispacePushValue() and ValispacePushMatrix() can also push formulas (e.g. $MySat.Mass*5) instead of values
Download and installation
Download it from GitHub here and install the toolbox via double click. It will then be active on your Matlab installation but you can disable or uninstall it via the Matlab Add-On Manager.
The Matlab plugin is tested with Matlab version R2023b.
If you find an issue, select the text/image and pressCtrl + Enterto send us your feedback.