Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

Can't use flexmotion vb ex's due to problem retriving error description.

Hi,
Im having problems using the examples supplied with the motion control
(version
6.1.2). My problem is essentially the same as a problem on your discussion
forum. The problem is under the heading "Retrieve error description from
PCI-7334 board with VB". A solution is given but when I replace the
function
prototypes in the file FLEXMOTN.BAS, it generates an error
"-70022(NIMC_functionSupportError)". Any help you could provide would be
greatly appreciated.
Thanks very much,
Paul.

Software Details: Visual Basic version N/A
NI Hardware : Motion Control device MID-7604
Driver Version : 6.1.2
Operating System: Windows XP
0 Kudos
Message 1 of 2
(2,955 Views)
Hi Paul,

Have you got any Read functions in the code you are using? All Flex API read functions that uses onboard program should return NIMC_functionSupportError for Softmotion. The easiest way to find these functions is to look for read functions that have a "twin" and remove the one without the "_rtn" suffix. Example: flex_read_something flex_read_something_rtn flex_read_something will return function support error.

It may be worth sending an attachment of the code that does this so I can take a look.

Regards,

Lilly
National Instruments UK
0 Kudos
Message 2 of 2
(2,939 Views)