06-04-2014 07:09 PM
Hi all,
I am currently trying to build an execuatble file that is dummy proof and has variations of the application available. I am currently trying to give the user the ability to select physical channels from the front panel, via a cluster of check boxes or push buttons... etc. I then have a string array containing all the names of the channels. I was trying to run this through a for loop with a case structure inside, and when false, the column of the array would be deleted. Instead i get an empty array column, which does not work when it goes into the active channel node.
So in short, how do i delete this column from the array in a for loop?
Here is a phot of something ive been trying.
Or if there is an easier method to call channels from the front panel, im all ears.
Thank you
Solved! Go to Solution.
06-04-2014 07:31 PM
06-05-2014 11:50 AM
Do you have any examples of this or a link to an example? I will fish around, but if you have one right of the top of your head that would be appreciated.
Thank you.
06-05-2014 11:55 AM
If you just make a control off of the Physical Channel Terminal you'll have the control that lists the available physical controls. You can also right click and get I/O filtering to only show terminals of specific type. Attached is 3 of these controls that all behave the same way.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
06-05-2014 12:04 PM
Hoovah,
Do you have this vi in a 2010 verison?
06-05-2014 12:05 PM
Saved in 2010. But again you can make these your self by simply creating a control from the Physical Channel Terminal.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
06-05-2014 12:14 PM
So the reason id like the cluster of push buttons, is to make the executable fail proof, for someone who may not know exactly what they are doing with labview. Also I would like to be able to select multiple channels, that may not be in order from 0-15. Ive opened the daq assistent vi and i have been trying to edit this to do so with a cluster of radio buttons, which feed into the daqmx acive channel property node. Is this more simple to do by using the physical channel conrol as you say?
06-05-2014 12:24 PM
Well yeah. You could use an array of those Physcial Channel controls. Then use the DAQmx Flatten Channels to String go get multiple channels. Or you can use on Physical Channel control, click the down arrow and browse. From there you can use the CTRL key to select multiple channels.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
06-05-2014 12:26 PM
06-05-2014 12:40 PM
Okay,
So if i do open up the daq assistant, would i wire the physical channel control to the physical property node inside the vi? or should i completely rewrite that part of the vi without using the daq assistant vi?