Lookout

cancel
Showing results for 
Search instead for 
Did you mean: 

4) Numerial input for a group of data

LookoutDirect 4.5

 

4) I have a table of hundreds of data, and all of them need a input. How can I make only one numeral input for all of them? That means I click any data in the table I can get to the same numeral input popup window and enter a number and it goes to the object I clicked on?

0 Kudos
Message 1 of 8
(6,529 Views)

Two useful examples

http://zone.ni.com/devzone/cda/epd/p/id/4681

http://zone.ni.com/devzone/cda/epd/p/id/4605

 

It uses the symbolic link to multiplex the pot. The trick is the expression of the link. Maybe you can construct a dynamic expression to represent different cell of datatable by changing one pot or two.

 

Ryan Shi
National Instruments
0 Kudos
Message 2 of 8
(6,529 Views)

Hi Ryan,

 

The exampls are very useful.

 

But I'm still not clear about what I should do with my case. Like the attached picture shows, I have a table stored in the PLC, V3000, V3001... are the addresses.

 

I 'd like to have a base address V3000, then all the values will be displayed like the picture, (with the expression which shows the base address + 1,2,3 ...?)

 

And I input the row number I would input, for example 2, and all the input line will be the V3020, V3021...

and if I input the numbers in one of the input boxes, I will get the PLC's value changed.

 

Can you make a simple sample program for me?

 

Thanks!

0 Kudos
Message 3 of 8
(6,514 Views)

LookoutDirect 4.5

 

I think this may use dynamic symbolic link, but I haven't got clue how the link works.

0 Kudos
Message 4 of 8
(6,509 Views)

I just edited lks with a text editor and successfully displayed all the data with expressions. Now I am still working on using a string to locate an object. or using a variable contains the PLC address to get the value of the adress.

0 Kudos
Message 5 of 8
(6,506 Views)

Based on the multiplex_oneintomanyout.lks, the link's dynamic expression is

"PLC.V30"&Selector_Pot1&Selector_Pot2

Assume the Selector_Pot1 and Selector_Pot2 are both 0~9.

 

The Input_Pot's remote source is [link]

 

In this way, you use two pots to dynamically select an address, and connect to the input pot.

 

 

Ryan Shi
National Instruments
0 Kudos
Message 6 of 8
(6,474 Views)

Ryan,

 

It doesn't work. See the attachment below.

 

I tried many different expressions of the links, even I directly used DL1.V3100, none of them worked.

 

I noticed that in some expressions the link wouldn't show up in the selection list of the Pot2 remote URL, mycomputer\process1; and if I click on mycomputer\process1 under network, the Lookout itself became dead, and I got to shut down lookout.

 

If you have a PLC (may not be the same DL260 as I used) Please try to make this test program work. I doubt the dynamic link will work in this way.

 

If it doesn't working in this way, please find another way to help.

 

Thanks.

Download All
0 Kudos
Message 7 of 8
(6,466 Views)

I have tried Modbus object connecting a Modbus slave. It works as expected.

Do you see alarms? What's the alarm message?

 

What if you directly input DL1.V3100 to pot's remote source?

 

Ryan Shi
National Instruments
0 Kudos
Message 8 of 8
(6,446 Views)