Your browser does not allow scripts
Please click here to view a static table of contents without scripts
DS1M12_SetDeviceFunctionGeneratorState
Return to Introduction  Previous page  Next page
This function contols the state of the DS1M12 function generator.

DS_STATUS
DS1M12_SetDeviceFunctionGeneratorState
(DS_HANDLE dsHandle, BOOL bActiveState)




Parameters

dsHandle
Handle of a DS1M12.
bActiveState
Controls the state of the specified channel. The state of a channel is indicated by its LED, switched on (TRUE) or off (FALSE). Switched on indicates that the function generator is in the active state. Switched off indicates that the function generator is in the inactive state.




Return Value
Returns DS_SUCCESS if successful, otherwise the return value will be one of the following error codes:

   DS_INVALID_HANDLE
   DS_IO_ERROR



Remarks
The LED are used to indicate to a user whether the function generator is active or not. If a LED is switched ON, this indicates that the function generator is active, if the LED is switched OFF, this indicates that the function generator is not active.

The DS1M12 FPGA must be programmed prior to calling this function. To program the DS1M12, call
DS1M12_ProgramDevice.