<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi Bastien,<div class=""><br class=""></div><div class=""><br class=""></div><div class="">Sorry for the delay in my reply.</div><div class=""><br class=""></div><div class="">I understand how to use.</div><div class="">I think the technique is very usable.</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Magician</div><div class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">2018/02/28 20:01、Bastien Jacquet <<a href="mailto:bastien.jacquet@kitware.com" class="">bastien.jacquet@kitware.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hello,<br class=""><br class="">The script toggles the recording state after the desired waiting time.<div class="">Hence:<br class="">If you launch it from non-recording state, it will start recording after recordingTimeInMilliseconds.<div class="">If you launch it from recording state, it will stop recording after recordingTimeInMilliseconds.<br class=""><br class="">Best,</div><br class=""></div></div><div class="gmail_extra"><br clear="all" class=""><div class=""><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr" class=""><a href="https://www.linkedin.com/in/bastienjacquet" target="_blank" class="">Bastien Jacquet, PhD</a><br class="">Technical Leader - Computer Vision Team<br class=""><a href="http://www.kitware.eu/" target="_blank" class="">Kitware SAS</a><br class="">26 rue Louis Guérin - 69100 Villeurbanne - France<br class="">F: +33 (0)4.37.45.04.15</div></div></div>
<br class=""><div class="gmail_quote">On Tue, Feb 27, 2018 at 3:23 PM, Magician <span dir="ltr" class=""><<a href="mailto:info@paraview-expert.com" target="_blank" class="">info@paraview-expert.com</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word;line-break:after-white-space" class="">Hi Bastien,<div class=""><br class=""></div><div class=""><br class=""></div><div class="">I tried your script, but the recordingTimeInMilliseconds takes</div><div class="">waiting time ‘before' data logging.</div><div class="">I want to set data logging time (begin to end).</div><span class="HOEnZb"><font color="#888888" class=""><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Magician</div></font></span><div class=""><br class=""><div class=""><br class=""><blockquote type="cite" class=""><span class=""><div class="">2018/02/16 18:48、Bastien Jacquet <<a href="mailto:bastien.jacquet@kitware.com" target="_blank" class="">bastien.jacquet@kitware.com</a>> wrote:</div><br class="m_8076507689458688344Apple-interchange-newline"></span><div class=""><span class=""><div dir="ltr" class="">Sorry, I should have doubled checked<br class="">You need to use .trigger() instead of .toggle().<br class=""><span style="font-size:9.6px" class="">This is the code that works:</span><div class=""><font size="1" class=""><br class=""></font><div class=""><div class=""><div style="font-size:9.6px" class="">def myfunc():</div><div style="font-size:9.6px" class=""> vv.app.actions['actionRecord<wbr class="">'].<span style="font-size:small" class="">trigger</span>()</div><div style="font-size:9.6px" class=""> print ("Toggled recording")</div><div style="font-size:9.6px" class=""><br class=""></div><div style="font-size:9.6px" class=""><div class="">qq=QtCore.QTimer()</div><div class="">qq.setSingleShot(True)</div><div class="">qq.connect('timeout()',myfunc)</div></div><div style="font-size:9.6px" class="">recordingTimeInMilliseconds = 60 * 1000</div><div style="font-size:9.6px" class="">qq.start(recordingTimeInMillis<wbr class="">econds)</div></div></div><div class=""><br class="">Best,</div></div></div></span><div class="gmail_extra"><span class=""><br clear="all" class=""><div class=""><div class="m_8076507689458688344gmail_signature" data-smartmail="gmail_signature"><div dir="ltr" class=""><a href="https://www.linkedin.com/in/bastienjacquet" target="_blank" class="">Bastien Jacquet, PhD</a><br class="">Technical Leader - Computer Vision Team<br class=""><a href="http://www.kitware.eu/" target="_blank" class="">Kitware SAS</a><br class=""><a href="https://maps.google.com/?q=26+rue+Louis+Gu%C3%A9rin+-+69100+Villeurbanne+-+France&entry=gmail&source=g" class="">26 rue Louis Guérin - 69100 Villeurbanne - France</a><br class="">F: <a href="tel:+33%204%2037%2045%2004%2015" value="+33437450415" target="_blank" class="">+33 (0)4.37.45.04.15</a></div></div></div>
<br class=""></span><div class="gmail_quote"><span class="">On Thu, Feb 15, 2018 at 9:36 PM, Magician <span dir="ltr" class=""><<a href="mailto:info@paraview-expert.com" target="_blank" class="">info@paraview-expert.com</a>></span> wrote:<br class=""></span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word;line-break:after-white-space" class=""><span class="">Hi Bastien,<div class=""><br class=""></div><div class=""><br class=""></div><div class="">Thanks for your advice.</div><div class="">I tried the script and the button is toggled on the GUI, but no data is recorded.</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Magician</div></span><div class=""><div class="h5"><div class=""><br class=""><div class=""><br class=""><blockquote type="cite" class=""><div class="">2018/02/15 3:03、Bastien Jacquet <<a href="mailto:bastien.jacquet@kitware.com" target="_blank" class="">bastien.jacquet@kitware.com</a>> wrote:</div><div class=""><div class="m_8076507689458688344h5"><br class="m_8076507689458688344m_4125764989123580841Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hello Magician,<br class=""><br class="">I think you can use Python, and PythonQt to make a fake "record" button press, after the desired amount of time.<div class="">Just try this:</div><div class="">def myfunc():</div><div class=""> vv.app.actions['actionRecord<wbr class="">'].toggle()</div><div class=""> print ("Toggled recording")</div><div class=""><br class=""></div><div class=""><div class="">qq=QtCore.QTimer()</div><div class="">qq.setSingleShot(True)</div><div class="">qq.connect('timeout()',myfunc)</div></div><div class="">recordingTimeInMilliseconds = 60 * 1000</div><div class="">qq.start(recordingTimeInMillis<wbr class="">econds)</div><div class=""><br class=""></div><div class="">Hope this helps,</div><div class="gmail_extra"><br clear="all" class=""><div class=""><div class="m_8076507689458688344m_4125764989123580841gmail_signature"><div dir="ltr" class=""><a href="https://www.linkedin.com/in/bastienjacquet" target="_blank" class="">Bastien Jacquet, PhD</a><br class="">VeloView Lead Developer - Computer Vision Team<br class=""><a href="http://www.kitware.eu/" target="_blank" class="">Kitware SAS</a><br class=""><a href="https://maps.google.com/?q=26+rue+Louis+Gu%C3%A9rin+-+69100+Villeurbanne+-+France&entry=gmail&source=g" target="_blank" class="">26 rue Louis Guérin - 69100 Villeurbanne - France</a><br class="">F: <a href="tel:+33%204%2037%2045%2004%2015" value="+33437450415" target="_blank" class="">+33 (0)4.37.45.04.15</a></div></div></div>
<br class=""><div class="gmail_quote">On Sun, Feb 11, 2018 at 3:55 PM, Magician <span dir="ltr" class=""><<a href="mailto:info@paraview-expert.com" target="_blank" class="">info@paraview-expert.com</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi all,<br class="">
<br class="">
<br class="">
I’m using VeloView 3.5.0 (Windows 64bit) and recording VLP-16’s data packets.<br class="">
I want to set the total recording time or stopping time, but VeloView have no option to do it on the GUI.<br class="">
<br class="">
Is there a good way? (ex. using Python)<br class="">
<br class="">
<br class="">
Magician<br class="">
<a href="http://www.paraview-expert.com/" rel="noreferrer" target="_blank" class="">http://www.paraview-expert.com<wbr class="">/</a><br class="">
______________________________<wbr class="">_________________<br class="">
Powered by <a href="http://www.kitware.com/" rel="noreferrer" target="_blank" class="">www.kitware.com</a><br class="">
<br class="">
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank" class="">http://www.kitware.com/opensou<wbr class="">rce/opensource.html</a><br class="">
<br class="">
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" rel="noreferrer" target="_blank" class="">http://paraview.org/Wiki/ParaV<wbr class="">iew</a><br class="">
<br class="">
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" rel="noreferrer" target="_blank" class="">http://markmail.org/search/?q=<wbr class="">ParaView</a><br class="">
<br class="">
Follow this link to subscribe/unsubscribe:<br class="">
<a href="https://public.kitware.com/mailman/listinfo/paraview" rel="noreferrer" target="_blank" class="">https://public.kitware.com/mai<wbr class="">lman/listinfo/paraview</a><br class="">
</blockquote></div><br class=""></div></div>
</div></div></div></blockquote></div><br class=""></div></div></div></div></blockquote></div><br class=""></div>
</div></blockquote></div><br class=""></div></div></blockquote></div><br class=""></div>
</div></blockquote></div><br class=""></div></body></html>