04-14-2011 10:15 AM - edited 04-14-2011 10:16 AM
Hi,
I have an input data, let's say
"012345678"
How can I split it into 3 digits data form as
"012" '345" "678" ?
Solved! Go to Solution.
04-14-2011 10:23 AM
Here is a basic loop which will do what you want.
04-14-2011 11:02 AM
Hi,
As your suggestion only has 1 output, but I need it to be separated into 3 outputs.
It's actually a blood pressure reading as the 1st 3 digits for systolic pressure, 4th-6th digits for the diastolic pressure and the last 3 digits for the mean blood pressure. I need it splited into 3 data and displayed.
Thank you very much!
@Mark Yedinak wrote:
Here is a basic loop which will do what you want.
04-14-2011 11:17 AM - edited 04-14-2011 11:19 AM
The output is an array and all three values are there. The first three characters are stored in array[0], the second three characters are in array[1], and so on. This is doing what you need. After the loop has run simply access the individual array elements and display/process them as needed.
The array is a generally approach whihc will work with any length string.
04-14-2011 11:19 AM
Seems like you have a fixed format so you could do this.
04-15-2011 10:55 AM
Thank you!
06-25-2012 11:35 AM
Could I ask what the center function is, that seperates the number? I need to do something similar - split a 4 digit number into 4 digits.
06-25-2012 12:00 PM
That would be the Scan From String function. It is found in the String pallet.
06-25-2012 12:34 PM - edited 06-25-2012 12:39 PM
Deleted
06-25-2012 12:39 PM
Wire the outputs to indicator terminals. The terminals correspond to indicators on your front panel. You might want to check out some tutorials such as LabVIEW 101.