Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Tek TDS2014 driver does not load as vb6.0 reference

Solved!
Go to solution

Downloaded latest TDS2014 driver from NI site (ver 2.7.1) and it appears there is not type library so it will not load as a reference in VB6.0.

 

I had an older version (2.0.9 dated 2006) that was able to load as a reference but started having problems with it after upgrading to NI-VISA 4.5.

 

First, is there a type library available for this driver that I am somehow missing or is there no intention to support VB6 on the new driver (at this stage I don't wan't to create declarations based on the .h file)? If not, are there older versions available with a type library that I can get to try out?

 

If I can't get help with this, the real problem I had with the old driver after upgrading VISA is that I can't set the Horizontal Time Per Record attribute to 1usec with the driver tktds1k2k_ConfigureAcquisitionRecord function (corresponds to a 100nsec/div scope setting). All other settings seem to work, below is the NI-SPY log for 100nsec/div setting:

 

viPrintf (USB0::0x0699::0x0368::C03...(0x040BD0F8), "HOR:SEC %le")
   Formatted viWrite (USB0::0x0699::0x0368::C03...(0x040BD0F8), "HOR:SEC :.000000e-08", 20, 20)

 

Note value sent in HOR:SEC command is corrupted, should be 1.000000e-07

Here is SPY for working 250nsec/div setting:

viPrintf (USB0::0x0699::0x0368::C03...(0x040BD0F8), "HOR:SEC %le")
   Formatted viWrite (USB0::0x0699::0x0368::C03...(0x040BD0F8), "HOR:SEC 2.500000e-07", 20, 20)

 

Since it was working before VISA upgrade I was trying to rule out imcompatability issue with older driver. Are there any known bugs in VISA 4.5 that would account for this? Also, I am able to set 100nsec/div with VISA panel using SCPI command so the issue is not in the Scope.

 

My latest config is:

Windows XP

NI-VISA 4.5

NI-IVI 3.3

tktds1k2k_32.dll ver 2.7.1

 

For now I will try using WriteInstrData and send SCPI directly as a workaround.

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

As for the VB6 support, I am not sure. I cannot find any documentation that says that this support has been removed. Have you seen this DevZone that shows you how to use IVI drivers in VB6?

 

---

Peter Flores
Applications Engineer
0 Kudos
Message 2 of 5
(4,653 Views)

I did see that app note, and that is the method I would prefer to use to load the driver. However, for that method to work, the dll needs to have a type library defined. And the latest version of the driver does not appear to have this, and hence the error.

 

If anyone were interested in trying this, the link to the driver is here. Install and try to load in VB6 as a project reference.

 

The older version of this driver and other drivers from this site work fine using this method.

0 Kudos
Message 3 of 5
(4,646 Views)
Solution
Accepted by TE_Jim
We will be posting the updated driver (2.7.2) which should address the type library issue. Please let us know if you are still seeing issues.
Message 4 of 5
(4,614 Views)

Thanks for providing the driver update. Was able to load as reference in VB6.

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