u32 image

More
11 Jul 2011 19:34 #11429 by andypugh
Replied by andypugh on topic Re:u32 image
piasdom wrote:

i've got the below to half way work. i click and hold the mouse button and the image
changes to the second gif. i let go and it goes back the the first gif.

Well, yes, it will. A bit (which a button is) can only have two values, so all that conv_bit_u32 can do is convert 0 to 00000000000000000000000 and 1 to 000000000000000000000001

should i try a toggle or and2 in the net

Feel free, but have you thought through what they will do?

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

More
11 Jul 2011 19:44 #11431 by andypugh
Replied by andypugh on topic Re:u32 image
Actually, looking through the documentation (which you could do too, you know) I found
www.linuxcnc.org/docview/html/man/man9/updown.9.html

So, that will do what you want.

Setp the max parameter to the number of images, setp wrap to true, net the pyvcp button to the countup pin, net the output pin to the picture select pin.

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

More
11 Jul 2011 20:52 - 11 Jul 2011 21:11 #11432 by piasdom
Replied by piasdom on topic Re:u32 image
i'm sorry, but i'm not trying to get you to do any of this for me and thanks
for giving me this info. but i think i'm not reading the same docs :)
as i never seen any of these before. i don't mind reading thru these
or any info i get from this forum. and what i understood from the doc
i did read, what i had should have worked as i use the example
in the doc.(www.linuxcnc.org/docview/html/hal_pyvcp.html#r1_6_6).
in the example, it only shows what i used. but i'll continue reading.
i appreciate any help !

Thank andy !
Last edit: 11 Jul 2011 21:11 by piasdom.

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

More
11 Jul 2011 21:22 - 12 Jul 2011 10:18 #11434 by piasdom
Replied by piasdom on topic Re:u32 image
this is a better doc, was i suppose to be reading this one all this time ?:)

www.linuxcnc.org/docview/2.5/html/hal/ba..._a_id_sec_hal_data_a
Last edit: 12 Jul 2011 10:18 by piasdom.

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

Time to create page: 0.175 seconds
Powered by Kunena Forum