Take a look at haltcl - HAL files written in TCL On 01/28/2016 04:54 AM, Marius Alksnys wrote: > How to make one LinuxCNC config suitable in both cases: real and sim? > I face this often trying to config, tune, program machines being at the > field and away. > > One example could be alter start of lines in hal files like: > > # Will work only with real hardware: > [SIM](REAL) net some-signal my-hardware.port.pin... > > # Will work only in sim: > [SIM](SIM) net some-signal simulated-feature.pin... > > And in ini file, [SIM] section specify skipping depending on scenario: > > For simulation: > [SIM] > REAL = skip > SIM = > > For real hardware: > [SIM] > REAL = > SIM = skip > > The problems I face now that there is no such dedicated halcmd command > to skip a line (or I can't find it). Comment symbol is not accepted too. > And I don't know a way to give an empty line. Maybe this could be easily > implemented?.. > > What I tried and works: > > [SIM] > REAL = show param > > It would be even better to be able to skip from the middle of the hal line. > More ideas: > use exit > use IF or GOTO in HAL files > > Your thoughts? > > > ------------------------------------------------------------------------------ > Site24x7 APM Insight: Get Deep Visibility into Application Performance > APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month > Monitor end-to-end web transactions and take corrective actions now > Troubleshoot faster and improve end-user experience. Signup Now! > http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140 > _______________________________________________ > Emc-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/emc-users >
------------------------------------------------------------------------------ Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now! http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140 _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
