Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

Measurement Studio 7.1 running in VB 6 debug does not work but running compiled executable does

We have just encountered this problem where our software does not work in Debug mode within the VB6 development environment, however, it does work when we run the executable compiled by VB6. We are running Measurement Studio 7.1 and DAQ V7.3 with an NI 6111 PCI data acquisition card. When we hit a line that checks CWDIO1.Ports.item(0) where CWDIO1 is a CWDIO component, there are no ports there, and the line fails.

However, we are able to compile an executable and the compiled executable works perfectly when run out.

Infact, even the demo code that was included with Measurement Studio for DIO does exactly the same thing. We are unable to run in Debug mode within the VB6 environment, however, we can compile the demo and run the compiled executable perfectly.

Sometime in the not too distant past, this did work properly on the same machine.

Does anyone know what might be the cause of this problem and how to fix it? We tried uninstalling and reinstalling Measurement Studio, but no luck.

Thanks.

Best Regards,
Matthew

0 Kudos
Message 1 of 4
(7,353 Views)

Hi Matthew,

This is indeed unusual behavior.  If you right click your CW control and then go to "properties", can you see a list of valid devices?  If not then you may be experiencing one of the known issues involving Component Works.  

As far as uninstalling/reinstalling Measurement Studio, Component Works is actually part of NI-DAQ and not MStudio. If all else fails you may want to reinstall that.  You may also consider programming the device with NI-DAQmx, which we are actively developing.

Good luck!

Jeff Tipps
Applications Engineer
National Instruments

0 Kudos
Message 2 of 4
(7,338 Views)
Thanks for your reply.

What we found that worked was to uninstall all NI software, then reinstall everything. We had done this before I got notification of your reply, so we did not get the chance to try the suggestions in the article that you referenced.

Best Regards,
Matthew

0 Kudos
Message 3 of 4
(7,319 Views)
This appears to happen in this case. If you have Measurement Studio for VB 6 installed and NI-DAQ 7.4.1 installed and then you install NI-DAQmx 8.3.

At that point, it appears that you must uninstall all NI software and then reinstall all the software, except, of course, NI-DAQmx 8.3. Once you install NI-DAQmx 8.3, simply uninstalling it will not fix the problem. All NI software must be uninstalled, then reinstalled for things to work again.

Best Regards,
Matthew

0 Kudos
Message 4 of 4
(7,279 Views)