このウィジェットは表示できません。
キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

output string displace

解決済み
解決策を見る

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

すべてをダウンロード
0 件の賞賛
メッセージ1/9
3,040件の閲覧回数

@Transt wrote:

Please help with the example code.


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

0 件の賞賛
メッセージ2/9
3,034件の閲覧回数

VI attached

0 件の賞賛
メッセージ3/9
3,012件の閲覧回数

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

0 件の賞賛
メッセージ4/9
2,998件の閲覧回数
解決策
トピック作成者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.pngaltenbach_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 件の賞賛
メッセージ5/9
2,992件の閲覧回数
解決策
トピック作成者Transtが受理

I can not find the string abbc, b+?

0 件の賞賛
メッセージ6/9
2,978件の閲覧回数

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

0 件の賞賛
メッセージ7/9
2,945件の閲覧回数

@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.pngaltenbach_0-1619127384676.png

 

メッセージ8/9
2,922件の閲覧回数
解決策
トピック作成者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.pngaltenbach_0-1619128580137.png

 

メッセージ9/9
2,918件の閲覧回数