kodon1 Posted February 21, 2015 Report Share Posted February 21, 2015 Hello, I have a simple GUI using IMAQdx to play a video through a webcam. There are 2 buttons - play and stop. The problem is after I press on play, and get the video on screen, I can't press on stop to stop the stream. it just doesn't let me to press the button. Could you have an idea, what could be the problem? tx Quote Link to comment
ensegre Posted February 21, 2015 Report Share Posted February 21, 2015 without seeing your code, no. My guess would be that, if you're following the usual way of the IMAQdx example, that is register a dynamic event for frame done, and handle completed frames with an event structure, your webcam is generating events faster than you can handle/the front panel is locked while you're handling that event or something the like. I remember having seen a number of webcams/usb,firewire,Gige genicams generating two events per frame rather than one with this scheme, for reasons I never understood. Quote Link to comment
kodon1 Posted February 21, 2015 Author Report Share Posted February 21, 2015 (edited) hi, thanks for the answer.. I'm trying to attach block diagram snap... there are some other parts seen in the block diagram. the relevant part is the central case where the grab icon appears thanks a lot for your help Edited February 22, 2015 by kodon1 Quote Link to comment
ensegre Posted February 22, 2015 Report Share Posted February 22, 2015 you have "Lock panel" on in handling your event case? Quote Link to comment
kodon1 Posted February 22, 2015 Author Report Share Posted February 22, 2015 what is a lock panel? how do I check it? thanks Quote Link to comment
ensegre Posted February 22, 2015 Report Share Posted February 22, 2015 Right click on [3] "Play video", "Record Button" Value change -> Edit Events Handled by This Case. What is the word Homework in the title of your window? Quote Link to comment
kodon1 Posted February 22, 2015 Author Report Share Posted February 22, 2015 ensegre, thanks for the tip. it was 'on'... I turned it off, but I still can't test it since I don't have the camera here. I'll try it and update. I'm sorry, I forgot to remove the name, so it's for my homework in a university class . thanks again!! Quote Link to comment
dkfire Posted February 22, 2015 Report Share Posted February 22, 2015 You have one more problem. You are still not able to stop the inner while-loop, as your stop button is outside the while-loop. Move the stop button inside the loop to be able to stop the while loop. Quote Link to comment
kodon1 Posted February 22, 2015 Author Report Share Posted February 22, 2015 ensegre an dkfire, thanks a lot for your assistance. it helped!! Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.