LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Search 2D array for specific characters and display results

I am trying to create some type of lookup table using LabVIEW. Here are specifics:

I have a Binary Data Sting ie, 010111.

I have a spreadsheet file that has each bit in a seperate row and the spreadsheet has n rumber of row becaus there are many commands.

I need to search each row for the pattern of bits then display the description of the bits. The description is in the last column after the bits.

Currently I am using a vi "Search Array for multiple instances" to search the first row and use the resulting array of indicies and seach the next row and so on until I only have 1 row. Then I display the vaule of the last row. This only works if the number of rows and columns is known, but the spreadsheet size may change, increase cloumns. Is there any dynamic way to adjust for this increase in column size?

Does anyone have a better way of doing this.

Thanks
0 Kudos
Message 1 of 10
(2,970 Views)
Here is an idea, look out the code .. IT'NOT WORKING, It still need some work.
and check the way I represent your bits, Is it correct ?

Then let me know
-----------------------------
Ayman Mohammad Metwally
Automation Engineer
Egypt - Cairo
0 Kudos
Message 2 of 10
(2,959 Views)
Here it is, Working 100 % .
Just Download and run.

(Remeber it all depends on the way you your patterns stored)

Ayman Metwally

Message Edited by Ayman_Metwally on 03-02-2005 11:03 AM

-----------------------------
Ayman Mohammad Metwally
Automation Engineer
Egypt - Cairo
0 Kudos
Message 3 of 10
(2,953 Views)
Ayman_Metwally: Here is some friendly advice. Don't change the subject line (title) of the posts. Those of us who get email rely on the title to decide if we wish to view the posts. There are so many that I can't view them all. So I rely on the title to decide which ones I want to view. By changing the title, I may overlook a reply to a question I was interested in, or I may waste time viewing a reply to a question that I am not interested in. Thanx for understanding.
- tbob

Inventor of the WORM Global
0 Kudos
Message 4 of 10
(2,944 Views)
Ok tbob, No problem.
I won't change it again, and sorry for the past posts.
-----------------------------
Ayman Mohammad Metwally
Automation Engineer
Egypt - Cairo
0 Kudos
Message 5 of 10
(2,941 Views)
I'm curious. Are you Egyptian? Your name sounds like it is Australian.
- tbob

Inventor of the WORM Global
0 Kudos
Message 6 of 10
(2,938 Views)
"I'm curious. Are you Egyptian? Your name sounds like it is Australian. "

Yes, Iam Egyptian, and I really think that australians doesn't use these name as it's -some how- related to arabic.
-----------------------------
Ayman Mohammad Metwally
Automation Engineer
Egypt - Cairo
0 Kudos
Message 7 of 10
(2,931 Views)
I am currently using 6.1 can you save the vi in that version.

Thanks
0 Kudos
Message 8 of 10
(2,927 Views)
I don't have LabVIEW 6.1, but you can see the picture and ask questions.
-----------------------------
Ayman Mohammad Metwally
Automation Engineer
Egypt - Cairo
0 Kudos
Message 9 of 10
(2,924 Views)
Thanks, that worked perfectly.
0 Kudos
Message 10 of 10
(2,911 Views)