dwfpy.application.Application
- class Application(*args, **kwargs)[source]
Bases:
_SingletonWaveForms application.
Methods
Gets the last DWF API error code.
Gets the last DWF API error message.
Gets the WaveForms logger.
Gets a global parameter.
Gets the DWF API version string.
Sets a global parameter.
Attributes
Specifies the clock mode: 0 internal, 1 output, 2 input, 3 IO.
Enables or disables the analog audio output.
Enables or disables audio output.
Specifies the external frequency in Hz.
Gets or sets the frequency in Hz.
Gets or sets the Digital Discovery LED brightness.
Gets or sets a value indicating the device close behavior.
Gets or sets the USB current limitation in mA.
Gets or sets a value to keep the USB power enabled even when AUX supply is connected.
- property clock_mode: int
Specifies the clock mode: 0 internal, 1 output, 2 input, 3 IO.
- Return type
int
- property enable_analog_out: bool
Enables or disables the analog audio output.
- Return type
bool
- property enable_audio_output: bool
Enables or disables audio output.
- Return type
bool
- property external_frequency: int
Specifies the external frequency in Hz.
- Return type
int
- property frequency: int
Gets or sets the frequency in Hz.
- Return type
int
- property led_brightness: int
Gets or sets the Digital Discovery LED brightness.
- Return type
int
- property on_close_behavior: int
Gets or sets a value indicating the device close behavior. 0 = Continue, 1 = Stop, 2 = Shutdown.
- Return type
int
- property usb_limit: int
Gets or sets the USB current limitation in mA.
- Return type
int
- property usb_power_on_aux: bool
Gets or sets a value to keep the USB power enabled even when AUX supply is connected. Applies to Analog Discovery 2
- Return type
bool