Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

7344 stepper initialization with Visual Basic?

How do I code the stepper initialization for a 7344 motion board? The documentation says to pass the name of configurtion file terminated by a NULL. I can't get it to work?
0 Kudos
Message 1 of 3
(3,402 Views)
You are probably calling the function correctly, however there the .bas file with the declaration of the initialization function is probably pointing at the wrong dll. Open up the .bas (C:\Program Files\National Instruments\Motion\FlexMotion\Include\FlexMotn.bas) and change declaration for the function flex_initialize_controller to point to "FlexMotion32.dll" instead of "Flex32.dll". If that already points to the correct dll then you might consider going to www.ni.com/ask and create a phone support request so that we could troubleshoot it further.

Regards,

JR A.
Application Engineer
National Instruments
0 Kudos
Message 2 of 3
(3,402 Views)
Oh, there is also one more change. Change the % to a $ on 'settingsName%'. So the line should be "Declare Function flex_initialize_controller Lib "FlexMotion32.dll" (ByVal boardID%, ByVal settingsName$) As Long"

JR A.
0 Kudos
Message 3 of 3
(3,402 Views)