Visual C++ (MFC)


Starts and stops output to the specified device.

long Ret; // For return code

ICWaveformGeneratorPtr c_fgen;

 

//----------------------------------------

// Please refer to Device initialization processing

//----------------------------------------

 

 

//----------------------------------------

// Signal output start processing

//----------------------------------------

Ret = c_fgen->StartOperation(0);

if(Ret != 0){

    AfxMessageBox(_T("StartOperation function call error.") );

}

 

//----------------------------------------

// Signal output stop processing

//----------------------------------------

Ret = c_fgen->StopOperation(0);

if(Ret != 0){

    AfxMessageBox(_T("StopOperation function call error.") );

}

 

//----------------------------------------

// Please refer to Device termination processing

//----------------------------------------