NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

passing a image from a step to a UI

Hello

I have a TestStand step which acquires an image and creates a bitmap object with the 'NewBitmap' function. I get a bitmap ID which I send to TestStand. This function is included in a dll called acquisition.dll. In my TestStand sequence, I post the bitmap ID in a message to the UI. My callback in the UI get the ID and display the image with the 'CanvasDrawImage' function. The name of the file is UI.exe. So, my bitmap ID get through the different files below :

acquisition.dll -> TestStand sequence file -> UI.exe

 

My problem is that it works well on one PC (I get the picture on the UI), but not on another one. the 'CanvasDrawImage' function returns an error -12, out of memory. I precise that I use the same exe and dll files, I dont compile files on each PC.

 

So the the question is why is the result different from on PC to another one. Is the method I use ok ?

 

Regards

Laurent

0 Kudos
Message 1 of 7
(3,681 Views)
Are you using the teststand/labview executable on other system?
0 Kudos
Message 2 of 7
(3,675 Views)

I'm using TestStand 3.5 and LabWindows/CVI 8.1. I tested my program on the different PC

 

Laurent

0 Kudos
Message 3 of 7
(3,646 Views)

Hello,

 

Can you try to compile the file in the other computer?

Regards,

Nacer M. | Certified LabVIEW Architecte

0 Kudos
Message 4 of 7
(3,625 Views)

Yes, I compiled the files (dll and ui) successfully on both PC

 

Laurent

0 Kudos
Message 5 of 7
(3,623 Views)

Hello,

 

After compiling int the other computer di you have the error?

 

Regards,

Nacer M. | Certified LabVIEW Architecte

0 Kudos
Message 6 of 7
(3,617 Views)

If you are dealing with large images, the error message might be correct that you are out of memory. You can run out of memory when requesting a large block if memory is fragmented, even if you have enough total memory. If it is a borderline case, subtle software differences or usage difference between two computers could result in differing fragmentation where the allocation succeeds on one but not the other.

 

Can you reduce the size of the bitmap or any other large allocations?

0 Kudos
Message 7 of 7
(3,604 Views)