
6.7.3 Save Data (black box)
This subsystem collects data from the QBall 2 model to
save to a MAT file on the host using the
QUARC To Host
File
block. The
plot_log_data.m
file can be used to ex-
tract and plot some of the data saved once the MAT file
has been loaded in
Matlab
r
. See the help in
QUARC
r
for the
To Host File
block for more information. Note that
additional data from the QBall 2 model can be added to
the signals in order to save additional information as de-
sired.
6.7.4 DAQ
The DAQ subsystem contains the Hardware-In-the-Loop
(HIL) blocks used to configure the QBall 2 DAQ and read-
/write values. The gain block is used to enable or disable
the QBall 2 motors by multiplying the motor signals by
1
or
0
, respectively. The digital output signal is also used to
enable the ESCs (1) or disable the ESCs (0). When test-
ing the QBall 2 sensors or handling the QBall 2, disable
the motors for safety by multiplying the motor signals by
0
using the gain block and disable the ESCs using the
digital enable signal.
QBALL 2 - User Manual
30