Main Content

removeCallback

Removed callback from real-time instrument object

Description

example

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

Examples

collapse all

Remove callback from instrument object.

mldatxfile = 'slrt_ex_tank.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

Introduced in R2020b