Function
Retrieves information for control line and data line. (Data line is unacquirable on board.)
Format
Ret = GpibReadLines ( Id, Select, LineStatus )
Parameter
Id [ VB.NET: Short ][ C, C++: short ][ C#: short ]
Specifies DevID or EqpID.
Whichever it specifies, operation does not change.
Select [ VB.NET: Short ][ C, C++: short ][ C#: short ]
Sets line to retrieve.
0 |
Control line |
Except 0 |
Data line |
LineStatus [ VB.NET: Short ][ C, C++: short * ][ C#: out short ]
Retrieves line read-out functional information and line information.
|
Control line |
||||||||||||||||
|
Data line |
Return Value
Ret [ VB.NET: Integer ][ C, C++: long ][ C#: int ]
0 |
Normality completion |
10001 |
Invalid ID was specified |
10002 |
Driver can not be called |
13163 |
Pointer to LineStatus is NULL |
Initial Value
None
Remarks
For GP-IB(PCI)FL, data line is unacquirable.
Example
Retrieves information for control line.
C |
short Select,LineStatus; Select =0; Ret = GpibReadLines ( Id, Select,LineStatus ); if ( Ret = 0 ) Printf ("%x \n", LineStatus ); |
See Also