EZ-Builder Windows Release 2014.11.10.00

Download and install the latest EZ-Builder robot programming software to experience these updates.

Download EZ-Builder
This is a small release with one new feature for the camera control

Changes:

- new Camera Variable: $IsCameraActive which returns the status of the camera. Can be configured to a custom variable name in the camera config dialog
#13  
Yes, there is several seconds of delay throughout my initialization script, and I was attempting this on the last step.

I have figured out the sequence of events that causes the issues.

1) If I start EZ-Builder and open my project before starting Roli, the camera fails to initialize, so the variable is not initialized (none of the camera variables appear in variable watcher, and the script using the IF statement fails).

2) If on the other hand, Roli is started before opening the project, the camera initializes and starts, but if I run ControlCommand("Camera", CameraStart) and the camera has already started, then EZ-Builder intermittently crashes.

There does not seem to be a way to use the variable to check the camera status if the camera has not already been run at least once in this session.

However, I think I found a solution.

Running ControlCommand("Camera", CameraStop) when the camera is not running records errors in the log, but so far has not crashed EZ-builder, so I will add this to the end of my initialization script:

ControlCommand("Camera", CameraStop)
sleep(1000)
ControlCommand("Camera", CameraStart)

That way, if the camera was not running, it will start, and if it was running, it will stop, wait a second, and re-start. Avoiding the issue with the variable.

Alan
United Kingdom
#14  
From memory (which is fuzzy at best right now) is there a toggle for the camera start/stop? Possibly use the ControlCommand for toggle twice in quick succession may kick the variables in for the camera and allowing the IF to work and avoiding stopping a stopped or starting a started camera control.
#15  
There is not a documented CameraToggle (there are toggles for tracking, recording, etc). But now I can't find where CameraStart and CameraStop were documented other than forum posts by DJ and others. They aren't in the list of ControlCommand parameters in the script reference.

Alan
Synthiam
#16  
Alan, certain you have the most recent version of ez-builder?

I'm unable to reproduce similar results. The code initializes the variables when the camera control is added to the project - whether active or not...
#17  

Quote:

Alan, certain you have the most recent version of ez-builder?

I'm unable to reproduce similar results. The code initializes the variables when the camera control is added to the project - whether active or not...


Yes, I have the latest version.

Are you opening an existing project with a camera in it, or adding the camera to a new project? I am seeing it when I open my existing project.

If you think it might be project related, mine is on the cloud. name is "myroli" (original, I know) and it is tagged as rovers, incomplete.

I can test later today on different computers. The one I was doing most of the testing on is Windows 7 Professional (64 bit), but I can try on my Windows 8.1 tablet later.

Alan
#18  
I confirmed that opening my existing project on Windows 8.1 has the same issue. Adding a new camera to a new project, all the Camera variables do appear, but when I save that project, stop EZ-builder, restart EZ-Builder and load that project, no Camera variables appear until the first time I successfully start the camera for that session.

While I was testing, you released version 2014.11.18.00 so I installed it and re-tested with the same results.

Alan