07-24-2012 08:08 AM
hello
here i have attach the vi . In this vi i have to compare incoming array with ideal array from A to Z. normally in a input we get a data with noise as it is show in this vi normally i just need to compare value A with A &B with B, cwith c D with D and so on. now the problem is i have to compare ideal array with array from input string .and if the input string is not serially from A to Z the whole comparion is false .i hope you understand my problem and give some suggestion thanking you
Solved! Go to Solution.
07-24-2012 08:40 AM
07-24-2012 08:54 AM - edited 07-24-2012 08:55 AM
Please take a look at this modified version of your code and let me know if it is what you are looking to accomplish.
Please ask questions and make sure you are comfortable and understand what I have coded.
07-24-2012 09:11 AM
thank you for reply i have try this way also but in this way we can compare element line by line but the problem is not just comparing for example if i have P in the position of E then come E now i have to negelect that p and compare ´received E with Ideal E .
if there no possibility to neglect noise in between, and compare with required. and continue this prosesses in each line
07-24-2012 09:43 AM
Thanks the modified version is a good example but still it doesn't fulfilled my requirement.
that means i just need the two row of same data (line by line )as in Ideal Array although there is noise in between . suppose if D has value 1 in ideal array the input has also same value it just because of P is as noise so it value of D is shown in P.
actually the value shown in P should be value of D
hope you can help me to find the solution thanking you
regards
07-24-2012 11:21 AM
Hi Kalu,
I really don't understand what you trying to achieve...
All that A,B and C,D. All those "value in P should be value in D" and all that "noise" in some string arrays!?
Please explain what you need. Please show examples of what you need. Show pictures of what you need.
Show anything that really explains your goal!
07-26-2012 10:57 AM
This example work properly , but in addition, after all correct data i want the vale of noise also at the end.that means first A To Z then at the end the noise and their respective value at the end.
i hope you understand me
best regards
07-26-2012 12:34 PM
Hi kalu,
please explain the term "noise" with respect to your array of strings! I don't know what you are talking about.
Did I mention you should show an example of what you want to achieve?
- Create a VI with two arrays on the front panel.
- Label the first one "data before calculation" and fill it with typical data.
- Label the second one "data after calculation" and fill it with typical results.
- Explain how the ealgorithm should work to get the data from first to second array...
07-26-2012 03:32 PM
sorry that i could not explain you properly hope this Vis and comment written in front panel can be more understandable . as in vis i need the valve from A to Z as output as well as noise and their respective value but these are not present in Ideal array as noise defer from one device to another. the value from A to Z and as well noise also are important data .forexample lets call noise as unknow variable.
i hope you can understand my problem with this example.
hopping for positive response
best regards
07-26-2012 03:44 PM
Hi Kalu,
the mist begins to clear...
So you compare a received (string) table with a predefined table and you already got results for the predefined table.
Now all you need to do compare the other way around:
Search for each entry in the received array an entry in the predefined array. When no predefined value is found you can consider that row as "noise" that will be collected for display...