Dynomotion

Group: DynoMotion Message: 9809 From: Wayne Holt Date: 7/18/2014
Subject: KFlop compile error that's frustrating me
Hey Tom,

Hope you don't mind the direct email.  If so, let me know and I'll post in the group/forums.  I'm trying to compile the HomeMach3Kstep.c file that is provided with the KMotion software.  I'm getting a compile error at the point in the program where you save your current limit switch settings and/or re-establish your old limit switch settings.  The compiler is giving me a "pointer expected" error anywhere the "->" operator is used.  Please see the attached screenshot.  Any help would be much appreciated.  BTW, I'm running Windows 8.1 64 bit if that makes any difference.

Thanks

Wayne Holt
 
  @@attachment@@
Group: DynoMotion Message: 9810 From: Tom Kerekes Date: 7/18/2014
Subject: Re: KFlop compile error that's frustrating me [1 Attachment]

Hi Wayne,

"chan[axis]" is an axis channel structure.  To get an element of the structure in C use the "." operator.

SaveLimits = chan[axis].LimitSwitchOptions;

This is different from when you have pointer to a structure.  In that case you would use the "->" operator.

HTH
Regards
TK



From: "Wayne Holt bwholt@... [DynoMotion]" <DynoMotion@yahoogroups.com>
To: "Tom Kerekes tk@... [DynoMotion]" <DynoMotion@yahoogroups.com>
Sent: Friday, July 18, 2014 2:33 PM
Subject: [DynoMotion] KFlop compile error that's frustrating me [1 Attachment]

 
[Attachment(s) from Wayne Holt included below]
Hey Tom,

Hope you don't mind the direct email.  If so, let me know and I'll post in the group/forums.  I'm trying to compile the HomeMach3Kstep.c file that is provided with the KMotion software.  I'm getting a compile error at the point in the program where you save your current limit switch settings and/or re-establish your old limit switch settings.  The compiler is giving me a "pointer expected" error anywhere the "->" operator is used.  Please see the attached screenshot.  Any help would be much appreciated.  BTW, I'm running Windows 8.1 64 bit if that makes any difference.

Thanks

Wayne Holt