National Instruments 321645c-01 Welding System User Manual


 
Chapter 2 Function Reference Line_Change_Attribute
©
National Instruments Corporation 2-277 NI-DAQ FRM for PC Compatibles
Line_Change_Attribute
Format
status = Line_Change_Attribute (deviceNumber, lineNum, attribID, attribValue)
Purpose
Sets various options on an I/O connector and internal lines (6602 devices only).
Parameters
Input
Parameter Discussion
Legal ranges for the lineNum, attribID and attribValue parameters are in terms of constants
defined in a header file. The header file you should use depends on the language you are
using:
C programmers—
NIDAQCNS.H (DATAACQ.H for LabWindows/CVI)
BASIC programmers—
NIDAQCNS.INC (Visual Basic for Windows programmers should
refer to the Programming Language Considerations section in Chapter 1, Using the
NI-DAQ Functions, for more information.)
Pascal programmers—
NIDAQCNS.PAS
lineNum indicates which line you want to change the attributes of. Legal values for this
parameter are
ND_PFI_0 through ND_PFI_39, ND_RTSI_0 through ND_RTSI_6, and
ND_RTSI_CLOCK.
attribID indicates which feature you are interested in changing. Legal values are listed in the
following paragraphs, along with the corresponding values you can expect for attribValue.
Name Type Description
deviceNumber i16 assigned by configuration utility
lineNum u32 name of the line you want to set properties of
attribID u32 identification of the attribute you want to change
attribValue u32 value of the attribute specified by attribID