06-06-2020 02:00 PM
@DNAS0310 wrote:
so how can i set terminal config for different physical channels like this?
That control could be a datagrid, or a ListBox/Table. If it's the latter than you need to monitor when some one clicks on a table cell and place a "ring control" there as a "pull down" menu. As I said earlier different channels on the SAME DAQ can have different allowed properties that you would need to account for.
I used a Table Control and Ring for the following GUI. Note that the some channels do not have an allowed differential input. In my GUI channels that are used as Differential are unavailable to the user unless they are used in RSE, NRSE, etc.
mcduff
Note the DAQmx Create Virtual Channel (VI) has a default terminal input.
06-07-2020 09:04 PM
1.it's very helpful if you can post the actual GUI VI instead of an image.
2.the DAQmx Create Virtual Channel (VI) has a default terminal input indeed,in there all the channels just have one input terminal configuration,but I want to set default for different channels in different "pull down" menu.
thank u!
06-07-2020 11:26 PM
@DNAS0310 wrote:
1.it's very helpful if you can post the actual GUI VI instead of an image.
All you posted were images. Now you know how helpful they are. 😉
The GUI I posted is not a simple VI, it is multiple VIs working together. I cannot just post them as they would need to be modified to work in your system. I would need to modify them to work in a standalone system, as they are integrated in the current program. Plus the owner of the work who paid for it would not be happy.
You are asking us HOW to make a GUI. I gave you some ideas, now you need to build your own GUI. We, at least me, cannot work for free. We can help, but if you just show pictures, all you will get in return is pictures. You need to post what you have done and where you are stuck.
@DNAS0310 wrote:
2.the DAQmx Create Virtual Channel (VI) has a default terminal input indeed,in there all the channels just have one input terminal configuration,but I want to set default for different channels in different "pull down" menu.
thank u!
You need to use DAQmx properties to find the current terminal configuration and the possible terminal configurations; some devices may only have 1. Each channel may have different configurations; typically some have differential and others do not.
The properties you need are below.
You will need to loop through each channel on your device.
mcduff