Welcome, Guest. Please login or register.
Did you miss your activation email?
May 26, 2012, 03:32:48 AM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  Mach SDK plugin questions and answers.
| | |-+  Plugin forced calls
Pages: 1   Go Down
Print
Author Topic: Plugin forced calls  (Read 455 times)
0 Members and 1 Guest are viewing this topic.
MiniDave
Active Member

Offline Offline

Posts: 6


View Profile
« on: May 29, 2010, 10:01:40 AM »

Hi,
Don’t anyone know, is there a way to force a plugin to be run "called".  From what little I understand. Normally a plugin is called every 100mS.  I would like to be able to call a plugin from within a macro and have it run without delay!  Any ideas…


MiniDave Huh
Logged
poppabear
S S SYSTEMS, LLC
Global Moderator
*
Offline Offline

Posts: 1,707


Briceville, TN, USA


View Profile WWW
« Reply #1 on: May 30, 2010, 02:59:49 AM »

Yes, Use  the VB  "NotifyPlugins( some integer here)  then in your Plugin area in Machdeviceimplementation.cpp

in the notify code.

void   myNotify ( int ID)
{
   if( ID == myIntegerID ) //this is the integer you send from the VB NotifyPlugins(myIntegerID)
                 {
           do your code here;
                 }
}

scott
Logged

Commercial Mach3: Screens (regular and flash), Wizards, Plug-ins, Brains, PLCs, Macros, ATC's, machine build, retrofit and Prototyping
http://sites.google.com/site/volunteerfablab/
MiniDave
Active Member

Offline Offline

Posts: 6


View Profile
« Reply #2 on: May 31, 2010, 04:00:32 PM »

 Grin


Thanks Scott, Great help.

MiniDave
Logged
Pages: 1   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!