Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

Retrieve error description from PCI-7334 board with VB

Even with the examples provided by NI I get the error "Compile error. By Ref argument type mismatch" on argument "errordescription of function "flex_get_error_description".
Try it with the "One-Axis Move with Position Monitor.vbp" project. Select an axis that don't exist eg "axis 7" and you get the error in "Public Function nimcDisplayError(ByVal errorCode As Long, ByVal commandID As Integer, ByVal resourceID As Integer) As Integer" of module "NIMCExample.bas".
In VB the variable "errordescription" is declared as string. According to the help file that argument is an array of ASCII characters. So what should it be??
The examples where installed from the "Motion Control Version 6.1.2" CD.
Does someone have a working e
xample of how to retrieve the error description with VB ???
0 Kudos
Message 1 of 2
(3,122 Views)
With the modifications described in thread "flex_initialize_controller", this problem is also solved.
0 Kudos
Message 2 of 2
(3,122 Views)