09-22-2020 08:53 AM
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.
Solved! Go to Solution.
09-22-2020 09:02 AM - edited 09-22-2020 09:05 AM
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:
09-22-2020 09:20 AM
Thank you that will clean things up as well.
have a good day
jay