PulseGen¶
-
class
PulseGen¶ PulseGen: general purpose pulse generator. This can generate any number of pulses with specified level and duration.
-
proc¶ void (shared message field) This is a shared message to receive Process messages from the scheduler objects.The first entry in the shared msg is a MsgDest for the Process operation. It has a single argument, ProcInfo, which holds lots of information about current time, thread, dt and so on. The second entry is a MsgDest for the Reinit operation. It also uses ProcInfo.
-
getOutputValue()¶ (destination message field) Requests field value. The requesting Element must provide a handler for the returned value.
-
setBaseLevel()¶ (destination message field) Assigns field value.
-
getBaseLevel()¶ (destination message field) Requests field value. The requesting Element must provide a handler for the returned value.
-
setFirstLevel()¶ (destination message field) Assigns field value.
-
getFirstLevel()¶ (destination message field) Requests field value. The requesting Element must provide a handler for the returned value.
-
setFirstWidth()¶ (destination message field) Assigns field value.
-
getFirstWidth()¶ (destination message field) Requests field value. The requesting Element must provide a handler for the returned value.
-
setFirstDelay()¶ (destination message field) Assigns field value.
-
getFirstDelay()¶ (destination message field) Requests field value. The requesting Element must provide a handler for the returned value.
-
setSecondLevel()¶ (destination message field) Assigns field value.
-
getSecondLevel()¶ (destination message field) Requests field value. The requesting Element must provide a handler for the returned value.
-
setSecondWidth()¶ (destination message field) Assigns field value.
-
getSecondWidth()¶ (destination message field) Requests field value. The requesting Element must provide a handler for the returned value.
-
setSecondDelay()¶ (destination message field) Assigns field value.
-
getSecondDelay()¶ (destination message field) Requests field value. The requesting Element must provide a handler for the returned value.
-
setCount()¶ (destination message field) Assigns field value.
-
getCount()¶ (destination message field) Requests field value. The requesting Element must provide a handler for the returned value.
-
setTrigMode()¶ (destination message field) Assigns field value.
-
getTrigMode()¶ (destination message field) Requests field value. The requesting Element must provide a handler for the returned value.
-
setLevel()¶ (destination message field) Assigns field value.
-
getLevel()¶ (destination message field) Requests field value. The requesting Element must provide a handler for the returned value.
-
setWidth()¶ (destination message field) Assigns field value.
-
getWidth()¶ (destination message field) Requests field value. The requesting Element must provide a handler for the returned value.
-
setDelay()¶ (destination message field) Assigns field value.
-
getDelay()¶ (destination message field) Requests field value. The requesting Element must provide a handler for the returned value.
-
input()¶ (destination message field) Handle incoming input that determines gating/triggering onset. Note that although this is a double field, the underlying field is integer. So fractional part of input will be truncated
-
levelIn()¶ (destination message field) Handle level value coming from other objects
-
widthIn()¶ (destination message field) Handle width value coming from other objects
-
delayIn()¶ (destination message field) Handle delay value coming from other objects
-
process()¶ (destination message field) Handles process call, updates internal time stamp.
-
reinit()¶ (destination message field) Handles reinit call.
-
output¶ double (source message field) Current output level.
-
outputValue¶ double (value field) Output amplitude
-
baseLevel¶ double (value field) Basal level of the stimulus
-
firstLevel¶ double (value field) Amplitude of the first pulse in a sequence
-
firstWidth¶ double (value field) Width of the first pulse in a sequence
-
firstDelay¶ double (value field) Delay to start of the first pulse in a sequence
-
secondLevel¶ double (value field) Amplitude of the second pulse in a sequence
-
secondWidth¶ double (value field) Width of the second pulse in a sequence
-
secondDelay¶ double (value field) Delay to start of of the second pulse in a sequence
-
count¶ unsigned int (value field) Number of pulses in a sequence
-
trigMode¶ - unsigned int (value field) Trigger mode for pulses in the sequence.
- 0 : free-running mode where it keeps looping its output 1 : external trigger, where it is triggered by an external input (and stops after creating the first train of pulses) 2 : external gate mode, where it keeps generating the pulses in a loop as long as the input is high.
-
level¶ unsigned int,double (lookup field) Level of the pulse at specified index
-
width¶ unsigned int,double (lookup field) Width of the pulse at specified index
-
delay¶ unsigned int,double (lookup field) Delay of the pulse at specified index
-