Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

Automation error 30000 ... might be frame grabber issue?

I'm getting an "Automation Error -30000" error in a dialong box when I click a button that is supposed to begin the data acquisition process using a Basler Camera and a PCE-1428 frame grabber.  I can't find any documentation on what might cause an error 30000 (or perhaps it is -30000)

 

This is a fresh install on a Win7 platform.  The application was written in VB6 many years ago and has run non stop on Win2K machines ever since it was written and ran during development on XP.

 

I've attached the camera file (that will successfully grab data using NI-MAX on Win7).  I've also included a process monitor log from the Windows 7 install showing what happens when we begin trying to acquire data.  This appears to show that all of the DLL/OCX/s have loaded correctly and that the correct ICD file is being loaded based up on the use of the img1 configuration.  An error occurs in a rather strange location that seems to refer to a KnownClasses item deep in the registry.

 

The camera file works fine with NIMax but we did need to manually generate it, because of this I'm posting under VB6 instead of a hardware thread (I'm assuming the config and hardware are correct since your code seems to get data fine)

 

There is a screen shot showing the versions of all of the NI code and showing that we are using img1.

 

Is it possible that newer versions of the NI software aren't compatible with the old VB6 code?

 

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

Zip file from process monitor

0 Kudos
Message 2 of 4
(7,600 Views)

Hello,

 

I looked into the error code you are seeing and I found an issue that indicated that some older VB6 IMAQ applications may not run correctly on systems with more than 3GB of memory. Per the Vision Acquisition Software (VAS) release notes :

 

"Applications developed using LabVIEW 8.2.1 or later will run on systems with more than 3 GB of physical memory. Applications developed using other development environments, such as Microsoft Visual C, Visual Basic, and .Net, are limited to systems with 3 GB or less of physical memory. All 32-bit applications, including those developed using LabVIEW, may not allocate more than 2 GB of memory total.

 

A firmware update is available for this device to allow non-LabVIEW applications to run on systems with more than 3 GB of physical memory. To update the device firmware, launch MAX and select Tools»NI Vision»Update NI-IMAQ Device Firmware."

 

You might try reducing system memory to 2GB to see if this resolves the problem. Let us know if this helps!

 

Best regards,

 

Andy C.

Applications Engineer

National Instruments 

Message 3 of 4
(7,557 Views)

Andy:

 

We tried to do the update that you suggested but it didn't work.  The update screen had no drivers for our frame grabber card.  See attached image for screen shot.

 

We did pull out 4G of 6G to get the machine to 2G and it works now, which is good but it is crazy slow now (as expected).  Do you have any ideas on how we might update this driver.  Without the extra memory the machine is barely usable.

 

Thanks a ton...and how did you find that information?  I usually am pretty good with searching before I post.

 

Chuck

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