01-30-2012 05:36 AM
Some one help me with this....
01-30-2012 05:59 AM - edited 01-30-2012 06:07 AM
you do logics on numbers - not a good idea. stick to boolean. I am not sure in LV, but in text based programming this often means checking for equal. If you compare integer to float numbers you are screwed.
Replace your float 0 with a FALSE Boolean, dont cast your boolean array to integer.
I dont really know what your program is ought to do, but you cannot wire an integer ARRAY into a non-array (case 1). Again, do not mix float with integer. I can see no reason why not to stick to booleans.
At the end, you wired to non array result displays. use right click on the node and create --> indicator to avoid these errors in first place.
Your while loop has no functionality by now but waiting for the stop button.
Finally, please read the "how to post" of the forum and give a more detailed problem description. And maybe also read some of the "getting started with Labview" posts, I feel they might help you out a lot, especially datatypes and arrays should be a valuable readup.
Edit: To answer your question of the subject - try out the "Index Array.vi"
01-30-2012 06:11 AM
I'm new to this... i'll describe better... i have to give two continuous digital signals as input... xor according to the logic in the program and get the output and see if it is 10 or 01..... can u help me now?
01-30-2012 07:44 AM
Hey vanteru,
I think I understand what you want to do: You get two arrays (?) of digital data. you want to find out for each point (?) if XOR holds and get this as a result.
In this image you can have a view on a solution for your problem - note, that I use arrays of boolean values. You can do this aswell.
I think you should rework your VI with the inputs of my former post. At some parts you think way to complicated and you make some mistakes that I pointed out. I am confident in you, that you will be able to correct your VI by now - if not, let us see your changes.