08-13-2010 02:10 AM
Hello everyone.
Here's what I'm trying to do. I got real time data coming into the system, lets say I have a stream of data containing A, B, C, and D. The first data received goes to (maybe an array) A, the second goes to B, third goes to C, and fourth goes D. The fifth data goes back A, and so on with a continuous loop. How do I do that ? (Sorry if this is a silly question because I have little knowledge on LabVIEW)
And also, how do I separate a character from a data received ? Lets say I got "A020" or "B030". How do I remove "A" and "B" from the string and convert the remaining string into an integer ?
Thanks everyone. Please lend me a hand :3
08-13-2010 09:40 AM
Bump!
08-13-2010 02:43 PM
We would need more information to help you. Your "data" is in what format and where did it come from? What is this "system" that you refer to? What have you coded so far?
Since you are new to LabVIEW have you taken one of the free online courses?
What version of LabVIEW do you use?
Open the functions pallete from the block diagram, turn on context help (Ctrl+h), and read about the string functions.
Open the example finder and on the search tab type 'string'. Parse string.vi would be helpful.
08-13-2010 03:13 PM
Take the online courses. We get bombarded with very basic questons that would not be asked if the user would learn Labview first. We are all volunteers here who do this service in our spare time. We have regular jobs that we must perform.
In your case, study the array functions, expecially Index Array, and Array Subset. Also study the string functions, like String Subset, and the String to Number functions. They are very easy if you just do the tutorial and look at the help screen for each function. Look for examples on strings and arrays (Help menu - Find Examples). Once you have an example open, press Ctrl-H to bring up the help window. When you hover your mouse over a function, its help screen will appear in the help window. Read the descriptions.
If you do this, and make an attempt to write your own code, you will find more willingness to help you when you run into a snag. Post your code and we will offer advice.