10-22-2015 08:29 PM
Hi,
I would like to know how to remove unwanted string?
For example at my indicator I received
*<ANY NUMERIC KEY TO WAKE-UP (!0 TO 9!)>*
then only I get the second line
01:24:30 23.10.15 00 0000.21 01 000.000 02 00000 03 00000.0 04 -0516.03 05 -034.063 06 <-20 UR 07 105.052
I would like to know how to remove the *<ANY NUMERIC KEY TO WAKE-UP (!0 TO 9!)>*
Solved! Go to Solution.
10-22-2015 08:41 PM - edited 10-22-2015 08:41 PM
Is it really any number or does the string say "any number ..."?
Search and Replace String function
Replace it with an empty string.
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'
10-22-2015 08:48 PM
The string say
10-22-2015 08:48 PM
10-22-2015 09:05 PM
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'
10-22-2015 09:06 PM
No
10-22-2015 09:10 PM
10-22-2015 09:37 PM - edited 10-22-2015 09:40 PM
Come on, dude. You were just as non-descriptive in your first thread and your last thread. We can't help you if you don't give us any information.
Please include a Snippet of your code, or attach your VIs, so that we can better assist you. We are here to help, but won't spend all day guessing what you need.
I feel like I've already wasted too much time on this thread.
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'
10-22-2015 10:07 PM
Dennis,
I mean no.. I never attend any tutorial or watch any tutorial....
James,
I already attach the Vi
10-22-2015 11:06 PM
Okay... so you're using the string function correctly if that is how your string reads in from the serial port, but I'm wary of your VISA setup. Reading the number of bytes as equal to the baud rate is bogus. Look at your device communication and figure out exactly how many bytes at a time you should be reading, or use the timeout. My guess is that when you run your code right now, it sits for 10 seconds each loop before spitting out a string.
Is your original question answered/solved? Do you understand how to remove an unwanted string?
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'