National Instruments 320682C Musical Toy Instrument User Manual


 
Easy I/O for DAQ Library Chapter 10
LabWindows/CVI Standard Libraries 10-24 © National Instruments Corporation
Parameter Discussion
channelString is the analog output channels to which the voltages are applied. Refer to the
Channel String for Analog Output Functions subsection of the Easy I/O for DAQ Library
Function Overview section of this chapter for the syntax of this string.
voltageArray is the voltages that are applied to the specified analog output channels. This array
should contain the voltages to be applied to the analog output channels in the order that is
specified in the channelString. For example, if the channelString contains:
"0,1,3"
then
voltage[0] = 1.2; /* 1.2 volts applied to channel 0 */
voltage[1] = 2.4; /* 2.4 volts applied to channel 1 */
voltage[2] = 3.6; /* 3.6 volts applied to channel 3 */
ContinuousPulseGenConfig
short
error = ContinuousPulseGenConfig (
short
device,
char
counter
[]
,
double
frequency,
double
dutyCycle,
unsigned short
gateMode,
unsigned short
pulsePolarity,
double *
actualFrequency,
double *
actualDutyCycle,
unsigned long *
taskID);
Purpose
Configures a counter to generate a continuous TTL pulse train on its OUT pin.
The signal is created by repeatedly decrementing the counter twice, first for the delay to the pulse
(phase 1), then for the pulse itself (phase 2). The function selects the highest resolution timebase
to achieve the desired characteristics.
You can also call the
CounterStart
function to gate or trigger the operation with a signal on
the counter's GATE pin.