Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

non-printable characters in channel name

I have taken over a program where the Get Waveform Attribute function is being used.

It wants to get the name for all the virtual channels.

Running in LabVIEW 2014 (32-bit).

 

All of the channel names are of the form \00\00\00\fChannel1 or \00\00\00\rTemperature or \00\00\00\07Channel2 when the textbox is set to '\' Codes Display.

 

Is this a bug?

If so, what can I do to remove the unprintable characters?

 

 

0 Kudos
Message 1 of 3
(4,227 Views)

Hello Nyc

 

I am sorry to hear about your issue, to be honest I am not actually sure about if this is a bug or not, I checked and I get the same results with LabVIEW 2014 and 2012 when I set the channel name indicator to '\' Codes Display.

 

I think there is more than one workaround for removing the unprintable characters like the one mentioned in this thread http://forums.ni.com/t5/LabVIEW/remove-non-printable-characters/td-p/2575313. or this thread http://lavag.org/topic/14750-remove-bytes-from-string/ .

 

Are you getting any errors due to the behavior of this VI?

 

WenR

0 Kudos
Message 2 of 3
(4,188 Views)

@WenR wrote:

Hello Nyc

 

I am sorry to hear about your issue, to be honest I am not actually sure about if this is a bug or not, I checked and I get the same results with LabVIEW 2014 and 2012 when I set the channel name indicator to '\' Codes Display.

 

I think there is more than one workaround for removing the unprintable characters like the one mentioned in this thread http://forums.ni.com/t5/LabVIEW/remove-non-printable-characters/td-p/2575313. or this thread http://lavag.org/topic/14750-remove-bytes-from-string/ .

 

Are you getting any errors due to the behavior of this VI?

 

WenR


No, I am not getting any other errors due to this behavior.

I ended up removing the first 4 unprintable characters.

 

 

0 Kudos
Message 3 of 3
(4,154 Views)