LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Result string adds on at every run?

The Login Cmd adds on at every interval-

0xb, 0x3f, 0x18, 0x1c,

0xb, 0x3f, 0x18, 0x1c, 0xb, 0x3f, 0x18, 0x1c, 

0xb, 0x3f, 0x18, 0x1c, 0xb, 0x3f, 0x18, 0x1c, 0xb, 0x3f, 0x18, 0x1c

 

How do I fix this?

VI is attached.

0 Kudos
Message 1 of 3
(865 Views)

Initialize the shift register on the For loop. When it is uninitialized it retains it's last value which is why you are seeing your string building each execution.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 2 of 3
(853 Views)

You have an uninitialized Shift Register.  So it will keep what was last stored in the Shift Register.

 

However, you don't even need that loop.  There is a lot of simplification we can do here.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 3 of 3
(851 Views)