From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
02-21-2017 02:16 AM
How do i prevent the "Serial Data" indicator from being emptied/cleared every time i use it?
( want to see the "Serial Data" in real time)
/J
Solved! Go to Solution.
02-21-2017 02:36 AM - edited 02-21-2017 02:37 AM
Hi std,
How do i prevent the "Serial Data" indicator from being emptied/cleared every time i use it?
From your image: the string indicator never gets cleared - atleast not in this image…
(Why do you use a reference and property nodes when the terminal is still available?)
To answer your question: when you don't want to clear/empty the indicator you should not write an empty string into it…
02-21-2017 02:59 AM
Hi GerdW
If you run the attached VI you will see that that the "Serial Data1" is erased when "Serial Data2" is written.
The picture is an example code. The 2 Sequences are instead of my Serial communication SubVI that writes and reads data from the serial port and the reference is there to be able to see the serial communication in "realtime".
So i want to add all serial data to the indicator "Serial Data" (want it to work like a terminal app would).
02-21-2017 03:25 AM - edited 02-21-2017 03:26 AM
Hi std,
unfortunately I cannot open your LV2015 VI right now, I'm stuck at LV2014…
you will see that that the "Serial Data1" is erased when "Serial Data2" is written.
But I guess it's the same as is shown in the image above: "serial data1" is not "erased", it's overwritten!
i want to add all serial data to the indicator "Serial Data" (want it to work like a terminal app would).
So you want to concatenate all string data into a huge string?
Then you should use the ConcatenateString function and a shift register as you should have learned in the LabVIEW beginner courses offered for free by NI…
02-22-2017 04:14 AM
Sorry, Yes it is overwritten.
You are right a Concatenate string function and a shift register fixed it(with an Event Structure in the mix).
I probably forgotten or, have dozed off during the course...
02-22-2017 03:11 PM
Use the "Append String" method.
To make it even better, use the attached XControl.