Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

how to use ivi driver ( tkafg3k ) in c# ?

Hello,

I'm new to the area of controlling instruments per software.

I have to control a Tektronix AFG3102 per software. I got the ivi driver tkafg3k from ni.

 

There is tkafg3k_32.dll , can i use it directly?

Do I need some additional packages from ni?

0 Kudos
Message 1 of 5
(4,609 Views)

Hello VM,

       You will need to install the NI IVI Compliance Package and NI-VISA.  For instructions on how to get started with the IVI driver, please follow the "Instructions for Microsoft Visual Basic 6.0, Visual Basic .NET, and Visual C# .NET" link on the download page.

 

Cheers,

 

NathanT

0 Kudos
Message 2 of 5
(4,591 Views)

Hello NathanT,

 

thanks for your help. I generated succesfully a wrapper for the tkafg3k driver with Measurement Studio and controlled my Tektronix AFG3102 directly per wrapper.

 

I tried to use the IVI Interfaces e.g. the IIviFgen but the wrapper doesn't implement all the interfaces. Whats wrong there?

Thats the idea behind the IVI standard, the IVI drivers should implement the interfaces to have the hardware interchangeability, shouldn't they ?

0 Kudos
Message 3 of 5
(4,529 Views)

arrghh ok, all the interfaces defined in "IviFgen 3.0 Type Library" are interfaces for the IVI-COM drivers...

but I use an IVI-C driver. IVI-C and IVI-COM driver interfaces/API are not the same, right ?

0 Kudos
Message 4 of 5
(4,514 Views)

Hello VM,

       Yes, IVI-C and IVI-COM are different, but both are specifications maintained by the IVI Foundation (ivifoundation.org).

 

Thanks,

 

NathanT

0 Kudos
Message 5 of 5
(4,500 Views)