getCallbackDataForSignal
Syntax
Description
[
gets callback data from the Speedgoat® target computer for a signal by using the block path and the port
index.time
,data
] = getCallbackDataForSignal(instrument_object
,event_data
,blockPath
,portIndex
,Name,Value
)
[
gets callback data from the target computer for a signal by using the signal name. The
time
,data
] = getCallbackDataForSignal(instrument_object
,event_data
,signalName
)eventData
for the callback shares all the new data available from the
target computer since the last time the callback was executed.
If you set values for the Decimation or
BusElement
input arguments when using the addSignal
function, a getCallbackDataForSignal
function call for that signal must set identical
values for these input arguments.
For information about events and callbacks, see the Add Callbacks for Target Computer Events example for the Simulink Real-Time App Generator.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2020b
See Also
Instrument
| addInstrumentedSignals
| addSignal
| clearScalarAndLineData
| connectCallback
| connectLine
| connectScalar
| connectXYPlot
| delete
| generateScript
| getBufferedData
| removeCallback
| removeSignal
| validate