03-08-2010 09:56 AM
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.
03-12-2010 10:07 AM
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