03-21-2011 09:08 PM
I am attempting to abstract from the user the internal routing of counters in my DAQ tasks. So, on the front panel I have a device name control to which I want to add the specific channels to in my code. The only way I can think to do this is to cast the device name to a string and concatenate the channel to it (e.g. "Ctr0InternalOutput"), but how can I get from this string to a single channel that can be used as the source for a DAQmx timing vi? Unflatten channel doesn't seem to work as this just ouputs a string and I need an NI terminal type.
Cheers
Solved! Go to Solution.
03-21-2011 09:33 PM - edited 03-21-2011 09:38 PM
As far as I know you can treat it as a string. Just concatenate. (Note the forward slash)
If you really want it to be the right type (rather than let LabVIEW typecast it for you) you could insert a typecast.