Main Content

removeCallback

Removed callback from real-time instrument object

Since R2020b

Description

removeCallback(instrument_object,hCallback) removes a callback from a real-time instrument object.

example

Examples

collapse all

Remove callback from instrument object.

mldatxfile = 'slrt_ex_pendulum_100Hz.mldatx';
hInst = slrealtime.Instrument(mldatxfile);
connectCallback(hInst,@my_callback);
% . . . hInst streams data
removeCallback(hInst,@my_callback);

Input Arguments

collapse all

To create the instrument object, use the Instrument function.

Example: hInst

The callback stops responding to new data available for streaming.

Example: @my_callback

Version History

Introduced in R2020b