i am trying to control a stepper motor in a windows dll by using functions. The library is loaded with loadlibrary('USMCDLL','USMCDLL.h'); and i can also look up the functions with libfunctionsview('USMCDLL'); Now i have to call the Init function as the user manual says:
The USMC_Init function initializes dll and/or searches for connected devices. It must be called before any other function of the dll.
DWORD USMC_Init( USMC_Devices &Str );
-> I tried it with the libstruct function - explained in the external interface in Matlab: and than try to call the Init function with calllib.
I get always the value 4.294967295000000e+09 as return and I don't know what these means. When i try to call other functions to move the stepper motor it does not work. I think the stepper is not initialized. I don't know what i am doing wrong. Thanks for any help