Re: ImageToArray function sometimes reports valid input as"not an image"

This is a discussion on Re: ImageToArray function sometimes reports valid input as"not an image" within the labview forums in Programming Languages category; Hi, tst is right, race conditions can certainly cause such errors, especially the ones that you see only sporadically. Is there a chance that you are destroying the image buffer in parallel? Make sure that you dont have an IMAQ Dispose VI that might be reached before the Image to Array VI. Jaidev  ...

Go Back   Application Development Forum > Programming Languages > labview

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 01-07-2008, 12:10 PM
Jaidev
Guest
 
Default Re: ImageToArray function sometimes reports valid input as"not an image"

Hi,
tst is right, race conditions can certainly cause such errors, especially the ones that you see only sporadically. Is there a chance that you are destroying the image buffer in parallel? Make sure that you dont have an IMAQ Dispose VI that might be reached before the Image to Array VI.
Jaidev
 
Reply With Quote
  #2  
Old 01-08-2008, 03:40 PM
Root Canal
Guest
 
Default Re: ImageToArray function sometimes reports valid input as"not an image"

image is not being deleted out of turn, here is a picture of the vi:



the data should arrive at the "before" output and the IMAQ array to image function at the 'same' time. the image can always be displayed properly. it contains valid values, but every once in a while "array to image" tells me it's not an image!

If we assume this is a race condition, how do I solve the problem?
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 05:53 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.