Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X
Currently I run my code by clicking auxiliary application -> start, and after running I have to click stop.
Although this does not affect the functionality of my code even if I do not click stop, is there a way to stop the aux app somehow in the stop method? Just to save a click
public static void start () {
do_something();
}
public static void stop () {
}
Solved! Go to Solution.
try to run this via session.RunMacro()
~ Command `ProCmdUtilAux` ;
~ Select `aux_apps` `AppList` 1 `<name_of_your_app>`;
~ Activate `aux_apps` `StopBtn`;
~ Activate `aux_apps` `CloseBtn`;
from your application
try to create macro and run it from your app to stop itself
Take a look at pfcJLink.JLinkApplication.Stop
This looks like what I'm looking for, although going through the API documentation I don't see how to call the currently running JLinkApplication object upon which to apply the stop method? Any chance that you have a code snippet for reference?
try to run this via session.RunMacro()
~ Command `ProCmdUtilAux` ;
~ Select `aux_apps` `AppList` 1 `<name_of_your_app>`;
~ Activate `aux_apps` `StopBtn`;
~ Activate `aux_apps` `CloseBtn`;
from your application
works perfectly, thanks!