12-15-2013 10:44 AM
I'm trying to make an application that doesn't require the user to make a click on a button, in order for the action to occur. I need this action to occur every 500 ms, but the thing is I don't know how to do this programatically, since I'm new to labview. what I want to do is take a picture from my web cam every 500 ms, and in another windows, I want to capture the entire video. So I would have a live video stream on one side and a picture from that live stream on the other side. any examples will be greatly appreciated.
Thanks!
Solved! Go to Solution.
12-15-2013 12:09 PM
12-15-2013 12:45 PM
I already have an example, that captures video and an image through a button click, but now I want to modify that code, so that it captures an image after 500 ms.
I tried using a while loop and a timed loop inside of it, so that it is always running, and takes a picture every 500 ms. The thing is that if I do that, only 1 image is taken and the video freezes.
I also tried only using a timed loop, but the same thing happens.
Please tell me what can I do to fix this.
And if you could give me some code, I would be really thankful.
12-15-2013 12:53 PM
12-15-2013
01:04 PM
- last edited on
06-06-2026
02:47 PM
by
Content Cleaner
-You said you have an example-then you should post it and explain the problem instead of asking for a general solution.
-Why do you mix while loop and timed loop?? Timed loop has a while loop. you don't need extra while loop for it.
-Please understand how timed loop works in multi core programming. Read it here
https://www.ni.com/en/shop/labview/multicore-programming-with-ni-labview.html
-I generally don't prefer use timed loop in pc. Please read Timed loop in above link then you might find why its freezing.
-Again if someone wants to "fix this" they need to see what you have done and then they can fix.
-Did you try the above code which i mentioned? did you understand the logic there?
12-15-2013 05:22 PM
This is the example I'm using. The part that I modified, but with no success, is the one that has the timed loop. The problem I'm having is that I only get 1 image and the video freezes.
What I need is to keep watching a live video and for an image to be taken every 500 ms.
Please help me fix this.
Thanks in advance!
12-15-2013 05:45 PM
Having the timed loop is just silly. You don't understand LabVIEW and data flow. The inner loop just cycles continuously without getting a new capture. Your main while loop needs a Wait (ms) set for 500ms to capture at that rate. I don't have imaq installed at this point so I can't comment on the rest of the code.
12-15-2013 08:05 PM
How can I have a live video on 1 side and also take a picture of that video every 500 ms, with the same camera?
12-15-2013 08:51 PM
12-15-2013 11:36 PM