Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

Flexmotion an VB.net

Has anyone used vb.net with Flexmotion? I get strange results eg. when calling
[Dim xPos as Long]
[status=flex_read_pos_rtn(1,1,xPos)]
in return I get
[status=12884831855]
If I do the same in VB6 I get status = 0
Anyone got a clue?
0 Kudos
Message 1 of 2
(3,438 Views)

Hello!

 

I haven’t seen the message you got reported before. Which version of Motion are you using? I know that people have run into issues when using Motion intended for Visual Studio 6.0 in Visual Studio 2003 and 2005 due to the changes within Visual Studio.

 

Some issues have also been related to data types (read long data types) that have caused problems.

 

Discussion forum posts that might be of interest:

 

Can motion control module for measurement studio be used in VB.net?

http://forums.ni.com/ni/board/message?board.id=240&message.id=2111&requireLogin=False

 

NI7344 Motion Control .Net API 

http://forums.ni.com/ni/board/message?board.id=240&message.id=1075&requireLogin=False

 

 

Regards,
Jimmie Adolph
Systems Engineering Manager, National Instruments Northern European Region

0 Kudos
Message 2 of 2
(3,369 Views)