LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

variant to data error with image reference, executable only

If I run the attached VI (imageref.vi) under LabVIEW the error out on the front panel will show no error.
If I compile that lone vi as an executable and run it by itself, the front panel will show error 91, variant to data got wrong data type or something.

What's the reason for this?  Do I need to add something to the build process?

0 Kudos
Message 1 of 6
(3,305 Views)
Hi instrumento -

Unfortunately, there are several known issues with the image control reference in LabVIEW 8.0.  Our developers are at work on fixing them, but there is no current fix or patch available.  The recommended workaround is to avoid using these types of references in your code.  I'm sorry for the inconvenience, but I assure you that we're working on it.
David Staab, CLA
Staff Systems Engineer
National Instruments
0 Kudos
Message 2 of 6
(3,291 Views)
> Unfortunately, there are several known issues with the image control reference in LabVIEW 8.0.

Bugs you mean 🙂  And I'm on 7.1.1 not 8.0

> Our developers are at work on fixing them, but there is no current fix or patch available.

Bummer.

> The recommended workaround is to avoid using these types of references in your code.

I will need to rewrite a lot of code to account for this.  I'm carrying data in a generic way through the use of variants and references to controls and making an exception for IMAQ types is not something I'm looking forward to.
0 Kudos
Message 3 of 6
(3,286 Views)
Hi instrumento -

It looks like this issue was found in LabVIEW 7.1 too.

The problem arises in the difference between the Image datatype and other types in LabVIEW.  The Image is unique in that it is actually a memory pointer.  This forces it to be handled uniquely when passing references between VIs, since either data has to be passed between memory buffers (which slows overall performance) or memory allocation and tracking have to be adjusted.  Our developers are working to provide a fix as soon as possible in the future.


David Staab, CLA
Staff Systems Engineer
National Instruments
0 Kudos
Message 4 of 6
(3,284 Views)
Sorry for bringing up this old tread, but i was wondering if this issue has been fixed.
I am working with labview 8.0 and vision 7.1.1 and I have been encountering some strange errors.

So I was wondering if this could be the reason.

Thanks in advance.

Arend
0 Kudos
Message 5 of 6
(3,188 Views)
Hi Arend,

Are you getting the same error that was posted above?  Or are you just doing something similar?  If you give more information about the error you are seeing we may be able to find what is causing the problem.  I just tried building the vi that was attached above into an executable using LabVIEW 8.2.1 and I was able to run it without getting any errors.  If you are getting a similar error you may consider upgrading to the latest version of LabVIEW.  I hope this helps.

Have a great day,

GG
0 Kudos
Message 6 of 6
(3,171 Views)