From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
12-17-2009 05:15 PM
12-17-2009 05:39 PM
12-17-2009 05:39 PM
12-17-2009 06:31 PM
On the I/O I selected "COM4" but I only want to see only number 4 on indicator, please give me more help detail.
Thanks
12-17-2009 08:22 PM
falkpl wrote:
scan from string COM%d but there are many ways depending on the string assumptions (regular expressions, string parsing, match string) ....
I think a regex pattern of [1-9]+ should work in this case.
stevevantran wrote:On the I/O I selected "COM4" but I only want to see only number 4 on indicator, please give me more help detail.
Thanks
What kind of indicator?
12-18-2009 03:02 AM
12-18-2009 11:36 AM
How about using the resources you already have? Try this. Open LabVIEW>>Click Help>>Find Examples>>Select the search tab and type in "strings" and you should find "Extract numbers.vi"
Hope this helps
06-18-2015 02:00 AM - edited 06-18-2015 02:01 AM
Hello, i might need your help regarding this matter.
I'm current taking a reading from Arduino from 2 accerolmeter to Labview. X=0.02 Y=-0.03 Z=0.99 A=0.33 B=0.42 C=0.84 (Example)
But when i display them using Waveform Chart in labview, I need to use the array to count the position of the String from buffer which sometimes might be inaccurate due to the the value extracted.
I was told that i can use Search string from the beginning to allow the waveform to take in only the numeric.
Are you able to assist me regarding this issue?
Below attached are the pictures..
06-18-2015 06:21 AM
06-18-2015 08:02 AM
I realize a new question was asked, and jcarmody did a great job of answering it. But I remember seeing a regular expression which pulls out a number from a string, and I've used it to turn a text file into a 2D array of numbers by splitting and processing each row. It isn't as fast, but it is more robust because it works with any number in a string decimal or not, and the format of the string isn't needed for the processing.
http://forums.ni.com/t5/LabVIEW/regex-find-number-at-end-of-string/m-p/2511362#M764254
The regular expression is this.
(\d+(\.\d+)?)(?!.*\d+(\.\d+)?)
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
16 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord