Re: [Paraview] Set total recording time in VeloView

2018-02-27 Thread Magician
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  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 
> Technical Leader - Computer Vision Team
> Kitware SAS 
> 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  > 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 > > 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 
>> VeloView Lead Developer - Computer Vision Team
>> Kitware SAS 
>> 26 rue Louis Guérin - 69100 Villeurbanne - France 
>> 
>> F: +33 (0)4.37.45.04.15 
>> On Sun, Feb 11, 2018 at 3:55 PM, Magician > > 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/ 
>> ___
>> 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 
>> 
>> 
> 
> 

___
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


Re: [Paraview] Set total recording time in VeloView

2018-02-16 Thread Bastien Jacquet
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 
Technical Leader - Computer Vision Team
Kitware SAS 
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  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 のメール:
>
> 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 
> VeloView Lead Developer - Computer Vision Team
> Kitware SAS 
> 26 rue Louis Guérin - 69100 Villeurbanne - France
> 
> F: +33 (0)4.37.45.04.15 <+33%204%2037%2045%2004%2015>
>
> On Sun, Feb 11, 2018 at 3:55 PM, Magician 
> 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/
>> ___
>> 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
>>
>
>
>
___
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