Page 4.3
HIGH DENSITY MATRIX MODULE 40-534/534A
pickering
SECTION 4 - PROGRAMMING GUIDE
USING THE IVI DRIVER, DIRECT I/O DRIVER OR VISA DRIVER
This section provides some code fragments which show how to control the High Density Matrix using the IVI Driver,
Direct I/O Driver or the VISA Driver.
Once the drivers are installed the manual “Sys40Prg.pdf” and driver help files which fully describes these functions
can be found in the Pickering folder(s) or the Pickering entries on your Start Menu.
The card must be opened before use and closed after using the following function calls:
Direct I/O Driver - Open with
PIL_OpenCards
or
PIL_OpenSpecifiedCard
and close with
PIL_CloseCards
or
PIL_CloseSpecifiedCards
respectively.
VISA Driver - Open with
pipx40_init
, and close with,
pipx40_close
.
Setting a Matrix Crosspoint:
Using the IVI driver:
Note:
the following example is for bank 1 of a dual matrix. Bank 1 is identified as A, bank 2 would be identified as B.
pi40iv_Connect(vi, xA1, yA2); //set crosspoint x1, y2 to on (bank 1)
pi40iv_Disonnect(vi, xA1, yA2); //set crosspoint x1, y2 to off (bank 1)
Using the Pickering Direct I/O driver:
DWORD SubUnit = 1;
//select bank 1
PIL_ClearSub(CardNo, SubUnit);
//clear all crosspoints to off state
PIL_OpCrosspoint(CardNo, SubUnit, 2, 1, 1); //set crosspoint x1, y2 to on
PIL_OpCrosspoint(CardNo, SubUnit, 2, 1, 0); //set crosspoint x1, y2 to off
Using the VISA driver:
ViUInt32 SubUnit = 1; //select bank 1
pipx40_clearSub(vi, SubUnit); //clear all crosspoints off state
pipx40_setCrosspointState (vi, SubUnit, 2, 1, VI_ON); //set crosspoint x1, y2 on
pipx40_setCrosspointState (vi, SubUnit, 2, 1, VI_OFF); //set crosspoint x1, y2 off