Asked — Edited

Using A Joy Stick To Take Pictures With Snap Shot

Hello everyone, I have a question about the snap shot control. I want to be able to take a picture with a joy stick button push, but only then. It seems the snap shot control will take a picture every so many seconds that you set it to. I don’t want to fill up my hard drive with unwanted pictures. I got everything to work, except it takes pictures on intervals by its self as well. So, anybody know if the interval timer can be turned off in the snap shot control? confused


ARC Pro

Upgrade to ARC Pro

Become a Synthiam ARC Pro subscriber to unleash the power of easy and powerful robot programming

#1  

Easy... Delete the snapshot control and just map one of the buttons in the joystick control to take a snapshot...


ControlCommand("Camera", CameraSnapshot)

United Kingdom
#2  

Assign the snapshot ControlCommand() to a button...

ControlCommand("Camera", CameraSnapshot)

This takes one picture.

PRO
Synthiam
#3  

Oh Richard wins:) quick on the draw!

Both answers are correct, and you can find out more by reading the scripting manual here: https://synthiam.com/Tutorials/Help.aspx?id=1003

#4  

Thanks for the quick reply, Yes I understand the edit scripts. I have the joy stick, camera and the snap shot controls running. I scripted the joy stick button 1 to ControlCommand() a snap shot. That all work fine. All 3 have to be running in order to work. Just setting the joy stick button to take a snap shot without the snap shot control up wont work. The issue is the interval timer. I can’t turn it off and with everything running; it still takes a snap shot without using the joy stick every so many seconds. I can’t find any script edit on the snap shot control and nothing in the camera control for the snap shot function. Thanks for all the help. May be I just not seeing it.

User-inserted image

United Kingdom
#5  

Yeah it will work, that's why I was 2 minutes behind Richard, I was testing it.

Add a camera control Add the joystick control In one of the buttons assign the script command

ControlCommand("Camera", CameraSnapshot)

Pressing that joystick button will take a photo and store it in the specified location (specified location is in the camera settings, by default it is My Pictures/My Robot Pictures

Here's an example project

And the resulting snapshot from my test User-inserted image

#6  

Rich, Thanks. I must have did something wrong. I didn’t doubt you all, but just after your first post I tried it and it didn’t work. Don’t know what I did wrong, but you all are correct and its works fine now. Thank you Rich, Richard and DJ for all the quick help. I don’t know what I would do without you all. Problem solved! :D

#7  

Geez Rich, you should pick up the place a little before taking a picture.... :P

#9  

Rofl, yea that was a close one :)

United Kingdom
#10  

@Richard, you're lucky I had clothes on!..

PRO
Synthiam
#11  

@airwave1206 I recommend reading the scripting link that I provided earlier. Please read it because there are many commands that are called "Control Commands" for each control. For example, the snapshot control has a ControlCommand() that takes snapshots. You can preview the available control commands in the Cheat Sheet tab when editing scripts.

The EZ-Script manual is a list of functions. The ControlCommand() syntax is specific to each control. The ControlCommand() parameters cannot be listed in the EZ-Script manual with the functions. If the ControlCommand() parameters were listed in the EZ-Script manual, it would be a hundred+ pages long.

So instead, the available ControlCommand() parameters are displayed in your Cheat Sheet tab when editing a script. The parameters displayed are specific to the controls in your project. Please read the scripting link that I had provided earlier for information on how it works.

If you read the scripting link, it will explain how it works with photos. Here is the link again for your convenience: EZ-Script Introduction

It will be worth your time :)

#12  

@Rich... "you're lucky I had clothes on!.." Holy crap that was funny... If you ever invite me over remind me to never sit on your couch dude.... :P

#13  

I like the blue screen behind the couch. Let's see, how could we use that?