ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

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
(2,162 Views)

@Transt wrote:

Please help with the example code.


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

0 Kudos
Message 2 of 9
(2,156 Views)

VI attached

0 Kudos
Message 3 of 9
(2,134 Views)

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

0 Kudos
Message 4 of 9
(2,120 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.

0 Kudos
Message 5 of 9
(2,114 Views)
Solution
Accepted by topic author Transt

I can not find the string abbc, b+?

0 Kudos
Message 6 of 9
(2,100 Views)

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

0 Kudos
Message 7 of 9
(2,067 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

 

Message 8 of 9
(2,044 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

 

Message 9 of 9
(2,040 Views)