LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

scan from string

Here I've posted a question (with example) about a problem I'm having with the scan tokens from string function. I reckon it's buggy, but maybe someone can shed some light on it for me. We all know bugs don't like the light 😛

Shane.
Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)
Message 1 of 6
(3,813 Views)
To avoid pollution of that thread (it's supposed to help people catch up, not be bug central), I'm reposting Shane's original text and VI here. Further debate should be on this thread.



OK I think i might mave stumbled across a bug. Granted I'm only using 6.1, but maybe it's still lurking.

I was trying to use the "Scan tokens from strings" function to find a %nm% placeholder for a wavelength value. The problem is that it wasn't found. Not understanding this, but thinking it maybe had something to do with the "%" sign, I changed them to *nm* and it worked.

Seems logical enough. But then I just had to go and dig deeper. By replacing ONE of my token array with a *xx* palceholder, I suddenly started getting results. Wierd. Of course, I had to dig deeper.

Here's a VI demonstrating the problem. I've also found out that the caching behaviour is somewhat suspect.

Try the VI first with default values, then with caching forced "off" ("off" SHOULD be the default). The first and second results come from the same functionality, with the same inputs, but they are different. By forcing "no caching", the results are the same. I don't understand this, but it gets better.

Then try changing element 2 or 3 (which isn't present in the string to be searched) from a "%xx%" value to a "*xx*" value (simply change the "Array element to replace" from -1 (no action) to 2 or 3). Lo and behold, the %nm% token is found, and the forced caching has no influence any more.

I may be missing something with the "%" character, but can someone explain this to me?

Shane.

Using LV 6.1 on W2k (SP4) and WXP (SP2)

___________________
Try to take over the world!
Message 2 of 6
(3,805 Views)
Oh, OK.

Thanks tst, I'll give myself a virtual slap on the wrist for not noticing that. I just saw the text "bug" in the thread and went for it.

I'll pretend it's still monday, cause then I'd have an excuse.

Shane.
Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)
Message 3 of 6
(3,782 Views)
I just recieved an update from our advocate inside NI that support WILL be expected to monitor that thread.

Thank you for sharing and keeping us updated.

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 4 of 6
(3,773 Views)
Sorry to be so impatient, but has someone else at least been able to reproduce the "bug"?

I'm thinking it's maybe a LV 6.1 problem, and since I don't have a version above 6.1, I can't test it.

Shane.
Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)
0 Kudos
Message 5 of 6
(3,754 Views)
Hi, I have tried it with 7.0 and 7.1, it seems to be ok.

Regards
Ray Farmer
Regards
Ray Farmer
Message 6 of 6
(3,747 Views)