loading
 
Enquiry on snapshot timing
Ian Hayward from United Kingdom  [4 posts]
15 year
Hi there

We are currently working on an academic project that requires a perfectly timed snapshot being taken at a specific interval and overwritng the last instance so that the filename remains the same. We have a secondary application that reads the output file for processing at a specific time and every now and again we experience file lock messages from RoboRealm which then stops outputting until the message is cleared.

At present, we have been unable to get a consistant timed save - it seems to fluctuate between 2 and 3 seconds.  Is there a variable that will allow us to set a constant 2 second output?

Alternatively, is it possible to disable error message dialogues so as to allow RoboRealm's processing to continue without interruption?

Many thanks in advance for your assistance.

Ian
Anonymous 15 year
Ian,

Can you give us an idea on what modules you are using when you experience this error. Is it a popup error? What does the error explicitly say? Perhaps a screenshot would be very helpful.

If your video stream is fast enough RR should be able to quite accurately save the image file. Knowing what modules you are using will help us understand where the delay in saving could happen.

Also note that as RR is running on a Win OS which is not a realtime system there might also be other processes that momentarily tax the system and prevent it from running with exact timing.

Yes, it is possible to create a setting that voids all error messages. We will look into that.

STeven.
Ian Hayward from United Kingdom  [4 posts] 15 year
Hi Steven

Many thanks for your reply.

The error message is not an error message per se, it is a dialogue headed "File error" and is simply a message box that informs the user that it was unable to write to the filename specified.  This is quite correct because our other application would be copying it at that precise moment in time.  Once the dialogue has been accepted, RR continues processing quite happily as before and it is this box we would like the ability to bypass.

I fully appreciate the Windows OS comment, but we have taken every effort to reduce the number of extra services running.

The modules in use are the camera option, the RGB settings and the write files option.

Thank you again for your help with this.

Ian
Ian Hayward from United Kingdom  [4 posts] 15 year
Can I ask in addition if there is a setting somewhere in RR that sets the frequency of the saves?  We have been unable to find this ourselves and are unsure what the default frequency of the saves are.

Ian
Anonymous 15 year
Ian,

Please download 1.8.23.7 as it now includes a feature in the Options->Other tab that says "Silent Errors". When this checkbox is selected the application will NOT use popups to display error messages but will instead show a quick 10 second message in the main video area .. not that this error message is NOT part of the image being processed and only put there in case you forget that the errors are now silent. They also get logged to a roborealm.log in case you need a reference to what the error said specifically. Hopefully that will take care of your situation in general.

In terms of the timing for the saves, that depends on the fps of your camera. If you camera supports 30 fps then the save will be attempted at 30 times a second ... this is most likely why you are getting such an error. To slow that down you could use the timer module or a conditional around the save in order to not execute that module for each new camera image.

For example the below robofile will use the Timer to stop pipeline execution until 2 seconds have passed. It then adds a timestamp to the image and saves it to c:\temp\image.jpg

If you click below the Timer module you will see that the image does not update as quickly anymore ... in fact it only will refresh 1 every 2 seconds. Hopefully this helps you get closer to what you are looking for.

STeven.

program.robo
Ian Hayward from United Kingdom  [4 posts] 15 year
Steven

This is extremely kind of you.

We have downloaded the new version and after disabling the error dialogue all seems to be working perfectly now with our project so I just wanted to express mine and my friends sincerest thanks for your extremely prompt and helpful assistance with this issue.

Kindest regards

Ian
Anonymous 15 year

You're very welcome. Glad we could help out. Good luck with your project!

STeven.

This forum thread has been closed due to inactivity (more than 4 months) or number of replies (more than 50 messages). Please start a New Post and enter a new forum thread with the appropriate title.

 New Post   Forum Index