File template provided by Arduino

Use this forum to request new features or suggest modifications to existing features
Post Reply
bela
Posts: 4
Joined: Mon Jan 23, 2017 2:49 pm

File template provided by Arduino

Post by bela » Mon Jan 23, 2017 3:53 pm

Hi Istvan,

I am evaluating digicamcontrol for capturing images in an experiment under different conditions.
The conditions would change dynamically during the experiment and an automated process would control capturing the images.
To identify the conditions on the recorded images the simplest method would use file names reflecting of the type of condition.

Currently it is possible to change the file name of the images in the File Name Template editor.
A large number of templates are selectable form the menu.
What I'm missing is a template consisting of a string provided by an Arduino.

It could be implemented as follows:
1. After capturing an image digicamcontrol would send a get_file_name_template request to Arduino.
2. Arduino would send a string back to digicamcontrol
3. The string sent by Arduino could be used as a file name template with any combination of existing templates.

This way a dynamically changing file name could be generated reflecting the conditions during capturing the image, e.g., [Arduino String]_[Camera Counter 5 digit]

This feature would most probably useful for other users too.

Kind regards,
Bela

File template provided by Arduino

Advertisment
 

Duka Istvan
Posts: 684
Joined: Sat Oct 03, 2015 7:57 pm

Re: File template provided by Arduino

Post by Duka Istvan » Mon Jan 23, 2017 9:14 pm

Yes this can be added, i added to my todo list, will be included in the next beta release

bela
Posts: 4
Joined: Mon Jan 23, 2017 2:49 pm

Re: File template provided by Arduino

Post by bela » Tue Jan 24, 2017 10:00 am

Dear Istvan,

Thanks for the fast response. I hope to see this feature in the next release.

I have not found the serial communication parameter settings for Arduinos in the documentation.
Are these missing or did I overlooked something?

Baudrate = ?
Number of data bits = probably 8
Number of stop bits = probably 1
Parity bit = probably no
Protocol = probably no protocol

Kind regards,
Bela

Duka Istvan
Posts: 684
Joined: Sat Oct 03, 2015 7:57 pm

Re: File template provided by Arduino

Post by Duka Istvan » Tue Jan 24, 2017 10:50 am

Baudrate = 9600

Duka Istvan
Posts: 684
Joined: Sat Oct 03, 2015 7:57 pm

Re: File template provided by Arduino

Post by Duka Istvan » Sun Jan 29, 2017 11:26 am

This features will be used in same time with Arduino tool plugin ?

bela
Posts: 4
Joined: Mon Jan 23, 2017 2:49 pm

Re: File template provided by Arduino

Post by bela » Fri Jul 21, 2017 5:35 pm

Hi Istvan,

I'm just realized, that you already implemented the [ArduinoLabel] feature in V2.0.72.0 of digiCamControl.
Thank for implementing this feature.
Unfortunaltely, it is not working yet. There is probably a minor bug in your program.

I have the following setup:
[AdruinoLabel] is enabled in File template editor.
Port is set to Com4
The "File name template command" is set to "fTemp"

Bug report:

If the "Active" checkbox in Plugins->Tools->Arduino (Serial) is uncecked:
1. The "fTemp" string will be sent to Com4
2. No response from Arduino is visible in MONITOR on the bottom of the Window
3. Captured images will not be saved in image directory

If the "Active" checkbox in Plugins->Tools->Arduino (Serial) is cecked:
1. The "fTemp" string will not be sent to Com4
2. A "Select_Image" string sent by digiCamContlol and an Input_Low or Input_High
sent by the Arduino will appear in a MONITOR on the bottom of the Window.
(My Arduino test program send these strings depending of the state of digital
input pin 8 in response to "Select_Image". This feature was implemented only for debugging.)
3. Images will be saved in image directory, the file names are not beginning with the string
provided by Arduino, but with "[ArduinoLabel]"

You'll find my Arduino test program in the attachment. I had to change the extension from .ino to *.c, because is was not possible to attach a file with *.ino extension.

Best regards / Udvozlettel,

Bela
Attachments
digiCamControl.c
(1.66 KiB) Downloaded 481 times

Post Reply