Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I use CWIviscope in VB?

I would like to use CWIviscope in VB. I attached this component to VB's Form and also set some parameters. I also set Logical Device's name in Measurement & Automation Explorer of NI. The problem is that I got an errors after calling 'configure' method. Do I miss something? Finally, Helps and Examples from Measurement Studio doesn't make me understand. The examples always show the simulated data.


Thank you
0 Kudos
Message 1 of 4
(3,481 Views)
The most common problems with using IVI drivers at first comes from not properly setting up the IVI Logical Name, Device, Instrument, etc. It sounds the same thing is happening here if you always get an error at the "configure" method.

Here is a good document about how to configure your IVI instruments in Measurement & Automation Explorer:

http://zone.ni.com/devzone/conceptd.nsf/2d17d611efb58b22862567a9006ffe76/eab806dbb68633d486256a450060d368?OpenDocument

Also, there are two examples which come with the IVI class driver for scopes. They are located at:
C:\Program Files\National Instruments\MeasurementStudio\VB\Samples\IVI\CWIviScope

Try these examples and see if they work.

Jack Arnold
Application Engineer
National Instruments
0 Kudos
Message 2 of 4
(3,481 Views)
Hi,

First, thank you for your reply. I still got the problem. This is the error message:

File "lcltxxxx.c", line 2363, column 73:
Local 'intfType' was referenced before being initialized.

I think my DLL drive file may have some problems. How can I solve this problem?

Thank you very much
0 Kudos
Message 3 of 4
(3,481 Views)
This sounds like a problem with the instrument driver for the scope you are using. First, make sure you have the latest instrument driver for your scope (go to ni.com/idnet, search for your scope, get the driver and reinstall it). If you still have this problem, please post a small VB project that reproduces it, if possible.

Tony
Measurement Studio
0 Kudos
Message 4 of 4
(3,481 Views)