LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

output string displace

Solved!
Go to solution

I am using the cmd.exe to read the packet receiver but I just want to data-logger only the number. Please help with the example code.

Thank you

Download All
0 Kudos
Message 1 of 9
(244 Views)

@Transt wrote:

Please help with the example code.


Images are not "code". Please attach your VI with some typical test strings.


LabVIEW Champion. It all comes together in GCentral GCentral
What does "Engineering Redefined" mean??
0 Kudos
Message 2 of 9
(238 Views)

VI attached

0 Kudos
Message 3 of 9
(216 Views)

Your output contains many dozens of numbers. Which one do you want?


LabVIEW Champion. It all comes together in GCentral GCentral
What does "Engineering Redefined" mean??
0 Kudos
Message 4 of 9
(202 Views)
Solution
Accepted by topic author Transt

You said "packets receiver", but if you want the number after the first equal sign ("packets received"), you can do as follows:

 

 

altenbach_0-1619119858329.png

 

If you want any other number, things gets more complicated, especially if you want to support multiple language settings of the OS. I am not sure if these strings change depending on localization.


LabVIEW Champion. It all comes together in GCentral GCentral
What does "Engineering Redefined" mean??
0 Kudos
Message 5 of 9
(196 Views)
Solution
Accepted by topic author Transt

I can not find the string abbc, b+?

0 Kudos
Message 6 of 9
(182 Views)

Thank you I got it, How do I can set to read the Received packets delivered number?

0 Kudos
Message 7 of 9
(149 Views)

@Transt wrote:

Thank you I got it, How do I can set to read the Received packets delivered number?


As I said, you just need to be more specific in the search string, e.g. as follows (make sure the number of spaces is correct):

 

altenbach_0-1619127384676.png

 


LabVIEW Champion. It all comes together in GCentral GCentral
What does "Engineering Redefined" mean??
Message 8 of 9
(126 Views)
Solution
Accepted by topic author Transt

If you are interested in all IPV4 statistics, you might want to create an array of clusters where each cluster is a name and a number.

 

altenbach_0-1619128580137.png

 


LabVIEW Champion. It all comes together in GCentral GCentral
What does "Engineering Redefined" mean??
Message 9 of 9
(122 Views)