LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

String Concatenates with every interval? How to clear this?

My VI is attached.

How do I stop this string from concatenating on each run?

I just want it to be 6094012E.

Every time I run, "string" keeps concatenating-

mshaske_0-1625588889079.png

mshaske_1-1625588905399.png

 

mshaske_2-1625588917884.png

etc...how can I stop this? Thanks in advance.

0 Kudos
Message 1 of 3
(1,048 Views)

Because even though your code looks like this:

 

Kyle97330_0-1625589868687.png

 

 

It's actually wired like this:

 

Kyle97330_1-1625589899630.png

 

So your shift register is uninitialized, which feeds back the last value each time.

 

Just fix the wiring and add an empty string to initialize it:

 

Kyle97330_2-1625589977942.png

 

 

0 Kudos
Message 2 of 3
(1,032 Views)

Also I don't know if you need any of those intermediate steps, but if you don't, this is a much easier way to get to the hex string than what you did:

 

Kyle97330_0-1625590268190.png

 

0 Kudos
Message 3 of 3
(1,025 Views)