From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Associate a description to the physical channels to be displayed on the graph and output file

Solved!
Go to solution

I would like to associate a descriptive name to each channel. I would like the save file and the graph to show the description of that channel as well as the name of the physical channel.

 

How can I make a graph that shows me the description of each channel on the legend (instead of or in addition to the name of the physical channel)?

 

Sorry but I can't do it being a newbie on Labview.

 

RobotC08_0-1627987269112.pngRobotC08_1-1627987299363.pngRobotC08_2-1627987339712.png

 

0 Kudos
Message 1 of 8
(1,642 Views)

How do i programmatically change plot legend names

 

Just wire your channel descriptor to Plot.Name

0 Kudos
Message 2 of 8
(1,624 Views)

Can I ask you How?

 

The goal is to uniquely provide a description (or similar) to each waveform. This description must then be parametrically recalled on the graph.

 

RobotC08_0-1627993689876.pngRobotC08_1-1627993721079.png

 

0 Kudos
Message 3 of 8
(1,620 Views)

It says in the link i provided.

 

Wire a Description string to Plot.Name with the ActPlot set to what you need (presumably for loop counter since you use it to name a scale)

0 Kudos
Message 4 of 8
(1,604 Views)

The VI is big and cointains many other types of AI. I can't come up with the robust solution. 😞 😞 😭

0 Kudos
Message 5 of 8
(1,594 Views)

This work could possibly also be done at the AIVoltage level, but I can't connect a multi array. Can you help me?

 

RobotC08_0-1628060048104.png

 

0 Kudos
Message 6 of 8
(1,538 Views)
Solution
Accepted by RobotC08

You can use DAQmx Flatten Channel String when setting up multiple channels.

 

names.png RamonG_0-1628062727151.png

 

0 Kudos
Message 7 of 8
(1,533 Views)

Very good!!! thank you so much guys.

0 Kudos
Message 8 of 8
(1,529 Views)