On Nov 6 2013 3:38 AM, Michael Haberler wrote: > Am 06.11.2013 um 10:59 schrieb andy pugh <[email protected]>: > >> On 6 November 2013 06:27, Michael Haberler <[email protected]> >> wrote: >>> - on startup, rather than using the hal Python comp to connect >>> directly to HAL, collect all pin names, types and direction, and pass >>> this list to an HALrcomp API class instance; this would be the basis >>> for the initial bind operation >> >> Rather than explicitly add new pins, would it be practical to change >> the function of the "net" command to provisionally create/register >> any >> pins that don't exist when it is called? > > hm, interesting idea; I need to think this through > > what once could do is say state in halcmd > > autocreate gladevcp.* > > which would cause net's to gladevcp.* not fail but rather put them in > a dormant state, and have halserver gooble those up and create the > unbound component around them > > the key problem I see with this idea is: one cannot determine the pin > direction just because the pin is named in a net statement; there > might be several net commands to link more pins to the same signal > and > one would have to look at the complete set > > even if you have the complete net - pins and the signal, it isnt a > valid conclusion to draw that if all other pins except the gladevcp.* > pin are input, then the gladevcp.* pin must be output - it might have > been intended as input, but the whole signal/pin net left unconnected > to a writer for now > > both pro-forma declaration by 'newpin foo in float' and remote > creation by the bind message handle this case unambiguously
This assumes that pins are either input, or output. Have you ever played with tristate logic? Is it even appropriate to think of tristate logic in HAL when considering a distributed system? ------------------------------------------------------------------------------ November Webinars for C, C++, Fortran Developers Accelerate application performance with scalable programming models. Explore techniques for threading, error checking, porting, and tuning. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk _______________________________________________ Emc-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-developers
