[Paraview] Set total recording time in VeloView

Magician info at paraview-expert.com
Tue Feb 27 09:23:40 EST 2018


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 <bastien.jacquet at kitware.com> 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
> F: +33 (0)4.37.45.04.15
> 
> On Thu, Feb 15, 2018 at 9:36 PM, Magician <info at paraview-expert.com <mailto:info at paraview-expert.com>> 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 <bastien.jacquet at kitware.com <mailto:bastien.jacquet at kitware.com>> 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 <info at paraview-expert.com <mailto:info at paraview-expert.com>> 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>
>> 
> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://public.kitware.com/pipermail/paraview/attachments/20180227/317821c0/attachment.html>


More information about the ParaView mailing list