Hi Bastien,
Sorry for the delay in my reply. I understand how to use. I think the technique is very usable. Magician > 2018/02/28 20:01、Bastien Jacquet <[email protected]> wrote: > > Hello, > > The script toggles the recording state after the desired waiting time. > Hence: > If you launch it from non-recording state, it will start recording after > recordingTimeInMilliseconds. > If you launch it from recording state, it will stop recording after > recordingTimeInMilliseconds. > > Best, > > > Bastien Jacquet, PhD <https://www.linkedin.com/in/bastienjacquet> > Technical Leader - Computer Vision Team > Kitware SAS <http://www.kitware.eu/> > 26 rue Louis Guérin - 69100 Villeurbanne - France > F: +33 (0)4.37.45.04.15 > > On Tue, Feb 27, 2018 at 3:23 PM, Magician <[email protected] > <mailto:[email protected]>> wrote: > Hi Bastien, > > > I tried your script, but the recordingTimeInMilliseconds takes > waiting time ‘before' data logging. > I want to set data logging time (begin to end). > > > Magician > > >> 2018/02/16 18:48、Bastien Jacquet <[email protected] >> <mailto:[email protected]>> wrote: >> >> Sorry, I should have doubled checked >> You need to use .trigger() instead of .toggle(). >> This is the code that works: >> >> def myfunc(): >> vv.app.actions['actionRecord'].trigger() >> print ("Toggled recording") >> >> qq=QtCore.QTimer() >> qq.setSingleShot(True) >> qq.connect('timeout()',myfunc) >> recordingTimeInMilliseconds = 60 * 1000 >> qq.start(recordingTimeInMilliseconds) >> >> Best, >> >> Bastien Jacquet, PhD <https://www.linkedin.com/in/bastienjacquet> >> Technical Leader - Computer Vision Team >> Kitware SAS <http://www.kitware.eu/> >> 26 rue Louis Guérin - 69100 Villeurbanne - France >> <https://maps.google.com/?q=26+rue+Louis+Gu%C3%A9rin+-+69100+Villeurbanne+-+France&entry=gmail&source=g> >> F: +33 (0)4.37.45.04.15 <tel:+33%204%2037%2045%2004%2015> >> On Thu, Feb 15, 2018 at 9:36 PM, Magician <[email protected] >> <mailto:[email protected]>> wrote: >> Hi Bastien, >> >> >> Thanks for your advice. >> I tried the script and the button is toggled on the GUI, but no data is >> recorded. >> >> >> Magician >> >> >>> 2018/02/15 3:03、Bastien Jacquet <[email protected] >>> <mailto:[email protected]>> wrote: >>> >>> Hello Magician, >>> >>> I think you can use Python, and PythonQt to make a fake "record" button >>> press, after the desired amount of time. >>> Just try this: >>> def myfunc(): >>> vv.app.actions['actionRecord'].toggle() >>> print ("Toggled recording") >>> >>> qq=QtCore.QTimer() >>> qq.setSingleShot(True) >>> qq.connect('timeout()',myfunc) >>> recordingTimeInMilliseconds = 60 * 1000 >>> qq.start(recordingTimeInMilliseconds) >>> >>> Hope this helps, >>> >>> Bastien Jacquet, PhD <https://www.linkedin.com/in/bastienjacquet> >>> VeloView Lead Developer - Computer Vision Team >>> Kitware SAS <http://www.kitware.eu/> >>> 26 rue Louis Guérin - 69100 Villeurbanne - France >>> <https://maps.google.com/?q=26+rue+Louis+Gu%C3%A9rin+-+69100+Villeurbanne+-+France&entry=gmail&source=g> >>> F: +33 (0)4.37.45.04.15 <tel:+33%204%2037%2045%2004%2015> >>> On Sun, Feb 11, 2018 at 3:55 PM, Magician <[email protected] >>> <mailto:[email protected]>> wrote: >>> Hi all, >>> >>> >>> I’m using VeloView 3.5.0 (Windows 64bit) and recording VLP-16’s data >>> packets. >>> I want to set the total recording time or stopping time, but VeloView have >>> no option to do it on the GUI. >>> >>> Is there a good way? (ex. using Python) >>> >>> >>> Magician >>> http://www.paraview-expert.com/ <http://www.paraview-expert.com/> >>> _______________________________________________ >>> Powered by www.kitware.com <http://www.kitware.com/> >>> >>> Visit other Kitware open-source projects at >>> http://www.kitware.com/opensource/opensource.html >>> <http://www.kitware.com/opensource/opensource.html> >>> >>> Please keep messages on-topic and check the ParaView Wiki at: >>> http://paraview.org/Wiki/ParaView <http://paraview.org/Wiki/ParaView> >>> >>> Search the list archives at: http://markmail.org/search/?q=ParaView >>> <http://markmail.org/search/?q=ParaView> >>> >>> Follow this link to subscribe/unsubscribe: >>> https://public.kitware.com/mailman/listinfo/paraview >>> <https://public.kitware.com/mailman/listinfo/paraview> >>> >> >> > >
_______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: https://public.kitware.com/mailman/listinfo/paraview
