04-10-2019 03:50 AM - edited 04-10-2019 03:55 AM
Hi,
I have created an array cluster, the cluster consisting of a string, DACmx channel selection menu and a boolean button.
The idea is that when user loads a plot, each plotname is populated into the array cluster.
The user then gets choose to which channel to output the waveforms
Generating the array cluster, I could do (block diagram below)
It is with the next step that I am struggling with.
As I could not find a way to list BOTH AO and DO is the dropdown menu, I thought of using the Channel: Signal Type Property Node to switch between the AO and DO list when the button is pressed.
So for example if the button in row 1 of the array is pressed, the channel selection in row 1 only changes from AO to DO. Similarly for the other rows. How could this be achieved?
Also as the last step, how to then extract the channels selected by user from the array and use them to output the waveforms?
Kindly advise,
Sherzaad
PS: I do realise that this method I'm proposing may be convoluted; so if there are simpler, more direct solutions they are of course welcomed! 🙂
Solved! Go to Solution.
04-12-2019 07:57 AM
Hi Sherzaad,
The DAQmx Physical Channel control is using IO Filtering to display only the physical channels of a specific type (either AI, AO, DI, DO, or Counters). The IO Filtering can only be adjusted in development mode, hence the DAQmx Physical Channel will only show either channel type once the VI is running.
I have found a work-around though. Instead of using the DAQmx Physical Channel control, you can create type def that has custom properties. This is how I have implemented it:
I think this is one way around it at least.
I hope this is helpful.
Best regards,
Marcus Bengths, TSE.