Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

FlexMotion Header file warnings in VC++

Hi,
I've started programming my PCI-7334 Motion Controller Card but i get a warning as shown below for every FlexMotion Function. It all builds and works but i'm not sure why this is happening. I would like to get rid of the warnings if i could.
Anyone else had this happen to them?

.\.\flexmotn.h(156): warning #880: omission of explicit type is nonstandard ("int" assumed)
FLEXFUNC flex_config_axis(BOARD, u8 axis, u8 primaryFeedback, u8 secondaryFeedback,
0 Kudos
Message 1 of 3
(3,320 Views)
Which version of the NI-Motion driver are you using? Can you make sure that the same version is downloaded in the firmware files of your board? Also, have you checked the C examples that ship with the NI-Motion driver? This looks more like a problem with how the complier is interpreting our function definition than with the board itself. You can find your local examples in:

C:\Program Files\National Instruments\NI-Motion\FlexMotion\Examples\C

Can you please try to compile one of these examples and let us know if the problem persists?
0 Kudos
Message 2 of 3
(3,320 Views)
Yep, the examples seem to Compile OK without these warnings.
I don't understand what i've done different. I have declared the 'BoardID' as a u8 and the 'err' as an i16 (the same as the examples) These are the only two things common to all the commands.

I get the warning for every Flexmotion command, even ones i don't use in my program.

Your help is appreciated...
0 Kudos
Message 3 of 3
(3,320 Views)