LookoutDirect how to lookup text in an Excel file

Join Date
Aug 2003
Posts
71
I Have an Excel file with 200 rows. The first column has the Item Number and the second column has the Description.

I need to do a lookup based on the Item number found inside a PLC variable and bring only the corresponding Description column to LookoutDirect.

Does anyone have an idea on how to do this?

Thanks
 
I've done a little LKD programming and I think I'd start with a data table object (two dimensional) and a POT object. My memory's not fresh on this but, I believe you'll need to read the Excel file into LKD to get started.

Devise some means to step through the data table using the POT object as the row index. Read the item number at each row to check for a match with your search argument. When a match is found, read the corresponding description field into a text object. The data table addressing takes a little getting used to but it's not too bad, really.

What I've described is a straight sequential search - simple, but about the most inefficient way to go that there is. If speed is important and your file is sorted (IIRC, there is a sort function available in LKD) and you're clever with LKD, you could work up a binary (or other) search algorithm to speed things up.

You could also post your question at the AD website, or call them. National Instruments, the maker of Lookout also has a forum for the product. Just don't mention that you're using the 'Direct' version, I've found this decreases the helpfulness factor.
 

Similar Topics

I have been working on a crash course in LookoutDirect and I have to start with some advanced tools... Namely the DataTable Object I have a...
Replies
0
Views
1,157
Does anybody knows how to make "bit and" or "bit or" in lookoutdirect 4.5? I stored bit info in the words of PLC V-memories, but I just could...
Replies
2
Views
1,712
NI's software are always so hard for me, please help me with some basic questions: 1) Is there a function to make all the object to the same...
Replies
0
Views
2,754
I understand how the system works: EA7 (Cmore) <--RS232--> DL260 (PLC) <--Ethernet--> LookoutDirect 4 but I have no idea if its possible...
Replies
1
Views
1,837
Hi, I am working with a DL06 PLC. I am trying to a develop a LookOut Direct HMI for this tainer. I would like to know if there is any option in...
Replies
2
Views
2,416
Back
Top Bottom