
Software
R&S
®
TS-PMB
19
User Manual 1153.5233.12 ─ 06
main()
{
/*
Creates a new IVI instrument driver and optionally sets the initial
state of the session attributes
"CAN0::0::1::12": CAN board 0, Bus Controller 0, Frame 1, Slot 12
*/
s_status = rspmb_InitWithOptions ("CAN0::0::1::12", VI_TRUE, VI_TRUE, "", & handle);
/*
This function sets/opens automatically the bus coupling relays
(local analog bus to analog bus) if a path is created/closed.
*/
s_status = rspmb_SetAttributeViBoolean (handle, "", RSPMB_ATTR_CR_AUTO, VI_TRUE);
/*
This function creates a path between channel ABa1 and P1.
The driver calculates the shortest path between the two channels.
*/
s_status = rspmb_Connect (handle, "ABa1", "P1");
s_status = rspmb_Connect (handle, "ABb1", "P1");
/*
Connection between ABa1 and ABb1 exists.
*/
/*
Opens the path between Channel ABa1 and LABa1.
*/
s_status = rspmb_Disconnect (handle, "ABa1", "P1");
s_status = rspmb_Disconnect (handle, "ABb1", "P1");
s_status = rspmb_close (handle);
}
TS-PMB program example