Data AcQuisition And Real-Time AnalysisScope - Spectrum - Spectrogram - Signal Generator
Software for Windows
Science with your Sound Card!
Contact us about
Custom Macro Messages (No Buttons)
Macros: Msg, MsgTitle, MsgStyle
Msg="Test Message" shows a simple custom macro message, replacing any prior message. Msg=" removes any prior message.
By default, Msg text is centered in the box, and has a title bar that just says "Macro Message" above the message text. MsgTitle="New Title" changes it to "New Title". Titles may be up to 32 characters long, and will be used with subsequent Msg macros until specifically changed.
The message box is automatically sized to the message text. If the message is short, the title may be trucated. You can use MsgTitle= to specify an empty title bar.
MsgStyle=TC is the default message style, where T specifies Title and C specifies Centered. Other options besides Centered are R for Right-justified and L for Left. So, for example MsgStyle=L will show Left-justified text but no Title.
A message without a Title bar has no "handle" to allow the user to drag it to another position. This makes it a good choice to place near a specifc Label, Field, or control as an operator prompt. There are separate position macros for messages with and without titles.
Msg text can span multiple lines by using a single pair of quotes to surround the entire message:
MsgStyle=TC ;Title, Center MsgTitle="Test Steps" Msg="1) Select Frequency. 2) Set SPL. 3) Hit StartTest." ;End of 3-line Msg
Note the comments on the first and last lines of the above macro. Comments can't be used within the message quotes, or they will be shown as part of the message.
Msg="1) Set Frequency to ." +F +n +_ ;Start of Msg +"2) Set SPL." +n +_ ;2nd line of Msg +"3) Hit StartTest." ;End of 3-line Msg
Note that when Msg is used to request that the operator change some Daqarta control or enter data, the WaitChange command can suspend macro processing until that action has taken place.
To copy a displayed message to the Windows Clipboard, left-click anywhere in the central region of the message window. This pops up a prompt allowing you to save the message to the Clipboard. CTRL+left-click saves it directly, without the prompt.
Questions? Comments? Contact us!We respond to ALL inquiries, typically within 24 hrs.
Over 30 Years of Innovative Instrumentation
© Copyright 2007 - 2013 by Interstellar Research
All rights reserved