LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I'm having difficultiy getting the Reverse String function to work.

I use the Reverse String (String Pallet >> Additional String Functions >> Reverse String)  in an application since LV v.7.1.  I'm having trouble with this function since upgrading to v.8.5.  Usually it works, but sometimes it doesn't.  When it does not work, it passes the string through unchanged.  Any Ideas?  (I'm using Win XP)
 
Dave
 
 
 
0 Kudos
Message 1 of 6
(3,073 Views)
Hmm...  Can you post an example?  I've never had a problem with it across lots of versions, but maybe you found something.
0 Kudos
Message 2 of 6
(3,066 Views)

What's maddening is that sometimes the function works.  I stripped down all code exept for the part that I'm having trouble with and the vi is attached.  When the Reverse String function does not work in my application, it passes the string through unchanged.  However, when I run this vi, instead of reversing the string, the result is cod.014 treC laC  I hope it works this way for you so that you may be able detect a problem.

Dave

 

0 Kudos
Message 3 of 6
(3,045 Views)
Well, Dave, I don't know what to tell you.

I ran your test in 8.5 within a loop for a few minutes, and I counted some 64,000 times that it worked like it should.  There must be something else about your report generation VI that's causing apparently erroneous results.  Is it always executing the string reversing function, or could it possibly be getting hung up somewhere and displaying a default value?  I can't really think of anything else given the information.

Sorry it's not much help...

Jim
0 Kudos
Message 4 of 6
(3,036 Views)

There's something spooky about this.  In the mean time I've placed the code that involves the Reverse Functions in subvi's.  (I'm using four Reverse Functions and am having trouble with them all.)  The application is running well now.  Perhaps there's something corrupted with my main vi.
Thanks,
Dave

0 Kudos
Message 5 of 6
(3,021 Views)
Dave, that is awfully strange.  I'd be interested to know what's going wrong if you figure it out...

Jim
0 Kudos
Message 6 of 6
(3,006 Views)