LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

streaming live on webcam and while running real time clock

Can anyone help me please?

 

I have been trying to stream a live webcam from my control room while runing a realtime clock.

 

I am atatching what I have done so far. 

 

I can't seems to get the clock to run properly while streaming the live video. 

 

I think this coding seems to taking up  a lot of processing power.

 

can this be achieved with minimal processing power?

 

Thanks.

Vis

 

 

0 Kudos
Message 1 of 7
(2,745 Views)

The clock and the capture are in the same loop. Place the clock in a separate loop and it will run in parallel (meaning the clock can update faster than the video). Additionally, if you place the clock in an event structure, you can use the "timeout" case to make the clock update at whatever interval (in milli-seconds) you would like.

 

Charles

Charles Chickering
Architecture is art with rules.

...and the rules are more like guidelines
0 Kudos
Message 2 of 7
(2,738 Views)

Hello Charles,

 

Thanks for getting with a solution, Just wondering if you can elaborate please? 

 

Thanks very much.

Vis

0 Kudos
Message 3 of 7
(2,735 Views)
Sure, give me a bit to get back to my development machine and I'll send you something
Charles Chickering
Architecture is art with rules.

...and the rules are more like guidelines
0 Kudos
Message 4 of 7
(2,729 Views)

Here is the code that I came up with. A few comments:

I removed the stacked sequence structures, most people in the LabVIEW community consider these to be evil.

I removed the timed loop and the event structure within it

I added an addition while loop in parallel, this loop uses an event structure with the timeout set to 1 second, in the timeout case the clock is updated

The one remaining "Stop" control has been set to "Switch when released". This allows the event structure in the clock loop to fire an event for the "value change" while the original loops looks for a "True" condition to stop it.

I added local variables to initialize "Stop" to false and to set it to false upon a proper completion of code.

The code on my machine prompts a popup box to select the camera settings every time through the loop at the DLL call immediately outside the 0,1 case structure. I left it as is assuming you have that part under control.

 

Please let me know if I can be of further assistance.

 

Charles

Charles Chickering
Architecture is art with rules.

...and the rules are more like guidelines
0 Kudos
Message 5 of 7
(2,722 Views)

Hello Charles,

 

I couldn't see a thing. 

 

I only have v.8.5

 

Can you please save it on earlier version as a backward combatible.

 

Many thanks,

Vis

0 Kudos
Message 6 of 7
(2,715 Views)

Here's the 8.5 version.

 

Charles

Charles Chickering
Architecture is art with rules.

...and the rules are more like guidelines
0 Kudos
Message 7 of 7
(2,701 Views)