adding new trigger to ptpchdk - Creative Uses of CHDK - CHDK Forum supplierdeeply

adding new trigger to ptpchdk

  • 1 Replies
  • 1742 Views
adding new trigger to ptpchdk
« on: 24 / June / 2021, 10:01:56 »
Advertisements
hi bros  :) :) :) :)

i have question about adding new feauture to the ptpchdk and i want ask it in new viwe

https://howtomechatronics.com/?s=matlab

in this video showing way to receiving external signal to the mat lab I want doing similar ting with serial or parallel port pin and ptpchdk  and use this signal as trigger for video triggering frame by frame

i am a mechanical engineer and my programing skill is low  :-[ :-[ . can any body writing this small code for me ?  ::) ::) ::) ::) for high skill bros this is not to hard
please help me to complete my project bros  :) ;) :D




*

Offline reyalp

  • ******
  • 14080
Re: adding new trigger to ptpchdk
« Reply #1 on: 24 / June / 2021, 17:47:59 »
I'll try to answer, but I've had a lot of trouble understanding your post. I know language can be a barrier, but please try to describe specifically what you are trying to accomplish.

i have question about adding new feauture to the ptpchdk and i want ask it in new viwe
What is "viwe"?

By "ptpchdk" do you mean the chdkptp program, or the CHDK PTP extension generally, or something else?

I assume chdkptp in the response below, but please clarify if that's not the case.

Quote
in this video showing way to receiving external signal to the mat lab I want doing similar ting with serial or parallel port pin and ptpchdk
Again, I don't really understand what specifically you're trying to do.

It sounds like you want chdkptp to either receive or trigger some signal from external hardware.

If this is the case, your options are generally:
  • Run some external program from ckdkptp, using os.execute or io.popen
  • Run chdkptp from some external program, piping its input and/or output
  • Load some Lua module that that lets you communicate with whatever the hardware is
  • Add whatever code you need in C
Which option makes sense depends completely on the details of what you are actually trying to do as well as your resources and skill set.

It's not very likely anyone here is going to write your code for you, but it's impossible without some more specific detail.

Quote
and use this signal as trigger for video triggering frame by frame
Again, I'm not clear what you want here, but neither CHDK nor chdkptp have any capability I would described as "video triggering frame by frame". If the functionality you want doesn't exist in CHDK, it needs to be implemented there first, before you worry about chkdptp and whatever external hardware you have in mind.

The closest you can get to capturing individual video frames would be the live view, using lvdump or lvdumpimg or the corresponding APIs. Beware the live view is low quality and has at least 10s of milliseconds uncertainty in the timing.
Don't forget what the H stands for.

 

Related Topics