mc:connect({list = 'camlist.txt'})
I want to display a message upon clicking it that says "are you sure?" with yes or no buttons.
While I was typing that last paragraph, I noticed that if I try to connect to the cameras usingCode: [Select]mc:connect({list = 'camlist.txt'})I get an error message because camlist.txt doesn't exist, which is to be expected. I'm trying to make it so that when I get the error my code just connects without a list. I've never dealt with error handling in lua before so I'm struggling, and I'm gonna need to do a lot more of it. I figure this is a good primer.
if lfs.attributes('camlist.txt','mode') then mc:connect({list='camlist.txt'})else mc:connect()end
local status,err = pcall(function() mc:connect({list='camlist.txt'}) end)
local status,err = pcall(mc.connect,mc,{list='camlist.txt'})
so the mc:connect call is wrapped in an anonymous function that pcall can call
Quoteso the mc:connect call is wrapped in an anonymous function that pcall can call.....So back to sync (sorry for jumping around so much), I'm trying to trigger the power sync by plugging 12 non-powered USB hubs with 6 cameras each (a total of 72 cameras) into one powered hub and cutting the power there. This seems to be working fine, all of the cameras take a picture with perfect sync, but when I try to reconnect to them I run into trouble. I'm not connecting with a list which might be part of the problem. About 35% of the cameras reconnect fine but the rest fall victim to driver crashes. I get the message "USB device not recognized", and I have to restart my computer to fix it.Any ideas?
So back to sync (sorry for jumping around so much), I'm trying to trigger the power sync by plugging 12 non-powered USB hubs with 6 cameras each (a total of 72 cameras) into one powered hub and cutting the power there.
So if you were the one building this array, how exactly would you do it?
You would then need to turn all cameras off/on by their power button - or via an external switch but having the camera power button permanaently pressed (but that could be bad?).reconnect & power-up your hub network
It would be great if I could sync up the camera time to my system time and have the cameras put a timestamp on the images it takes, maybe as a value I can return through download_images?
Started by jmonty General Help and Assistance on using CHDK stable releases
Started by Mike Lee General Discussion and Assistance
Started by axman General Help and Assistance on using CHDK stable releases
Started by andrew.stephens.754365 General Help and Assistance on using CHDK stable releases
Started by reyalp RAW Shooting and Processing