Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

about using IVI class driver exchange instruments

Hi!
I use IVI Scope Clsass Driver programming(IviScope) application..
The instruments I use two Scope:hp546465D,ag54622,you know .for
their IVI specific Driver are hp54645_32.dll,and ag5462x_32.dll which be provided by NI .
But when I change instruments ,there is some question about channel.
Firstly I use hp546465D and hp54645_32.dll for its IVI specific driver ,When I configure its channel,
I use const string "ANAL1".the code is following:
IviScope_ConfigureChanCharacteristics (vi2, "ANAL1",1000000, 20.0e+6);
then I change the instrument to ag54624 and change configure file's (IVI.INI) specific IVI driver to ag5462x_32.dll.
but the application above can't run,the last I find that for ag6424 I must use "CH
1" configure channel 1.the code is follow :
IviScope_ConfigureChanCharacteristics (vi2, "CH1",1000000, 20.0e+6);
So if I DON'T want change application code and recompile,how do I do?
0 Kudos
Message 1 of 2
(2,942 Views)
You can set up "virtual" channel names in MAX. For instance, you might define the name "MYCHANNEL" to map to "ANAL1" for the hp54645, and to "CH1" for the ag5462x. You would use the name "MYCHANNEL" in your application code, instead of the instrument specific channel names. Virtual names can be defined on the Driver Session's "Virtual Names" tab in MAX.
Message 2 of 2
(2,942 Views)