LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQmx channel from string

Solved!
Go to solution

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

0 Kudos
Message 1 of 2
(3,958 Views)
Solution
Accepted by topic author Artemiss

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.

 

Troy - CLD "If a hammer is the only tool you have, everything starts to look like a nail." ~ Maslow/Kaplan - Law of the instrument
Download All
Message 2 of 2
(3,956 Views)