Hello, is it a possibility to force the Datalink from DeltaV live to display a text on a new row? is there any special character to set inside the datalink expresion for this feature?
What is the expresion?
In reply to stamate_mircea:
Andre Dicaire
In reply to Andre Dicaire:
So, I've looked.
On a Text String, you can enable Wrap and define a "new line Sequence.
This would allow you to present a series of line and even paragraphs in a single multiline Field.
If you are retrieving the Description field of a module, this is done by a Datalink. You can enable Wrap Text on this but you cannot define a New Line Sequence
By enabling the Wrap option on the Module Description field in the faceplate, I get the following.
Here, I've configured the description field to be tall enough for two lines and I centered the text horizontally and chosen Middle for vertical alignment. The Font size and type gives me about 32 characters per line and breaks naturally at a space nearest this limit.
If you wanted your descriptions to be prescriptive and break say after "Valve" and have "With" on the next line, this is not supported directly in the data link.
In the Text field, the New Line Sequence allows you to define a series of characters that you can then use in a string to force a line break. I have not looked closely at this but you have to be careful to not use unsupported characters in the Description field, especially. The description text makes its way into the MODT.SCR file and extra characters that force a line break in Excel have caused issues that impact runtime.. Other module string parameters that are concatenated at run time will be limited to supported characters.
Im thinking one could use BKLN or brkln, something that would not be used, and by inserting these in a long string, you would control the line breaks.
Back to the Description field, if you changed this to a text field, and then read the description and pushed it into the label field, I suppose the line break sequence could be in the description and you would get the break where you put it.
I'm gonna leave it up to you to explore this approach.
Note that if I added a few more spaces between Valve and With , it pushes With to the next line.
The other way to control this text is to add a String parameter to the module and place the first line text in your Description field of the module, and the second line in the new string parameter. Two fields, two lines. Simple.