Hey guys

I'm having problems with coding a testpanel for mesa boards for pncconf.
I'm hoping someone could help.

Background:
I cobbled together a testpanel routine that uses a custom pygtk widget
(for LEDs),buttons and displays for switches and encoder etc simular to
pyvcp except that it is configurable at run time to what ever the user
has chosen as far as firmware and components are concerned.
In that routine I create a HAL component and create pins using the
imported python module hal.
After one configures the mesa page then presses the testpanel button,
The hal environment is started, threads and mesa are loaded then the panel 
is called. after the panel returns the signals are connected.

The problems:
#1
Some of the last signals are not always connected. 
Eventually in the terminal (I think when I close the test panel)
HAL complains of not finding such a pin name. but it is there. Usually this is 
the last pin or two but sometimes the last 6 or so. The amounts SEEMS to
depend on how the panel is configured but I can not find a repeatable 
correlation. If I have two mesa boards then its the last pins on the second
mesa board that don't connect. Overall this sounds like a race condition
and I have tried putting sleep commands here and there, but no help.
Otherwise the buttons, encoder counts, and LEDs all work fine, besides
the ones not connected. 

#2
if I open the testpanel then close and open again I get a segmentation crash.
this is when the hal module is called and the component is created.
ahh but here is the kicker! If I change one (or more) pins from input to output 
or vice versa no crash! and after that you can change it back and no crash!

the panel code starts at line 5452
the signal connections  start at 3114

I certainly open to ideas or help!


I originaly used pyvcp for a test panel, creating a panel that held all possible
components.
That was when I only supported the 5i20, now when supporting multiple boards
and firmwares having all the components on one panel is just not practical.

Chris M



                                          
_________________________________________________________________

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to