DASYLab

cancel
Showing results for 
Search instead for 
Did you mean: 

Adding Header or comment on Write data based on Coded Switch

The switch I'm using changes the test parameters and I'm trying to get these test parameters to be recorded in the write function. However there are letters in the test code names, I was wondering if there is a way to set a global variable to a Letter/Number combination or if there was another way to do something like this. I apologize if this is unclear as this is my first time using this software.

0 Kudos
Message 1 of 2
(1,135 Views)

Use the Global String Advanced feature and the string format function strfmt to embed a number within a string. For example, define and set a global variable named NUMBER to a number, say 3.14159. Then, use the Global String Advance feature to create a string like the following:

 

"This is my number: " + strfmt(${NUMBER}, 5, 3).

 

 

The result is "This is my number: 3.142"

0 Kudos
Message 2 of 2
(1,123 Views)