wn_data_save(_c)
status.i4.v = wn_data_save(save_switch.i4.r)
status.i4.v = wn_data_save_c(save_switch.i4.v)
This routine sets the data save state for the active graphic window.
save_switch desired data save state
(WN_DATA_SAVE_ON -> turn on data saving,
WN_DATA_SAVE_OFF -> turn off data saving,
WN_DATA_SAVE_CONT -> continue saving data,
CLIB_DEFAULT_ARG -> simply return current data
saving state)
This function returns ACNET status values as follows:
CBS_NOSETUP an active window has not been established
CBS_MEMFAIL failed in allocating dynamic memory
otherwise previous data saving state
This function requires the following include files:
cbslib_h, acnet_errors_h
Related functions:
wn_data_set_cut_c, wn_data_mean, wn_data_extrema, wn_data_recall,
wn_data_query, wn_data_polyfit_c, wn_data_fft_c, intro_graphics_windows
C/C++ usage:
int status;
int save_switch = WN_DATA_SAVE_ON;
status = wn_data_save_c(save_switch);