| Contents | Index |
Add counter output channel
s.addCounterOutputChannel(deviceID, channelID, measurementType)
ch = s.addCounterOutputChannel(deviceID, channelID, measurementType)
[ch, idx] = s.addCounterOutputChannel(deviceID, channelID, measurementType)
s.addCounterOutputChannel(deviceID, channelID, measurementType) adds a counter output channel on the device represented by deviceID, with the specified channelID, and channel measurement type, defined by measurementType, on the session object, s. Measurement types are vendor specific.
ch = s.addCounterOutputChannel(deviceID, channelID, measurementType) returns the object ch, representing the channel that was added.
[ch, idx] = s.addCounterOutputChannel(deviceID, channelID, measurementType) returns the object ch, representing the channel that was added and the index, idx, which is an index into the array of the session object's Channels property.
Use daq.createSession to create a session object before you use this method.
deviceID |
Specify the vendor-defined ID of the device. The specified channel is created for this device. The device ID is the ID of the device that you obtain by calling daq.getDevices. |
channelID |
Specify the ID of the channel added to the device. You can also add a range of channels. For NI devices, use either a terminal name, like 'ctr2', or a numeric equivalent like 2, for the channel ID. |
measurementType |
Specify a string that represents a vendor-defined measurement type. A valid output measurement type is 'PulseGeneration'. |
ch |
Object representing the channel you added. |
idx |
An index into the array of the session object's Channels property. |
| Device | Analog and counter channel device |
| DutyCycle | Duty cycle of counter output channel |
| Frequency | Frequency of generated pulses on counter output channel |
| ID | Analog and counter channel ID |
| IdleState | Default state of counter output channel |
| InitialDelay | Delay until output channel generates pulses |
| MeasurementType | Type counter channel measurement |
| Name | Specify descriptive name for the channel |
Add an counter output PulseGeneration channel:
s = daq.createSession ('ni')
s.addCounterOutputChannel('cDAQ1Mod3','ctr0','PulseGeneration')
Add two counter output PulseGeneration channels:
s = daq.createSession ('ni')
s.addCounterOutputChannel('cDAQ1Mod3',0:1,'PulseGeneration')
daq.Session | daq.Session.addCounterInputChannel | daq.Session.removeChannel | daq.session.startBackground

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |