LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

synchronize two tick count

Solved!
Go to solution

I would say then that you need to find someone to build your system for you. Call your local NI rep and they can hook you up with some system integrators in your area.

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 11 of 13
(472 Views)

I attach my program. my program has two loop. I assign to two 2 core of chip. the first loop simulates a moving rectangle. the second loop connect to webcam usb. the webcam captures image. program in second loop process image to determine position of rectangle. the frame rate of webcam is 30 fps. period of processing image is about 33ms. I compare the result from processing image and first loop. I expect processing image delayed 33ms but I receive 100ms. I think problem when grab image. I don't know IMAQ grab.VI, acquired the most new frame. I have two monitor as picture. I have a question, why processing image was delayed 100ms instead of 33ms?

Thank you!

Download All
0 Kudos
Message 12 of 13
(460 Views)

The target is not a deterministic operating system.  What makes you think  you will be able to maintain a 3ms, 2ms, and 1ms loop rates in Singe Cycle Timed Loops?  Especially when within some of them there are wait functions, and File I/O?

 

Why do you have a wait 20 seconds in that bottom loop?  That seems like it would annoy the user not being able to stop update the UI or anything for 20 seconds.  

 

You are logging a CSV file but gave it an .XLS file extension.  Excel may compain that the file type is not correct.

 

Why are you creating, and destroying multiple images in each iteration?  Just make them once, use it over and over, then dispose on exit.  Same goes for initializing the camer.  This can take a long time, just do it once on start, then close once on exit.  This will improve loop time.

0 Kudos
Message 13 of 13
(444 Views)