Dynamically Obtaining Message IDs for TestStand UI Messages

Updated Jan 31, 2020

Reported In


  • TestStand

Programming Language

  • LabVIEW G
  • C# .NET
  • Visual Basic .NET
  • C
  • C++

Issue Details

I want to use UI Messages for the communication between TestStand and my TestStand User Interface (UI). However, my TestStand UI might be replaced by another TestStand UI so I don't want to use static message IDs for my UI Messages to reduce coupling. What can I do?


TestStand can obtain a message ID for your UI Message dynamically. You can use the RegisterUIMessage Method to obtain a new message ID or get the message ID for an already registered UI Message.

Additional Information

This method of defining message IDs uses the message names to identify the message ID from it. This requires a very careful design of the message names to avoid sending unintended messages.