How to name vide files by acquisition start time?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
IJ
el 23 de Feb. de 2015
Comentada: Stephen23
el 23 de Feb. de 2015
I want to record a number of videos using a loop, and use the start time of each recording as its file name, eg 123050 for 12:30:50. Is there any way I can do that in matlab?
0 comentarios
Respuesta aceptada
Stephen23
el 23 de Feb. de 2015
Editada: Stephen23
el 23 de Feb. de 2015
Use now or clock to grab the time value, and then convert this to a string using datestr. You can use datestr's optional formatOut argument to specify how you want the string to look like:
datestr(clock,12)
or
datestr(clock,'HH:MM:SS')
should work
2 comentarios
Stephen23
el 23 de Feb. de 2015
That depends entirely on which time value you want to use: at the trigger time, the begin or the end of the video sequence? You can try this yourself: try putting that code before start(vid), or before wait or after wait, depending on what time value you are interested in using.
Más respuestas (0)
Ver también
Categorías
Más información sobre GigE Vision Hardware en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!