Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

I'm stuck creating virtual name to a Pickering IVI switch

I�m having a problem with configuring virtual names for an IVI controlled Pickering switch card.

The card is a Pickering 50-512-021-S switch, and I�m attempting to use CVI 7.0 to control it.

I have created a DRIVER SESSION and LOGICAL NAME entry under the IVI branch of MAX.

This appears to be configured fine � using CVI the card can be opened by reference to its logical name and the switches can be opened/closed by identifying the switches physical names (in this case y7 and y8).
I then created virtual names to the switches (y7 and x8). When I attempt to connect the two channels I receive the error �Function IviSwtch_SetPath: (return value == -1074118651 (0xbffa4005)). Invalid channel number.

I am
using the CVI function IviSwtch_SetPath to connect the path.

I notice that if I set the MAX 3.0 IVI Driver session field �Simulate With:� to �Specific Driver�, so that the switch card is simulated, this failure does not occur.
I�ve also noticed that whilst simulating, if an undefined virtual name is used CVI reports an error. This would indicate the CVI is seeing the virtual name I�ve set up but is not mapping it to the physical name.

Am I doing anything wrong???

Alan
0 Kudos
Message 1 of 3
(4,456 Views)
I've investigated this further.

It appears that virtual names cannot be used with IviSwtch_SetPath....

This works fine:
checkErr (IviSwtch_SetPath (SwitchInstrumentHandle[SWITCH], "y7->x8"));
But this does not:
checkErr (IviSwtch_SetPath (SwitchInstrumentHandle[SWITCH], "virtualName_1->virtualName_2"));


IviSwtch_Connect appears to support virtual names as I would expect:

This works fine:
checkErr (IviSwtch_Connect (SwitchInstrumentHandle[SWITCH], "y7->x8"));
So does this!!!
checkErr (IviSwtch_Connect (SwitchInstrumentHandle[SWITCH], "virtualName_1", "virtualName_2"));


Alan
0 Kudos
Message 2 of 3
(4,456 Views)
Hello Alan,

The IviSwtch specification does not explicitly state that SetPath shall accept virtual names. The spec will probably be updated in the near future. Nevertheless, the driver vendor (Pickering) should update the SetPath function in their IVI specific driver to support virtual names.

Regards,

Vesna Jadric
Instrument Drivers/IVI
National Instruments
Message 3 of 3
(4,456 Views)