LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

表格数据转换

大家好

我有个关于表格数据传递的问题,表格中的数据AB两列是通过读取程序中的数据的来,C是通过计算AB的来(如 A+B=C),

 

问题:

1 如何禁用AB数据,即不能修改AB;

2 修改C数据时弹出需要输入密码的操作,密码正确可以修改数据,错误则不能操作

0 Kudos
Message 1 of 8
(3,088 Views)

Check Table mouse down? event.

If column number/header is A or B, discard the event.

If column C, then popup a subVI for username/password check.  Discard the event if password isn't right.

 

George Zou
Message 2 of 8
(3,084 Views)

Thank your for your apply.

But  i am newer .

 

can you give me a example?

0 Kudos
Message 3 of 8
(3,080 Views)

See attached VI.

 

George Zou
Message 4 of 8
(3,054 Views)

thank your !

0 Kudos
Message 5 of 8
(3,043 Views)

Hi Zou

 

     I have modified your Vi. But I have some problem.

 

1 your table control is empty,but I need some data in it . The data come from the code. So the data of C cannot be modified I want modify the data of C

,how can I do it?

 

2 I  Add my  password check subVI in the Vi ,But it is not be run.

 

The attaché is the modified Vi and my  password check subVI

 

UserID=test
Passwd=test

My English is poor.

 

我英文不是很好,抱歉!!

怕上面的问题没有阐述清楚,所以我在用中文说下目前存在的问题。

首先我想实现的功能是:表格AB中获得程序中得到的数据(如传感器的数据等),而表格中C是由AB计算获得数据,而在某些情况下,C的数据需要修改(C是由AB的来的,不清楚这种方案是否可行),修改C的过程中,弹出密码框,需要输入用户名和密码,正确可以修改C数据,否则不能修改

我修改后的程序存在的问题:

1 你原来的Vi中表格数据是空的,所以C可以任意修改,而我希望得到,C是由AB数据的来的,而C还需要修改(我觉得是不是一个表格不行,需要重新建立另外的一个表格,使得C的数据与AB没有关系),我改后的Vi没法修改C的数据。

 

2 我在你的Vi中“Add your password check subVI here” 位置添加了 我自己的密码处理方法,不知道什么原因,没有用,你能再帮我看看嘛?附件中是我修改的代码

 

 

liang

Download All
0 Kudos
Message 6 of 8
(3,041 Views)

Some Body can help me!!

0 Kudos
Message 7 of 8
(3,024 Views)

>  你原来的Vi中表格数据是空的,所以C可以任意修改

C可以任意修改的原因是需要一个VI,即:“Add your password check subVI here” 。

 

> 我在你的Vi中“Add your password check subVI here” 位置添加了 我自己的密码处理方法,不知道什么原因,没有用

1。不要用动态调用,直接拖入VI即可。

2。文件名可能有误。

 

 

George Zou
0 Kudos
Message 8 of 8
(3,013 Views)