TwiceAsNice
2019-02-18
|
Public Member Functions | |
def | __init__ (self, deviceName) |
def | getChannelName (self, channel) |
def | getNumberOfChannels (self) |
def | reset (self) |
def | startOutput (self) |
def | stopOutput (self) |
def | isPulseOutputEnabled (self) |
def | enableExternalTrigger (self) |
def | isExternalTriggerEnabled (self) |
def | disableExternalTrigger (self) |
def | generateSoftwareExternalTrigger (self) |
def | setClockPeriodInSeconds (self, clockPeriodInSeconds) |
def | getClockPeriodInSeconds (self) |
def | useContinuousOutputMode (self) |
def | getInternalOutputMode (self) |
def | useSingleShotOutputMode (self) |
def | enableOutputChannel (self, channel) |
def | isOutputChannelEnabled (self, channel) |
def | disableOutputChannel (self, channel) |
def | setOutputPulseWidth (self, channel, outputPulseWidthInSeconds) |
def | getOutputPulseWidthInSeconds (self, channel) |
def | setOutputPulseDelay (self, channel, outputPulseDelayInSeconds) |
def | getOutputPulseDelayInSeconds (self, channel) |
def | useContinuousOutputModeFor (self, channel) |
def | getChannelOutputModeFor (self, channel) |
def | useDutyCycleModeFor (self, channel) |
def | setNumberOfPulsesDuringOnCycle (self, channel, numberOfPulses) |
def | getNumberOfPulsesDuringOnCycle (self, channel) |
def | setNumberOfPulsesDuringOffCycle (self, channel, numberOfPulses) |
def | getNumberOfPulsesDuringOffCycle (self, channel) |
def | useInvertedPolarity (self, channel) |
def | getPulsePolarity (self, channel) |
def | useNormalPolarity (self, channel) |
def | name (self) |
def | isReachable (self) |
def | __init__ (self, deviceName) |
def | getChannelName (self, channel) |
def | getNumberOfChannels (self) |
def | reset (self) |
def | startOutput (self) |
def | stopOutput (self) |
def | isPulseOutputEnabled (self) |
def | enableExternalTrigger (self) |
def | isExternalTriggerEnabled (self) |
def | disableExternalTrigger (self) |
def | generateSoftwareExternalTrigger (self) |
def | setClockPeriodInSeconds (self, clockPeriodInSeconds) |
def | getClockPeriodInSeconds (self) |
def | useContinuousOutputMode (self) |
def | getInternalOutputMode (self) |
def | useSingleShotOutputMode (self) |
def | enableOutputChannel (self, channel) |
def | isOutputChannelEnabled (self, channel) |
def | disableOutputChannel (self, channel) |
def | setOutputPulseWidth (self, channel, outputPulseWidthInSeconds) |
def | getOutputPulseWidthInSeconds (self, channel) |
def | setOutputPulseDelay (self, channel, outputPulseDelayInSeconds) |
def | getOutputPulseDelayInSeconds (self, channel) |
def | useContinuousOutputModeFor (self, channel) |
def | getChannelOutputModeFor (self, channel) |
def | useDutyCycleModeFor (self, channel) |
def | setNumberOfPulsesDuringOnCycle (self, channel, numberOfPulses) |
def | getNumberOfPulsesDuringOnCycle (self, channel) |
def | setNumberOfPulsesDuringOffCycle (self, channel, numberOfPulses) |
def | getNumberOfPulsesDuringOffCycle (self, channel) |
def | useInvertedPolarity (self, channel) |
def | getPulsePolarity (self, channel) |
def | useNormalPolarity (self, channel) |
def | name (self) |
def | isReachable (self) |
Static Public Member Functions | |
def | channelPropertyName (channel) |
def | channelPropertyName (channel) |
Static Public Attributes | |
string | TRUE = "1" |
string | FALSE = "0" |
string | PULSE_DELAY_USEC = "PULSE_DELAY_IN_MICROSECONDS.SET_VALUE" |
Private Member Functions | |
def | _getPropertyValue (self, propertyName) |
def | _setProperty (self, propertyName, value) |
def | _setChannelProperty (self, channel, propertyName, value) |
def | _getChannelPropertyValue (self, channel, propertyName) |
def | _isValidChannel (self, channel) |
def | _getPropertyValue (self, propertyName) |
def | _setProperty (self, propertyName, value) |
def | _setChannelProperty (self, channel, propertyName, value) |
def | _getChannelPropertyValue (self, channel, propertyName) |
def | _isValidChannel (self, channel) |
Private Attributes | |
_deviceName | |
This pulse generator controls the pulse generator hardware via a property tree.
def pulse_generator.PulseGenerator.__init__ | ( | self, | |
deviceName | |||
) |
Constructs a PulseGenerator object. @param deviceName the node of the pulse generator device (e.g. FOO.DEV0).
def pulse_generator.PulseGenerator.__init__ | ( | self, | |
deviceName | |||
) |
Constructs a PulseGenerator object. @param deviceName the node of the pulse generator device (e.g. FOO.DEV0).
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
static |
|
static |
def pulse_generator.PulseGenerator.disableExternalTrigger | ( | self | ) |
Disables the external trigger.
def pulse_generator.PulseGenerator.disableExternalTrigger | ( | self | ) |
Disables the external trigger.
def pulse_generator.PulseGenerator.disableOutputChannel | ( | self, | |
channel | |||
) |
Disables the pulse output for the specified channel. @param channel the relevant channel.
def pulse_generator.PulseGenerator.disableOutputChannel | ( | self, | |
channel | |||
) |
Disables the pulse output for the specified channel. @param channel the relevant channel.
def pulse_generator.PulseGenerator.enableExternalTrigger | ( | self | ) |
Enable the external trigger mode.
def pulse_generator.PulseGenerator.enableExternalTrigger | ( | self | ) |
Enable the external trigger mode.
def pulse_generator.PulseGenerator.enableOutputChannel | ( | self, | |
channel | |||
) |
Enables output for a given channel. @param channel the channel whose output pulses should be enabled.
def pulse_generator.PulseGenerator.enableOutputChannel | ( | self, | |
channel | |||
) |
Enables output for a given channel. @param channel the channel whose output pulses should be enabled.
def pulse_generator.PulseGenerator.generateSoftwareExternalTrigger | ( | self | ) |
Generates an external trigger signal by software.
def pulse_generator.PulseGenerator.generateSoftwareExternalTrigger | ( | self | ) |
Generates an external trigger signal by software.
def pulse_generator.PulseGenerator.getChannelName | ( | self, | |
channel | |||
) |
def pulse_generator.PulseGenerator.getChannelName | ( | self, | |
channel | |||
) |
def pulse_generator.PulseGenerator.getChannelOutputModeFor | ( | self, | |
channel | |||
) |
Gets the pulse output mode for a given channel. @param the relevant channel. @return the pulse output mode.
def pulse_generator.PulseGenerator.getChannelOutputModeFor | ( | self, | |
channel | |||
) |
Gets the pulse output mode for a given channel. @param the relevant channel. @return the pulse output mode.
def pulse_generator.PulseGenerator.getClockPeriodInSeconds | ( | self | ) |
Gets the clock period. @return the clock period in seconds.
def pulse_generator.PulseGenerator.getClockPeriodInSeconds | ( | self | ) |
Gets the clock period. @return the clock period in seconds.
def pulse_generator.PulseGenerator.getInternalOutputMode | ( | self | ) |
Gets the internal T0 pulse mode. @return the internal out pulse mode.
def pulse_generator.PulseGenerator.getInternalOutputMode | ( | self | ) |
Gets the internal T0 pulse mode. @return the internal out pulse mode.
def pulse_generator.PulseGenerator.getNumberOfChannels | ( | self | ) |
def pulse_generator.PulseGenerator.getNumberOfChannels | ( | self | ) |
def pulse_generator.PulseGenerator.getNumberOfPulsesDuringOffCycle | ( | self, | |
channel | |||
) |
Gets the number of output pulses in the OFF cycle during duty-cycle mode. @param channel the relevant channel. @return the number of output pulses.
def pulse_generator.PulseGenerator.getNumberOfPulsesDuringOffCycle | ( | self, | |
channel | |||
) |
Gets the number of output pulses in the OFF cycle during duty-cycle mode. @param channel the relevant channel. @return the number of output pulses.
def pulse_generator.PulseGenerator.getNumberOfPulsesDuringOnCycle | ( | self, | |
channel | |||
) |
Gets the number of output pulses in the ON cycle during duty-cycle mode. @param channel the relevant channel. @return the number of output pulses.
def pulse_generator.PulseGenerator.getNumberOfPulsesDuringOnCycle | ( | self, | |
channel | |||
) |
Gets the number of output pulses in the ON cycle during duty-cycle mode. @param channel the relevant channel. @return the number of output pulses.
def pulse_generator.PulseGenerator.getOutputPulseDelayInSeconds | ( | self, | |
channel | |||
) |
Gets the output pulse delay. @param channel the relevant channel. @return the output pulse delay in seconds.
def pulse_generator.PulseGenerator.getOutputPulseDelayInSeconds | ( | self, | |
channel | |||
) |
Gets the output pulse delay. @param channel the relevant channel. @return the output pulse delay in seconds.
def pulse_generator.PulseGenerator.getOutputPulseWidthInSeconds | ( | self, | |
channel | |||
) |
Gets the output pulse width. @param channel the relevant channel @return the output pulse width in seconds.
def pulse_generator.PulseGenerator.getOutputPulseWidthInSeconds | ( | self, | |
channel | |||
) |
Gets the output pulse width. @param channel the relevant channel @return the output pulse width in seconds.
def pulse_generator.PulseGenerator.getPulsePolarity | ( | self, | |
channel | |||
) |
Gets the output pulse polarity of the given channel. @param channel the relevant channel. @return the pulse polarity.
def pulse_generator.PulseGenerator.getPulsePolarity | ( | self, | |
channel | |||
) |
Gets the output pulse polarity of the given channel. @param channel the relevant channel. @return the pulse polarity.
def pulse_generator.PulseGenerator.isExternalTriggerEnabled | ( | self | ) |
Returns true if the external trigger is enabled. @return true if is it possible to trigger pulses externally.
def pulse_generator.PulseGenerator.isExternalTriggerEnabled | ( | self | ) |
Returns true if the external trigger is enabled. @return true if is it possible to trigger pulses externally.
def pulse_generator.PulseGenerator.isOutputChannelEnabled | ( | self, | |
channel | |||
) |
Returns true if the pulse output of a given channel is enabled. @param channel the relevant channel.
def pulse_generator.PulseGenerator.isOutputChannelEnabled | ( | self, | |
channel | |||
) |
Returns true if the pulse output of a given channel is enabled. @param channel the relevant channel.
def pulse_generator.PulseGenerator.isPulseOutputEnabled | ( | self | ) |
Returns true if the pulse output is enabled globally. @return true if the pulse output is enabled globally.
def pulse_generator.PulseGenerator.isPulseOutputEnabled | ( | self | ) |
Returns true if the pulse output is enabled globally. @return true if the pulse output is enabled globally.
def pulse_generator.PulseGenerator.isReachable | ( | self | ) |
Gets the device reachability state
def pulse_generator.PulseGenerator.isReachable | ( | self | ) |
Gets the device reachability state
def pulse_generator.PulseGenerator.name | ( | self | ) |
Gets the device name given in the configuration file @return the device name
def pulse_generator.PulseGenerator.name | ( | self | ) |
Gets the device name given in the configuration file @return the device name
def pulse_generator.PulseGenerator.reset | ( | self | ) |
Resets the pulse generator.
def pulse_generator.PulseGenerator.reset | ( | self | ) |
Resets the pulse generator.
def pulse_generator.PulseGenerator.setClockPeriodInSeconds | ( | self, | |
clockPeriodInSeconds | |||
) |
Sets the clock period. @param clockPeriodInSeconds the clock period in seconds.
def pulse_generator.PulseGenerator.setClockPeriodInSeconds | ( | self, | |
clockPeriodInSeconds | |||
) |
Sets the clock period. @param clockPeriodInSeconds the clock period in seconds.
def pulse_generator.PulseGenerator.setNumberOfPulsesDuringOffCycle | ( | self, | |
channel, | |||
numberOfPulses | |||
) |
Sets the number of output pulses in the OFF cycle during the duty-cycle mode. @param channel the relevant channel @param numberOfPulses the number of pulses.
def pulse_generator.PulseGenerator.setNumberOfPulsesDuringOffCycle | ( | self, | |
channel, | |||
numberOfPulses | |||
) |
Sets the number of output pulses in the OFF cycle during the duty-cycle mode. @param channel the relevant channel @param numberOfPulses the number of pulses.
def pulse_generator.PulseGenerator.setNumberOfPulsesDuringOnCycle | ( | self, | |
channel, | |||
numberOfPulses | |||
) |
Sets the number of output pulses in the ON cycle during duty-cycle mode. @param channel the relevant channel. @param numberOfPulses the number of output pulses.
def pulse_generator.PulseGenerator.setNumberOfPulsesDuringOnCycle | ( | self, | |
channel, | |||
numberOfPulses | |||
) |
Sets the number of output pulses in the ON cycle during duty-cycle mode. @param channel the relevant channel. @param numberOfPulses the number of output pulses.
def pulse_generator.PulseGenerator.setOutputPulseDelay | ( | self, | |
channel, | |||
outputPulseDelayInSeconds | |||
) |
Sets the output pulse delay for a given channel. @param channel the relevant channel @param outputPulseDelayInSeconds the new output pulse delay in seconds.
def pulse_generator.PulseGenerator.setOutputPulseDelay | ( | self, | |
channel, | |||
outputPulseDelayInSeconds | |||
) |
Sets the output pulse delay for a given channel. @param channel the relevant channel @param outputPulseDelayInSeconds the new output pulse delay in seconds.
def pulse_generator.PulseGenerator.setOutputPulseWidth | ( | self, | |
channel, | |||
outputPulseWidthInSeconds | |||
) |
Sets the width of the output pulses for a given channel. @param channel the relevant channel. @param outputPulseWidthInSeconds the pulse width in seconds.
def pulse_generator.PulseGenerator.setOutputPulseWidth | ( | self, | |
channel, | |||
outputPulseWidthInSeconds | |||
) |
Sets the width of the output pulses for a given channel. @param channel the relevant channel. @param outputPulseWidthInSeconds the pulse width in seconds.
def pulse_generator.PulseGenerator.startOutput | ( | self | ) |
Enables the pulse output globally.
def pulse_generator.PulseGenerator.startOutput | ( | self | ) |
Enables the pulse output globally.
def pulse_generator.PulseGenerator.stopOutput | ( | self | ) |
Disable the pulse output globally.
def pulse_generator.PulseGenerator.stopOutput | ( | self | ) |
Disable the pulse output globally.
def pulse_generator.PulseGenerator.useContinuousOutputMode | ( | self | ) |
Uses continuous internal T0 pulses.
def pulse_generator.PulseGenerator.useContinuousOutputMode | ( | self | ) |
Uses continuous internal T0 pulses.
def pulse_generator.PulseGenerator.useContinuousOutputModeFor | ( | self, | |
channel | |||
) |
Uses continuous pulse output mode for a given channel. @param channel the relevant channel.
def pulse_generator.PulseGenerator.useContinuousOutputModeFor | ( | self, | |
channel | |||
) |
Uses continuous pulse output mode for a given channel. @param channel the relevant channel.
def pulse_generator.PulseGenerator.useDutyCycleModeFor | ( | self, | |
channel | |||
) |
Uses duty-cycle pulse series output mode for the given channel. @param the relevant channel.
def pulse_generator.PulseGenerator.useDutyCycleModeFor | ( | self, | |
channel | |||
) |
Uses duty-cycle pulse series output mode for the given channel. @param the relevant channel.
def pulse_generator.PulseGenerator.useInvertedPolarity | ( | self, | |
channel | |||
) |
Uses inverted polarity of the output pulses for the given channel. @param channel the relevant channel.
def pulse_generator.PulseGenerator.useInvertedPolarity | ( | self, | |
channel | |||
) |
Uses inverted polarity of the output pulses for the given channel. @param channel the relevant channel.
def pulse_generator.PulseGenerator.useNormalPolarity | ( | self, | |
channel | |||
) |
Uses normal output pulse polarity for the given channel. @param channel the relevant channel.
def pulse_generator.PulseGenerator.useNormalPolarity | ( | self, | |
channel | |||
) |
Uses normal output pulse polarity for the given channel. @param channel the relevant channel.
def pulse_generator.PulseGenerator.useSingleShotOutputMode | ( | self | ) |
Uses single-shot mode as the internal T0 mode.
def pulse_generator.PulseGenerator.useSingleShotOutputMode | ( | self | ) |
Uses single-shot mode as the internal T0 mode.
|
private |
|
static |
|
static |
|
static |