Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
John, Fabian
cosa-tools-matlab
Commits
dcafac6c
Commit
dcafac6c
authored
Jul 21, 2021
by
Lindenberg, Arthur-Vincent
Browse files
Update README.md
parent
3ab15d35
Changes
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
dcafac6c
Repo for MATLAB-Code used on a RedPitaya device.
Basic functionalities provided to access the RedPitaya via MQTT.
Repo for MATLAB-Code used on a RedPitaya device
-----
Basic functionalities provided to access the RedPitaya via MQTT.
A oscilloscope and a signalgenerator are implemented via MQTT.
Structure:
1.
lib folder
The "cosaMqttClient.py" contains MQTT-functions to send messages understood by a python library.
And "mqtt_py_matlab.m" contains MQTT-functions used in MATLAB.
### Hardware requirements:
RedPitaya Stemlab Board 125-14 (V1.1)
5 Volt RedPitaya PSU
Ethernet Cable / Wifi-Stick
### Software requirements:
MATLAB installed
Python 3 installed (3.8 tested)
Mosquitto MQTT Client installed
MQTT Broker access
### Folder structure:
#### 1. [lib](./lib):
The "cosaMqttClient.py" contains MQTT-functions to send messages understood by a python library.
And "mqtt_py_matlab.m" contains MQTT-functions used in MATLAB.
1. redpitaya folder:
Contains classes to store the structure of the oscilloscope signalgenerator.
The "OscilloscopeProperties" class stores all values needed to control the oscilloscope.
#### 1.1 [redpitaya](./redpitaya):
The "SigGenProperties" class stores general values to generate waveforms.
Each waveform has a own class to store specific info.
The general values are inherited by the "SigGenProperties" class
Contains classes to store the structure of the oscilloscope signalgenerator.
The "OscilloscopeProperties" class stores all values needed to control the oscilloscope.
The "SigGenProperties" class stores general values to generate waveforms.
Each waveform has a own class to store specific info.
The general values are inherited by the "SigGenProperties" class.
2.
E
xample
folder
:
####
2.
[e
xample
s](./examples)
:
Contains "test_mqtt_py.m" to explain basic mqtt transmissions.
1. redpitaya folder
:
#### 2.1 [redpitaya](./examples/redpitaya)
:
Collection of redpitaya specific examples.
The "analog_read_slow_example.m" explain
e
s the usage of the external pin header to analog
e
read by ADC.
The "Oscilloscope_example.m" show how the "OscilloscopeProperties" class is applied on a RedPitaya.
The "SignalGenerator_example.m" show how the "SigGenProperties" class is applied on a RedPitaya.
Collection of redpitaya specific examples.
The "analog
\
_
read
\
_
slow
\
_
example.m" explains the usage of the external pin header to analog read by
the
ADC.
The "Oscilloscope_example.m" show how the "OscilloscopeProperties" class is applied on a RedPitaya.
The "SignalGenerator_example.m" show how the "SigGenProperties" class is applied on a RedPitaya.
2. py_venv folder:
Virtual Python3 environment. Not commited to the main branch.
#### 2.1 [py_venv](./examples/py_venv):
Virtual Python3 environment. Not commited to the main branch.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment