<div dir="ltr">Sorry, I should have doubled checked<br>You need to use .trigger() instead of .toggle().<br><span style="font-size:9.6px">This is the code that works:</span><div><font size="1"><br></font><div><div><div style="font-size:9.6px">def myfunc():</div><div style="font-size:9.6px"> vv.app.actions['<wbr>actionRecord'].<span style="font-size:small">trigger</span>()</div><div style="font-size:9.6px"> print ("Toggled recording")</div><div style="font-size:9.6px"><br></div><div style="font-size:9.6px"><div>qq=QtCore.QTimer()</div><div>qq.setSingleShot(True)</div><div>qq.connect('timeout()',myfunc)</div></div><div style="font-size:9.6px">recordingTimeInMilliseconds = 60 * 1000</div><div style="font-size:9.6px">qq.start(<wbr>recordingTimeInMilliseconds)</div></div></div><div><br>Best,</div></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><a href="https://www.linkedin.com/in/bastienjacquet" target="_blank">Bastien Jacquet, PhD</a><br>Technical Leader - Computer Vision Team<br><a href="http://www.kitware.eu" target="_blank">Kitware SAS</a><br>26 rue Louis Guérin - 69100 Villeurbanne - France<br>F: +33 (0)4.37.45.04.15</div></div></div>
<br><div class="gmail_quote">On Thu, Feb 15, 2018 at 9:36 PM, Magician <span dir="ltr"><<a href="mailto:info@paraview-expert.com" target="_blank">info@paraview-expert.com</a>></span> wrote:<br><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">Hi Bastien,<div><br></div><div><br></div><div>Thanks for your advice.</div><div>I tried the script and the button is toggled on the GUI, but no data is recorded.</div><div><br></div><div><br></div><div>Magician</div><div><br><div><br><blockquote type="cite"><div>2018/02/15 3:03、Bastien Jacquet <<a href="mailto:bastien.jacquet@kitware.com" target="_blank">bastien.jacquet@kitware.com</a>><wbr>のメール:</div><div><div class="h5"><br class="m_4125764989123580841Apple-interchange-newline"><div><div dir="ltr">Hello Magician,<br><br>I think you can use Python, and PythonQt to make a fake "record" button press, after the desired amount of time.<div>Just try this:</div><div>def myfunc():</div><div> vv.app.actions['<wbr>actionRecord'].toggle()</div><div> print ("Toggled recording")</div><div><br></div><div><div>qq=QtCore.QTimer()</div><div>qq.setSingleShot(True)</div><div>qq.connect('timeout()',myfunc)</div></div><div>recordingTimeInMilliseconds = 60 * 1000</div><div>qq.start(<wbr>recordingTimeInMilliseconds)</div><div><br></div><div>Hope this helps,</div><div class="gmail_extra"><br clear="all"><div><div class="m_4125764989123580841gmail_signature"><div dir="ltr"><a href="https://www.linkedin.com/in/bastienjacquet" target="_blank">Bastien Jacquet, PhD</a><br>VeloView Lead Developer - Computer Vision Team<br><a href="http://www.kitware.eu/" target="_blank">Kitware SAS</a><br><a href="https://maps.google.com/?q=26+rue+Louis+Gu%C3%A9rin+-+69100+Villeurbanne+-+France&entry=gmail&source=g">26 rue Louis Guérin - 69100 Villeurbanne - France</a><br>F: <a href="tel:+33%204%2037%2045%2004%2015" value="+33437450415" target="_blank">+33 (0)4.37.45.04.15</a></div></div></div>
<br><div class="gmail_quote">On Sun, Feb 11, 2018 at 3:55 PM, Magician <span dir="ltr"><<a href="mailto:info@paraview-expert.com" target="_blank">info@paraview-expert.com</a>></span> wrote:<br><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>
<br>
<br>
I’m using VeloView 3.5.0 (Windows 64bit) and recording VLP-16’s data packets.<br>
I want to set the total recording time or stopping time, but VeloView have no option to do it on the GUI.<br>
<br>
Is there a good way? (ex. using Python)<br>
<br>
<br>
Magician<br>
<a href="http://www.paraview-expert.com/" rel="noreferrer" target="_blank">http://www.paraview-expert.com<wbr>/</a><br>
______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com/" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensou<wbr>rce/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" rel="noreferrer" target="_blank">http://paraview.org/Wiki/ParaV<wbr>iew</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://public.kitware.com/mailman/listinfo/paraview" rel="noreferrer" target="_blank">https://public.kitware.com/mai<wbr>lman/listinfo/paraview</a><br>
</blockquote></div><br></div></div>
</div></div></div></blockquote></div><br></div></div></blockquote></div><br></div>