Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

using flex_get_motion_board_info with .net 2005

Hi

I'm using VB.net 2005 with Ni-Motion.

FlexMotion32.dll version 7.3.1.49152

and the Max version is 4.3.0f0

the Board is a PCI-7350 6 axis

I'm trying to get the number of axis available using the

function call Status = flex_get_motion_board_info(BoardID, NIMC_NUM_AXES, informationValue)

this is the code I'm using

Public Sub New()

Dim Status As Long = 0

Dim BoardID As Integer = 1

Const NIMC_NUM_AXES As Long = 1510

Dim informationValue As Long = 0

Status = flex_get_motion_board_info(BoardID, NIMC_NUM_AXES, informationValue)

End Sub

The problem is, Status always returns a non-zero value (8589864559) to be exact.

I do not think it’s an error code because it’s not negative.

The informationValue always returns 0 also.

I've tried replacing the function call with

Status = flex_get_motion_board_info(1, 1510, informationValue)

with the same results.

The NI-Motion Function Help says that the function is compatible with the board I'm using.

I'm also using Status = flex_clear_pu_status(mBoardID)function and it works fine.

I can verify it with Max.

So I don’t think it’s a declaration issue?

If someone could point me in the right direction I would appreciate it

Thank you

Rich

0 Kudos
Message 1 of 1
(3,044 Views)