LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

sort numbers seperated by a comma into an array

Solved!
Go to solution

Is it something I said?  I promise I mean no harm. Just trying to learn and I appreciate everyone's input. I truly hope to return the favor someday.

 

CJ 

0 Kudos
Message 11 of 16
(1,429 Views)

CJ

 

I think you need a better input method.  I have attached a sample code that might help you brainstorm.  I used an array of a clustor of a boolean then it seem as though you need to seperate arrays i used a for loop to seperate them.  I dont know if this is what our looking for or not let me know.

boolean number.png

For some reason it doesnt look like my clustor is displaying properly but it is just a boolean and numeric.

Herrlin

Just trying to spread the LabVIEW love.
0 Kudos
Message 12 of 16
(1,422 Views)

cjlandry wrote:

Is it something I said?  I promise I mean no harm. Just trying to learn and I appreciate everyone's input. I truly hope to return the favor someday.

 

CJ 


No, just busy with my paying job.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 13 of 16
(1,417 Views)
Solution
Accepted by topic author cjlandry

Hi CJ,

 

I have sent you over a version which i believe will do what you are after. I have created an array of Valve info controls (a boolean, and turns indicator). These get updated from the input text string. I would suggest though that you add some error checking on the input string to ensure that no incorrect values have been entered. Does it have to be a text string? May be better if it could be an array of 2 numeric controls, that way you could easily used the built in data entry checking functions of labview to ensure that only proper values can be entered.

 

Hope this helps, if its not what your after for any reason let me know.

 

------------------------------------------------------------------------------------------------------
"Everything should be made as simple as possible but no simpler"
Download All
Message 14 of 16
(1,385 Views)

AWESOME!  Thank you Lucither... that works beautifully.  I finally figured out another way of doing the same thing but my code is much bigger.  I have to thank RavensFan for that.  I used his code but added a text to string array VI I found on NI.com.  The input does not have to be a text string and I may look at changing it to a numeric input?  Fortunately, in this case, the two values will be set once and never changed. 

 

This is the first code I have seen that will drive these rotary valves.  I could not find any drivers on the mfg's website for this rotary valve.  Looks like we have provided them a free resource?  Look here for the valves http://www.vici.com/vval/sduw.php

 

I have attached my version of the rotary valve, postion VI but I think I'll use yours!  Beautiful work!

 

Thank you to everyone who contributed and provided me feedback.

 

CJ

Download All
0 Kudos
Message 15 of 16
(1,374 Views)

Hi CJ,

 

No worries, glad i could help. Have attached a version of what i meant by using an array of a cluster of 2 numeric inputs. I have set the inputs to only allow values from 0-7 for valve number and 0-6 for number of turns. This is just to show as an example, of course you could modify it to progmatically only allow a specified number for the valves and also to chose from your 3 turn, 4 turn and 6 turn valves also. Just ensures that no funny values are put in that could give you problems in the future.

 

Good luck with the rest of the project.

------------------------------------------------------------------------------------------------------
"Everything should be made as simple as possible but no simpler"
Message 16 of 16
(1,361 Views)