To download NI software, including the products shown below, visit ni.com/downloads.
This example demonstrates the ability for the TestStand engine to communicate through the Sync Manager with another instance of the TestStand engine. The first instance is created by a stand-alone application developed in C#. The second instance of the engine is used by TestStand to run a test sequence.
In the C# application, the TestStand API is used to notify any process that is waiting on this specific notifier that an event has occurred, otherwise known as setting the notifier. This is executed when the user selects the Start button, and the Station Status displays "Ready..." on the C# application's user interface. When the user selects, Stop, the application will clear out the notifier, but the notifier will still exist.
Simultaneously, a separate TestStand execution waits on this notifier to be set by the user interface and informs the user when it has been set. The TestStand execution will terminate if the notifier object does not exist. Otherwise, when it has been set by the stand-alone application, the user will see a message pop-up indicating that the notifier has been set.
Note: This example is applicable to situations where the test station is configured in a separate application or process from TestStand, and then informs TestStand when all test stations are ready.
Related-Separate-2
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.