05-03-2006 06:22 PM
05-04-2006 03:58 PM
Without having run your VI (as I do not use IMAQ for USB) I the following problem in your code:
Your VI "CheckCalFinished_N_flashcode_nosub.vi" reads from a the local variable "Image" when disposing the image. This is a race condition in LabVIEW - you should not assume that the local variable is valid: The reading from the local variable might execute before the indicator received the value from IMAQ Create.
Do not use the local variable - use the wire that comes from IMAQ Create.
This might already solve your problem. At least I hope this was helpful.
05-04-2006 05:15 PM
05-04-2006 07:49 PM
Hi DJ & Guenter,
Thanks very much for your feedback 🐵
Using the Grab.vi included in the IMAQ for USB driver library ie as simple as it can get, the problem is still there.
If the VI is run repeatedly the PF Usage in task manager creeps up by approx 6MB every time it is run until the PF Usage in task manager reaches 1.9GB when it returns -1074396024 occurred at USB Grab setup.vi which i imagine is saying its run out of memory.
1st time 2nd time 3rd time 4th time
After Camera Enum
After USB Init
After USB Grab SetUp
After Imaq Create
After USB Grab Acquire
After USB STop
AFter USB Close
After Imaq Dispose
05-04-2006 07:49 PM
Hi DJ & Guenter,
Thanks very much for your feedback 🐵
Using the Grab.vi included in the IMAQ for USB driver library ie as simple as it can get, the problem is still there.
If the VI is run repeatedly the PF Usage in task manager creeps up by approx 6MB every time it is run until the PF Usage in task manager reaches 1.9GB when it returns -1074396024 occurred at USB Grab setup.vi which i imagine is saying its run out of memory.
1st time 2nd time 3rd time 4th time
After Camera Enum
After USB Init
After USB Grab SetUp
After Imaq Create
After USB Grab Acquire
After USB STop
AFter USB Close
After Imaq Dispose
05-04-2006 07:49 PM
Hi DJ & Guenter,
Thanks very much for your feedback 🐵
Using the Grab.vi included in the IMAQ for USB driver library ie as simple as it can get, the problem is still there.
If the VI is run repeatedly the PF Usage in task manager creeps up by approx 6MB every time it is run until the PF Usage in task manager reaches 1.9GB when it returns -1074396024 occurred at USB Grab setup.vi which i imagine is saying its run out of memory.
1st time 2nd time 3rd time 4th time
After Camera Enum
After USB Init
After USB Grab SetUp
After Imaq Create
After USB Grab Acquire
After USB STop
AFter USB Close
After Imaq Dispose
05-04-2006 07:49 PM
Hi DJ & Guenter,
Thanks very much for your feedback 🐵
Using the Grab.vi included in the IMAQ for USB driver library ie as simple as it can get, the problem is still there.
If the VI is run repeatedly the PF Usage in task manager creeps up by approx 6MB every time it is run until the PF Usage in task manager reaches 1.9GB when it returns -1074396024 occurred at USB Grab setup.vi which i imagine is saying its run out of memory.
1st time 2nd time 3rd time 4th time
After Camera Enum
After USB Init
After USB Grab SetUp
After Imaq Create
After USB Grab Acquire
After USB STop
AFter USB Close
After Imaq Dispose
05-04-2006 07:49 PM
Hi DJ & Guenter,
Thanks very much for your feedback 🐵
Using the Grab.vi included in the IMAQ for USB driver library ie as simple as it can get, the problem is still there.
If the VI is run repeatedly the PF Usage in task manager creeps up by approx 6MB every time it is run until the PF Usage in task manager reaches 1.9GB when it returns -1074396024 occurred at USB Grab setup.vi which i imagine is saying its run out of memory.
1st time 2nd time 3rd time 4th time
After Camera Enum
After USB Init
After USB Grab SetUp
After Imaq Create
After USB Grab Acquire
After USB STop
AFter USB Close
After Imaq Dispose
05-04-2006 08:02 PM
OOps - sorry - leant on the wrong key - sent before finished
Hi DJ & Guenter,
Thanks very much for your feedback
Using the Grab.vi included in the IMAQ for USB driver library ie as simple as it can get, the problem is still there.
If the VI is run repeatedly the PF Usage in task manager creeps up by approx 6MB every time it is run until the PF Usage in task manager reaches 1.9GB when it returns -1074396024 occurred at USB Grab setup.vi which i expect is saying its run out of memory.
Task manager reports PF Usage (MB):
1st time 2nd time 3rd time 4th time
After Camera Enum 472 477 485
After USB Init 469 472 478 483
After USB Grab SetUp 473 481 486 492
After Imaq Create 473 479 484 490
After USB Grab Acquire 475 481 486 492
After USB STop 475 481 485 492
AFter USB Close 473 478 484 490
After Imaq Dispose 473 478 484 489
so it seems the memory is being allocated/used during USB Grab SetUp which contains only a library node calling a function from ImaqDirectShowDll. And then never being cleared by USB stop or close.
I guess there is not much to be done about that?
Thanks again - Have a good day
Fi
05-08-2006 02:10 PM