Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

NI-7244 velocity override from VB.net

HI,

     I am developing a simple machine control using Flexmotion7.6 / VB.net / NI-7344. The control is running as expected, all functions working with the exception of:

 

status = flex_load_velocity_override(boardID, NIMC_AXIS1, 75, &HFFS)

 

When attemting to use the function the axis is killed. This is a single axis move (no contouring). Vector space is not defined. Even before motion is commanded, calling this function kills the axis. In order to move the axis again the PU must be reset or the axis sent to home. The value (eg. 75) is irrelevant, any value 0-150 has the same effect.

 

Setting the override from MAX works OK.

 

Any help most welcome, I am trying to implement a simple 'feed' hold' (override set to 0, then back to 100).

 

Thanks,

            Chris.

0 Kudos
Message 1 of 2
(3,440 Views)

Hi Chris,

 

NI-Motion is not supported in VB.NET, and I believe the behavior is a result of the driver not being supported in this language.

 

NI-Motion Driver Support for Microsoft Visual Studio .NET

http://digital.ni.com/public.nsf/allkb/67253305A52EFB1986256E94005945D2?OpenDocument

 

are you able to use Visual C++.NET instead as mentioned in the KB?

 

Sorry for the bad news, please let me know if I can do anything else.

 

Best Regards,

 

Philip


Philip
Applications Engineer
National Instruments
UK Branch

===If this fixes your problem, mark as solution!===
0 Kudos
Message 2 of 2
(3,415 Views)