10-17-2007 10:18 AM
10-17-2007 12:59 PM
Michael,
I'm glad that my code works well : I can blame something or someone else
.
Actually, I can't read the AVI in windows media player : I only get a pink
distorted picture (see snapshot "ImaqAVIcolorImage" in one of my
previous replies).
I suspect one of the
DLL loaded by the application to be in fault, probably caused by software
installed on both of my computers.
All those DLLs are
loaded on the AVI creation :
'U-GLARES_CO2.exe': Loaded 'C:\WINDOWS\system32\clbcatq.dll', No symbols loaded.
'U-GLARES_CO2.exe': Loaded 'C:\WINDOWS\system32\comres.dll', No symbols loaded.
'U-GLARES_CO2.exe': Loaded 'C:\WINDOWS\system32\qcap.dll', No symbols loaded.
'U-GLARES_CO2.exe': Loaded 'C:\WINDOWS\system32\msvfw32.dll', No symbols loaded.
'U-GLARES_CO2.exe': Loaded 'C:\WINDOWS\system32\quartz.dll', No symbols loaded.
And those two ones
when saving the first AVI frame :
'U-GLARES_CO2.exe': Loaded 'C:\WINDOWS\system32\devenum.dll', No symbols loaded.
'U-GLARES_CO2.exe': Loaded 'C:\WINDOWS\system32\msdmo.dll', No symbols loaded.
When I first use
VISION and AVI reading on my computer, I get a conflict with a file from NERO
(media player and/or disc burner). So, I now think that any software can interfere
with my application !
I’m quite busy for the
next days, but if I have some time, I will try with another computer (again !)
with less stuff on it.
David
10-18-2007 07:42 AM
10-23-2007 04:14 PM
10-24-2007 10:18 AM
10-25-2007 09:45 AM
92 02 29 02 21 02 92 02 51 02 fd 01 6a 02 83 02 32 02 4c 02 8f 02 4e 02 26 02 70 02 72 02 32 02 4f 02 94 02 57 02 3a ...By the way, I did the same thing with the second grabbed AVI. The values were almost the same, except that every fourth byte is replace by "FF" :
92 02 29 02 21 02 92 02 51 02 fd 01 6a 02 83 02 32 02 4c 02 8f 02 4e 02 26 02 70 02 72 02 32 02 4f 02 94 02 57 02 3a ...
38 02 76 02 86 02 61 02 5c 02 7b 02 6a 02 53 02 86 02 87 02 67 02 6b 02 94 02 8e 02 68 ...All with the same source code !
38 02 76 ff 86 02 61 ff 5c 02 7b ff 6a 02 53 ff 86 02 87 ff 67 02 6b ff 94 02 8e ff 68 ...
10-26-2007 10:53 AM
10-30-2007 08:26 AM
Michael,
I’m not sure to understand how
to “verify whether or not the data changes before and after you convert the
image to an array and at the same time cast the array into 32 bits?”. To do so,
do I need to have access to the content of the Image struct (at least, in the
memory window) to see the value of each pixel ? I must miss something because I
don’t think that the construction of the image struct is documented in NI
manuals.
Also, I sometimes get this
error message :
A
first chance exception of type 'System.AccessViolationException' occurred in
U-GLARES_CO2.exe
Additional information: Attempted to read or write protected memory. This is
often an indication that other memory is corrupt.
errChkVISION(imaqArrayToImage(ImaqAVIColorImage,AVIlongArray,numCols, numRows));
It may be a big clue that something is going on with the casting process. I don’t know why I didn’t trig on this error before, maybe I was too much focusing on the streaks to make a link with the other error.
10-31-2007 10:27 AM
11-01-2007 10:10 AM