LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

compare two strings and the save the greater

To devolop a vi,it can compare two strings.A string is gived,the other is saved previously.If greater,then save,or do nothing.
0 Kudos
Message 1 of 3
(2,919 Views)

Hi,

I am assuming by "greater" you mean the string length.

Use the string length function from the strings palette, with shift-registers on a while loop. Write to the shift-register the "greater" string.

I am attaching a diagram screenshot for this. NOTE: depending on how you want this VI to run, you can move the input and output string control and indicator inside our outside the while loop.

Hope this is what you were looking for.

Khalid


0 Kudos
Message 2 of 3
(2,919 Views)
Thanks,That's my need.
0 Kudos
Message 3 of 3
(2,919 Views)