10-26-2022 01:19 AM
Is there any property to update string like this when an array of different value comes? I need to keep on updating the string continuously.
Solved! Go to Solution.
10-26-2022 02:14 AM
You are not providing enough information. What is the relation between the array and the string?
What I see in you picture is a String control (not an indicator, I guess). If you want to update the string programatically and not interactively, an indicator should be more suitable. To update a control, you can use a Local Variable or a Value property node (the property node can be used in another vi passing a reference of the indicator to that vi). To update an indicator, you can simply use its Terminal on the Block Diagram, too.
10-26-2022 03:13 AM
Generate a user event when you send a new string. Failing that, remember the old array and compare it so you notice when a new one appears.
10-26-2022 03:29 AM
Sorry for the insufficient information. I hope the below image can explain you more about this. Updating to string is not a matter, but wrapping the string like below mentioned picture is my required thing.
The above mentioned picture is just for an example. But my string should look this.
10-26-2022 03:35 AM - edited 10-26-2022 03:47 AM
10-26-2022 03:39 AM
Hi, please understand that, updating to string is not a matter. But, how the string looks, that's only my concern.
10-26-2022 03:43 AM
Hi Alwin,
@Alwin_Capsys wrote:
The above mentioned picture is just for an example. But my string should look this.
Use SearchAndReplaceString on the result of ArrayToSpreadsheetString and replace all linefeeds by spaces!
ArrayToSpreadsheetString will always place linefeeds between rows of a 2D array…
10-26-2022 03:59 AM - edited 10-26-2022 04:03 AM
I hope you meant this. If it is, it doesn't meet my requirement.
10-26-2022 04:15 AM
Replace linefeeds AND carriage returns
10-26-2022 04:16 AM