National Instruments Welding System 321645c-01 Manual De Usuario

Descargar
Página de 554
Chapter 2
Function Reference — CTR_FOUT_Config
NI-DAQ FRM for PC Compatibles
2-96
©
 National Instruments Corporation
CTR_FOUT_Config
Format
status = CTR_FOUT_Config (deviceNumber, FOUT_port, mode, timebase, division)
Purpose
Disables or enables and sets the frequency of the 4-bit programmable frequency output.
Parameters
Input
Parameter Discussion
FOUT_port is the frequency output port to be programmed.
1:
For FOUT1 on the PC-TIO-10 or FOUT on the MIO device, except the E Series 
devices.
2:
For FOUT2 on the PC-TIO-10.
mode selects whether to enable or disable the programmable frequency output. mode can be 
0 or 1.
0:
The frequency output signal is turned off to a low-logic state.
1:
The frequency output signal is enabled.
If mode = 0, none of the following parameters apply.
timebase selects the timebase, or resolution, to be used by the programmable frequency 
output. timebase has the following possible values:
–1:
Internal 5 MHz clock used as timebase (200 ns resolution) (AT-MIO-16F-5, 
AT-MIO-64F-5, AT-MIO-16X, and PC-TIO-10 only).
1:
Internal 1 MHz clock used as timebase (1 µs resolution).
2:
Internal 100 kHz clock used as timebase (10 µs resolution).
3:
Internal 10 kHz clock used as timebase (100 µs resolution).
Name
Type
Description
deviceNumber
i16
assigned by configuration utility
FOUT_port
i16
frequency output port
mode
i16
enable or disable the programmable frequency 
output
timebase
i16
timebase value
division
i16
divide-down factor for generating the clock