How to right sequence run - pause -stop

More
12 Jan 2011 12:56 #6647 by aike
Here it is!

File Attachment:

File Name: IT42_AIKE.zip
File Size:9 KB
Attachments:

Please Log in or Create an account to join the conversation.

More
12 Jan 2011 14:58 #6648 by BigJohnT
I see the problem lol, your config is so big it won't fit on my screen... Also it is a mesa config so I can't really run it.

John

Please Log in or Create an account to join the conversation.

More
27 Apr 2011 11:00 - 27 Apr 2011 11:03 #9372 by piasdom
i got the below to work, but it's slow to react. i click the button and it pauses
- click again and it resumes.
i found -- if i click fast one the first click - it pauses(slow it doesn't)
click fast on second click and no reaction(slow click - resumes)
i think when clicking(first) slow it's going pause then resume in the one click :)
hope this helps.


net pause-btn and2.5.in0 == and2.5.in1
net pause-btn pyvcp.prog-pause == halui.program.pause
net btn-paused halui.program.resume == and2.5.out


BigJohnT - - i used your example to get this. didn't know what this was.
hm2_5i20.0.gpio.031.in_not


net program-run-btn halui.mode.auto <= hm2_5i20.0.gpio.031.in_not
net program-run-btn and2.2.in0
net program-is-auto and2.2.in1 <= halui.mode.is-auto
net remote-prg-run halui.program.run <= and2.2.out
Last edit: 27 Apr 2011 11:03 by piasdom.

Please Log in or Create an account to join the conversation.

More
27 Apr 2011 11:12 #9375 by BigJohnT
piasdom wrote:

BigJohnT - - i used your example to get this. didn't know what this was.
hm2_5i20.0.gpio.031.in_not


That is an input pin for a Mesa 5i20 card.

The response speed of the GUI depends on the load on the processor as far as I know...

Your code appears to be turning on both halui.program.pause and halui.program.resume at the same time.

John

Please Log in or Create an account to join the conversation.

More
27 Apr 2011 11:45 #9378 by piasdom
i was trying to create a button that when pressed once would
pause the program and pressed again would resume it.

Please Log in or Create an account to join the conversation.

More
27 Apr 2011 11:49 #9379 by BigJohnT
I don't think I've ever got that to work so I'll be watching to see how you do it.

John

Please Log in or Create an account to join the conversation.

More
27 Apr 2011 12:29 #9383 by andypugh

Please Log in or Create an account to join the conversation.

More
27 Apr 2011 12:31 - 27 Apr 2011 12:32 #9384 by piasdom
it works now. i just have to first click(fast) and second click(slow)
i hold the mouse btn down longer on the second click.
not sure how to put a delay in there and don't know why it needs that.

works that way every time.
Last edit: 27 Apr 2011 12:32 by piasdom.

Please Log in or Create an account to join the conversation.

More
27 Apr 2011 12:47 #9385 by piasdom
thanks andypugh,
how do i name the variable ? i get "empty variable name"
from site
loadrt toggle [count=N|names=name1[,name2...]]

loadrt toggle [count=2|names=stop[,start]]

Please Log in or Create an account to join the conversation.

More
27 Apr 2011 13:05 #9387 by piasdom
doesn't like this either :)
(assuming i use addf, not setp or something i never used:)

loadrt toggle count = 2
addf toggle.1 servo-thread

Please Log in or Create an account to join the conversation.

Time to create page: 0.083 seconds
Powered by Kunena Forum