Il giorno dom, 01/01/2012 alle 16.38 +0100, Spiderdab ha scritto: > mmm the object is not so clear, but my first question of 2012 is: > Using gladevcp I want to write a value on a hal_spinbutton, and assign > to an hal pin (in my case a value for my kins) only when i push a > button. > As there isn't an if statement as an hal rt component, how can i write > this logic? I really can't realize.. maybe using sample_hold? (but i > tried and it doesn't seem to work..) > Ok i realized that the component 'sample_hold' do what i want if i invert the hold_pin (sampling button) with a 'not'.
I have another obstacle now. The pin I want to change is a dimension pin of my tetrapodkins, normally setup into the main .hal file. if i disable there its init and do it by hand into the hal configuration window, it changes without problems. But i can't using the sample_hold function. I noticed that output of sample_hold is a s32, so i converted with conv-s32-float to a float to match the kins input. No way, it results in 'invalid argument'. Do you know why? Thanks, Davide. > any help, as always, is really appreciated. > > have a nice new sun cicle, Davide! > ------------------------------------------------------------------------------ Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex infrastructure or vast IT resources to deliver seamless, secure access to virtual desktops. With this all-in-one solution, easily deploy virtual desktops for less than the cost of PCs and save 60% on VDI infrastructure costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users