LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQ channels set


@DNAS0310 wrote:

so how can i set  terminal config for different physical channels like this?

 

DNAS0310_0-1591446881875.png


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.

 

Snap8.png

 

snip.png

0 Kudos
Message 11 of 13
(430 Views)

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!

0 Kudos
Message 12 of 13
(409 Views)

@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.

  1. Steps
  2. Make a table or listbox control
  3. Use the event "Mouse Down?" for the table.
  4. In that Event Case use the method Point to Cell method to find out what cell the mouse clicked on.
  5. Use the properties of the Table control to set the active cell.
  6. Get its size and position.
  7. Set your ring control to the same size and position.
  8. See this link and search for others on Google "drop down menu listbox labview"

@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.

 

Snap13.png

You will need to loop through each channel on your device.

 

mcduff

Message 13 of 13
(398 Views)