Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

Which librrary to use

Greetings,
For a client I have created a program using the PCI-4065 DMM which works.  The computer with the card is at a remote site that I can't access.  My client would like some updates to the program but I can't seen to get the program to work without the cards.  I have installed the download "NI-DMM 3.0.1 - Windows 2000/Vista x64/Vista/XP"  (NIDMM301.zip) and successfully installed it.  However, when I start the program up I get an error "Can't find project or library" at this line:  

    Dim VI As ViSession

I assume this is a library function.  In the VB6 environment I checked all the loaded libaries and have all NI and National Instruments titled libraries loaded but still get this error.

 

 This code is from a VB8 example program that shipped with the card.  Here is the example:

 

'NI-DMM Example Program
'This example acquires a single DC Voltage measurement.  Specify the range and
'absolute resolution of your input signal and the powerline frequency of your system.
'The measured value will be displayed in the Measurement indicator.
'
'Supported Devices: 4050, 4060, 4065, 4070, 4071, 4072

Option Explicit
Dim VI As ViSession

 

 

 

What I need to know:
    What library must be loaded.
    Where can I get it

Also, do you have any suggestions for running a project when the cards are not installed (no measuements ill be made, only cosmetic changs will bedone ).

Thanks

0 Kudos
Message 1 of 6
(7,646 Views)

Hi,

 

This should be in visa.h as described here. Once the DMM driver is installed, then you should be able to simulate the device to use during application development.  Hopefully this helps!

Regards,


h_baker
National Instruments
Applications Engineer
0 Kudos
Message 2 of 6
(7,620 Views)

Hi Mr. Baker

Thanks for the help but the C++ header file that you suggested probably won't work for me as I am using VB6.  Do you have any idea which library applys in that case?

 

Perhaps the needed drivers are in the Ni-DAQmx 8.8 files.  As I have given them to my client and no longer have access to them, is there a site where I can download them?

 

Thanks  for the simulator link, I'll look into that one.

 

 

0 Kudos
Message 3 of 6
(7,612 Views)
My apologies for not explaining better.  The VISA header is not a part of the C++ header file but rather the VISA driver that is installed with NI-DMM.  If you navigate to this file location C:\Program Files\IVI Foundation\VISA\<operating system>\include  then you should find this file.  Drivers can be downloaded from our Drivers and Updates page.   
Regards,


h_baker
National Instruments
Applications Engineer
0 Kudos
Message 4 of 6
(7,595 Views)
After I posted back I realized the header issue.  Forgive my one track train of thought.  When you installed the DMM driver, the option to select support for VB6 should have been checked.  This gave you access to the examples and libraries.  The DMM driver should also install VISA and included support for this as well.  You should be able to reference the VISA library by choosing Project>>References and selecting Visa Library from the the list (you may first need to browse for the visa32.dll).  Let me know if this helps!  Let mgin: 0 0 0 0; padding:0 0 0 0 } td,div { font-family:Tahoma;font-size:8pt;vertical-align:top } body { margin: 0 0 0 0; padding:0 0 0 0; overflow:hidden; } .transcript { background-color:#d2d2d2; } .messageBlock { margin-left:4px; margin-bottom:3px } .message { margin-left:100px; word-wrap:break-word; white-space:-moz-pre-wrap; _white-space:pre; } .messageCont { margin-left:100px; word-wrap:break-word; white-space:-moz-pre-wrap; _white-space:pre;} .other { overflow:hidden;color:#39577a;vertical-align:top;font-weight:bold;font-style:normal;float:left; width:95px; } .myself { overflow:hidden;color:#da8103;font-style:normal;font-weight:bold;font-style:normal;float:left; width:95px; } .otherCont { font-size:8px;text-align:right; color:#39577a;font-family:Arial,Lucida Grande;font-style:normal;vertical-align:top;font-weight:bold;float:left; width:95px; } .myselfCont { font-size:8px;text-align:right; color:#da8103;font-family:Arial,Lucida Grande;font-style:normal;vertical-align:top;font-weight:bold;float:left; width:95px; } .system { margin-left:4px; word-wrap:break-word;color:#da8103;font-style:normal;font-weight:normal; white-space:-moz-pre-wrap; _white-space:pre; } .showTimestamp { padding-left:8px; margin-right:3px; float:right; color:#999999;font-style:normal;font-weight:normal; } .other1 { color:#ac2000;vertical-align:top;font-weight:bold;font-style:normal;float:left; width:95px; } .otherCont1 { font-size:8px;text-align:right; color:#ac2000;font-family:Arial,Lucida Grande;font-style:normal;vertical-align:top;font-weight:bold;float:left; width:95px; } .other2 { color:#3c9fa8;vertical-align:top;font-weight:bold;font-style:normal;float:left; width:95px; } .otherCont2 { font-size:8px;text-align:right; color:#3c9fa8;font-family:Arial,Lucida Grande;font-style:normal;vertical-align:top;font-weight:bold;float:left; width:95px; } .other3 { color:#e25614;vertical-align:top;font-weight:bold;font-style:normal;float:left; width:95px; } .otherCont3 { font-size:8px;text-align:right; color:#e25614;font-family:Arial,Lucida Grande;font-style:normal;vertical-align:top;font-weight:bold;float:left; width:95px; } .other4 { color:#0b6ac8;vertical-align:top;font-weight:bold;font-style:normal;float:left; width:95px; } .otherCont4 { font-size:8px;text-align:right; color:#0b6ac8;font-family:Arial,Lucida Grande;font-style:normal;vertical-align:top;font-weight:bold;float:left; width:95px; } .other5 { color:#b23290;vertical-align:top;font-weight:bold;font-style:normal;float:left; width:95px; } .otherCont5 { font-size:8px;text-align:right; color:#b23290;font-family:Arial,Lucida Grande;font-style:normal;vertical-align:top;font-weight:bold;float:left; width:95px; } .other6 { color:#02e7c7;vertical-align:top;font-weight:bold;font-style:normal;float:left; width:95px; } .otherCont6 { font-size:8px;text-align:right; color:#02e7c7;font-family:Arial,Lucida Grande;font-style:normal;vertical-align:top;font-weight:bold;float:left; width:95px; } .other7 { color:#5b3284;vertical-align:top;font-weight:bold;font-style:normal;float:left; width:95px; } .otherCont7 { font-size:8px;text-align:right; color:#5b3284;font-family:Arial,Lucida Grande;font-style:normal;vertical-align:top;font-weight:bold;float:left; width:95px; } .highlight { background-color:#bed6f8; } .datestamp { cursor:default; margin-bottom:1px; background-color:#c0c0c0; width:100%; float:left; text-align:right; color:#ffffff; font-weight:bold; font-style:italic; } #chatAlert { float:left; border-bottom:1px solid #E8D091; padding:6px; width:100%; color:#A5754C; } #chatAlertImage { float:left; } #chatAlertText { float:left; margin-left:6px; } #chatAlertClose { float:right; margin-right:10px; padding-right:6px; margin-top:0px; } #chatAlertText a { color:#A5754C; } #chatAlertText a:hover { color:#A5754C; text-decoration:none; } .tsDisplay { display:block }.dsDisplay { display:none }
Regards,


h_baker
National Instruments
Applications Engineer
0 Kudos
Message 5 of 6
(7,591 Views)
After I posted back I realized the header issue.  Forgive my one track train of thought.  When you installed the DMM driver, the option to select support for VB6 should have been checked.  This gave you access to the examples and libraries.  The DMM driver should also install VISA and included support for this as well.  You should be able to reference the VISA library by choosing Project>>References and selecting Visa Library from the the list (you may first need to browse for the visa32.dll).  Let me know if this helps!
Regards,


h_baker
National Instruments
Applications Engineer
0 Kudos
Message 6 of 6
(7,589 Views)