取消
显示结果 
搜索替代 
您的意思是: 

fieldpoint drop down menu executable

Hi,

If I get what your problem is, you would like to store the FP IO as default and do not want the user to select the IO constant again.  The Tag solution for you will work.  Another possibility is to use a regular FP IO constant and Make Current Values Default, such that the next time someone opens up the file, the IO point will retain the value.

I hope this helps,

If this is not what you want, can you please clarify the problem with a description.

Regards,


Nadim
Applications Engineering
National Instruments
0 项奖励
11 条消息(共 15 条)
899 次查看

The problem is the tag by itseld does not work. I have to attach the FP read or write there so it can appear. The idea is I have to use the tag not the constant so the user can select both use the default value or choose a new value. Please tell me is there anyway to make the tag drop down the menu without using the FP read or write VI?

 

0 项奖励
12 条消息(共 15 条)
894 次查看

Hi Thang,

The FP Read makes a call to the function ialv_getTagElements in the FPLVMgr.dll using the Call Library Function Node.vi to get the associated tags.  So if you take a look at the attached VI it just makes a call to this function, and has an output to the channel that I choose.  I turned this into a .exe file and I was able to choose a channel that I wanted, so I believe that this will work for you.  If it doesn't let me know.  Thanks.

Regards,

Michael
Applications Engineering
National Instruments
0 项奖励
13 条消息(共 15 条)
877 次查看

Thanks,

I tried with  the new solution, and it works.

But I don't quite understand what this VI does. From this example, I found that there are a lot of VIs which I don't know when I should use it. There is not any material tell about these VIs' feature.

Thang.

 

0 项奖励
14 条消息(共 15 条)
840 次查看

Hi Thang,

I am glad to hear that the VI that I posted worked out for you.  Basically what the VI is doing is calling a dll (with a Call Library Function Node) that a FP Read/Write Vi calls when associating a FieldPoint device and channel to the operation.  A great place to look for more help on FieldPoint VI's is the help section in LabVIEW.  If you have a LabVIEW window open, you can click on the help Menu on the top bar, and select FieldPoint from the drop down menu.  This help file covers using FieldPoint devices in LabVIEW.

Regards,

Michael
Applications Engineering
National Instruments
0 项奖励
15 条消息(共 15 条)
824 次查看