Jump to content

when playing video - the GUI is stuck


kodon1

Recommended Posts

Posted

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

Posted

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.

Posted (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

 

 

 

post-53056-0-72651800-1424615651_thumb.p

Edited by kodon1
Posted

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!!

Posted

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.

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.