LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

extract the channel name from the attribute data from a waveform

Solved!
Go to solution
Highlighted

Good day

I am looking to extract the channel name from the attribute data from a waveform .

The data is generated using DaqMx create channel then passed to Analog 1D Wfm  read

I get the data but it seems to have a carriage return which placed it one line down and I cant find a wat to correct this so that I can sent the data to a array for the write measurement file.

n3ow_0-1600782789164.png

 

0 Kudos
Message 1 of 3
(137 Views)
Highlighted
Solution
Accepted by topic author n3ow

Hi n3,

 


@n3ow wrote:

I am looking to extract the channel name from the attribute data from a waveform .

I get the data but it seems to have a carriage return which placed it one line down and I cant find a wat to correct this


So you already get the requested string, but you want to add the TrimWhitespace function to remove CR/LF chars?

How are those channels created? Why is there a CR/LF in the channel name?

 

You can define the datatype you want to get from GetWaveformAttribute so you don't need to handle variants at all:

Best regards,
GerdW

using LV2011SP1 + LV2017 (+LV2020 sometimes) on Win10+cRIO
Message 2 of 3
(134 Views)
Highlighted

Thank you that will clean things up as well.

have a good day

jay

0 Kudos
Message 3 of 3
(119 Views)