this problem will be solved with NI-Motion 7
for now you can do the following:
Basically the fix involves changing the 'string' entries in FLEXMOTN.BAS from charArray% to ByVal charArray As String. Note that the name of the varible isn't always charArray. You can replace the function prototypes in the file with the ones below:
- Declare Function flex_initialize_controller Lib "FlexMotion32.dll" (ByVal boardID%, ByVal settingsName As String) As Long
- Declare Function flex_get_error_description Lib "FlexMotion32.dll" (ByVal descriptionType%, ByVal errorCode&, ByVal commandID%, ByVal resourceID%, ByVal charArray As String, sizeOfArray&) As Long
- Declare Function flex_get_motion_board_name Lib "FlexMotion32.dll" (ByVal boardID%, ByVal charArray As Strin
g, sizeOfArray&) As Long
- Declare Function flex_load_description Lib "FlexMotion32.dll" (ByVal boardID%, ByVal object%, ByVal description As String) As Long
- Declare Function flex_read_description_rtn Lib "FlexMotion32.dll" (ByVal boardID%, ByVal object%, ByVal description As String) As Long
Regards,
Bjorn