キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

Input String and Number block

解決済み
解決策を見る

This is embarrassing.  I was just in a NI LabView presentation and they had an example VI that used a VI function that accepts a string and parses it based off of a token string.

 

So the example was…

 

If you had an input string of…

 

Value = 3

 

… and fed the VI function a token string of…

 

%s = %n

 

… the returned values from the block are a string and a numeric, “Value” and 3 respectfully.

 

Does anyone know where this VI function block is in the palates?

 

Thanks.

0 件の賞賛
メッセージ1/4
3,866件の閲覧回数

Look for SCAN FROM STRING - row 2, column 0 in the STRING function palette.

 

Except the "%n" won't work.  If you're looking for a decimal number, use "%d".  Consult the help for other options. 

Message Edited by CoastalMaineBird on 07-09-2009 03:34 PM
Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

メッセージ2/4
3,861件の閲覧回数

Hi Phillip,

 

"scan from string" in the string functions palette...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
メッセージ3/4
3,859件の閲覧回数
解決策
トピック作成者PhilipJoePが受理

Scan From String (in the String palette).

Example_VI.png

 

 

EDIT: Guess everybody must be on a coffee break. スマイリー とてもハッピー

Message Edited by smercurio_fc on 07-09-2009 03:34 PM
0 件の賞賛
メッセージ4/4
3,856件の閲覧回数