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

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
(1,453 Views)
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 LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 3
(1,450 Views)

Thank you that will clean things up as well.

have a good day

jay

0 Kudos
Message 3 of 3
(1,435 Views)