Programming The Switch Module - Pickering 40-880A User Manual

Pxi 50ω spdt terminated 8ghz rf switch module
Table of Contents

Advertisement

pickering

PROGRAMMING THE SWITCH MODULE

Using The IVI Driver, Direct Driver or VISA Driver
This section provides some code fragments which show how to control the RF Switch 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 Switch Channel using the Direct I/O Driver or VISA Driver:
Using the Pickering Direct I/O driver:
DWORD SubUnit = 1;
PIL_ClearSub(CardNo, SubUnit);
PIL_OpBit(CardNo, SubUnit, 2, 1);
PIL_OpBit(CardNo, SubUnit, 2, 0);
Using the VISA driver:
ViUInt32 SubUnit = 1;
pipx40_clearSub(vi, SubUnit);
pipx40_setChannelState (vi, SubUnit, 2, 1);
pipx40_setChannelState (vi, SubUnit, 2, 0);
Using pi40iv
The IVI driver has no special labelling for this card and treats the array of switches as a simple array, labelling
the channels using the normal com./ch labelling tags (the following example is for bank 1 of the switch, banks are
labelled in sequence 1 is A, 2 is B, 3 is C, etc. the common is referred to as com, channel 1 is ch1, and channel 2
is ch2).
pi40iv_Connect(vi, comA, chA1);
pi40iv_Disconnect(vi, comA, chA1);//Releases the C1 to channel 1.1 signal path and
pi40iv_Connect(vi, comA, chA2);
pi40iv_Disconnect(vi, comA, chA2);//Releases the C1 to channel 1.2 signal path and
50Ω SPDT TERMINATED 8GHz RF SWITCH 40-880A
SECTION 4 - PROGRAMMING GUIDE
//address first switch bank
//clear switch to default
//(both channels terminated)
//disconnect channel 1.2 from termination
//and connect C1 to 1.2
//disconnect C1 from channel 1.2 and
//reconnect terminations
//address first switch bank
//clear switch to default
//(both channels terminated)
//disconnect channel 1.2 from
//termination and connect C1 to 1.2
//disconnect C1 from channel 1.2 and
//reconnect terminations
//Enables the C1 to channel 1.1 signal path
//sets the switch to the terminated position
//Enables the C1 to channel 1.2 signal path
//sets the switch to the terminated position
Page 4.3

Advertisement

Table of Contents
loading

Table of Contents