Measurement-computing Data Acquisition Systems rev.10.4 Manual de usuario Pagina 347

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 366
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 346
Programmer’s Manual 938295 9513 Counter-Timer Commands D-7
daq9513SetCtrMode
Also See: daq9513SetHold,daq9513MultCtrl
Format
daq9513SetCtrMode (handle, deviceType, whichDevice, ctrNum, gateCtr1,
cntEdge, cntSource, specGate, reload, cntRepeat, cntType, cntDir, outputCtrl)
Purpose
daq9513SetCtrMode sets the 9513’s mode register for a specified counter. Setting this register defines
how the specific counter works for a variety of square waves, pulse generation, and event counting.
Parameter Summary
Parameter Type Description
handle DaqHandleT
Handle to the device for which the 9513 counter mode
will be set
deviceType DaqIODeviceType
Specifies the 9513 device type
whichDevice DWORD
Specifies which 9513
ctrNum DWORD
The counter number
gateCtrl Daq9513GatingControl
The gating control mode
cntEdge BOOL If true, will count on a rising count edge; if false,
it will count on a falling count edge
cntSource Daq9513CountSource
Count source
specGate BOOL If true, will enable the special gate; if false, it will
disable the special gate
reload BOOL If true, will reload from load or hold registers; if
false, it will reload only from load
cntRepeat BOOL If true, will count repetitively; if false, it will count
once
cntType BOOL If true, will select a BCD count; if false, it will
select a binary count
cntDir BOOL If true, will count up; if false, it will count down
outputCtrl Daq9513OutputControl
Output control mode
Parameter Values
handle: obtained from the daqOpen function
deviceType: must be set to value DiodtLocal9513
whcihDevice: valid value for all devices is 0
ctrNum: valid values range from 1 to 5.
gateCtrl: see table below
cntEdge: valid values are true ( 0) or false ( = 0)
cntSource: see table below
specGate: valid values are true ( 0) or false ( = 0)
reload: valid values are true ( 0) or false ( = 0)
cntRepeat: valid values are true ( 0) or false ( = 0)
cntType: valid values are true ( 0) or false ( = 0)
cntDir: valid values are true ( 0) or false ( = 0)
outputCtrl: see table below
Vista de pagina 346
1 2 ... 342 343 344 345 346 347 348 349 350 351 352 ... 365 366

Comentarios a estos manuales

Sin comentarios