LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Module Channel Name To String

When I pull a channel into my block diagram from my rio I want it to automatically generate the name of the channel into a string that I can then use to create a header in my write to spreadsheet file.

0 Kudos
Message 1 of 5
(2,630 Views)

Just wire it into a string input.  It will coerce to a string.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 5
(2,624 Views)
This will give the data from the channel in a string format. I would like to auto populate the name of the channel into a string.
0 Kudos
Message 3 of 5
(2,606 Views)

Jerwil and JTorpe,

 

Can you provide an example of what you are seeing, because in my tests, the channel name prints just fine.  Start by taking a screenshot and we can go from there.

-Jim B
Applications Engineer, National Instruments
CLD, CTD
0 Kudos
Message 4 of 5
(2,565 Views)

@crossrulz wrote:

Just wire it into a string input.  It will coerce to a string.


This is true and to add I have also seen explicit conversions where you can use a Concatenate string (adding nothing) or using a Type Case to a string.  But these shouldn't real be necessary because coercsion should work.

0 Kudos
Message 5 of 5
(2,553 Views)