Placeholder: Difference between revisions

From SweepMe! Wiki
Jump to navigation Jump to search
No edit summary
(Redirected page to Parameter system)
Tag: New redirect
 
Line 1: Line 1:
In text fields ("LineEdits") you can use placeholders which will be replaced by a variable if the content of the text field is read out. Should there be a text field that does not accept these placeholders, please write to support@sweep-me.net
#REDIRECT [[Parameter system]]
 
== Predefined placeholders==
 
=== Time and date ===
 
*'''%d'''  day
*'''%m'''  month
*'''%y'''  year 2 digits
*'''%Y'''  year 4 digits
*'''%H'''  hour 24h
*'''%I'''  hour 12h
*'''%p'''  PM or AM
*'''%M'''  minute
*'''%S'''  second
 
=== Universal constants ===
tbd
 
== Applications ==
 
* Change folder and file name automatically
* Modify the 'ID' of MakeFile
* Use a global parameter in text input fields that can be found in [[Calc]] or [[CustomFunction]]
* Use a parameter in the SweepEditor to make sweeps from %var1 to -%var1 in steps of %var2 where %var1 and %var2 are predefined variables
 
Starting from version 1.5.4., individual placeholders can be defined using the Module [[Form]].
 
== Known issues ==
 
Global placeholders are replaced once at the beginning of a measurement, but they are not replaced again during a measurement. We plan to change it in version 1.5.5. so that global placeholders that are changed during the measurement can have an effect.

Latest revision as of 22:43, 10 October 2020

Redirect to: