Re: [Emc-developers] having problem with loadrt options

2012-01-29 Thread andy pugh
On 29 January 2012 04:50, Jon Elson el...@pico-systems.com wrote: If you request both extradac and extradout it gives a specific message for that from line 637. Is the problem that line 642 is an 'else if', so isn't run if any of the other 'else if's are true? ie, else if ( need_extra_dac) is

Re: [Emc-developers] having problem with loadrt options

2012-01-29 Thread Jon Elson
Sebastian Kuzminsky wrote: The long if/elseif statement that begins on line 635 seems wrong to me. If need_extra_dac is true, then the following else if statements won't be checked, is that what you want? Shouldn't they be independent, with the need_* dependencies checked explicitly at

Re: [Emc-developers] having problem with loadrt options

2012-01-29 Thread Jon Elson
andy pugh wrote: On 29 January 2012 04:50, Jon Elson el...@pico-systems.com wrote: If you request both extradac and extradout it gives a specific message for that from line 637. Is the problem that line 642 is an 'else if', so isn't run if any of the other 'else if's are true?

Re: [Emc-developers] having problem with loadrt options

2012-01-29 Thread Jon Elson
Right, the other two options are mutually exclusive, so an else if is appropriate. The timestamp is not SUPPOSED to be mutually exclusive, but this code makes it so. Thanks! Thanks, guys! Sometimes you can stare at a problem, know exactly where the trouble is, yet not see exactly what

[Emc-developers] having problem with loadrt options

2012-01-28 Thread Jon Elson
Hello, all, I have just discovered a bug in the 2.5 hal/drivers/hal_ppmc.c driver. There are several optional features that are activated by options on the loadrt line. These are the extradac=0x00 and the timestamp=0x00 options. They appear to work separately, but when they both appear on the

Re: [Emc-developers] having problem with loadrt options

2012-01-28 Thread Kim Kirwan
Hi Jon, A UPC board, this is a Universal PWM/Servo Controller? So a PPMC setup would not be of any help on this problem? Just trying to offer help if I can, but no UPC here. Kim On 01/28/2012 10:50 PM, Jon Elson wrote: Hello, all, I have just discovered a bug in the 2.5

Re: [Emc-developers] having problem with loadrt options

2012-01-28 Thread Jon Elson
Kim Kirwan wrote: Hi Jon, A UPC board, this is a Universal PWM/Servo Controller? So a PPMC setup would not be of any help on this problem? Just trying to offer help if I can, but no UPC here. Nope, a PPMC doesn't have the spindle DAC option, and at least so far I have not added the

Re: [Emc-developers] having problem with loadrt options

2012-01-28 Thread Sebastian Kuzminsky
On 01/28/2012 09:50 PM, Jon Elson wrote: I have just discovered a bug in the 2.5 hal/drivers/hal_ppmc.c driver. There are several optional features that are activated by options on the loadrt line. These are the extradac=0x00 and the timestamp=0x00 options. They appear to work separately, but