LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

deleting first element from a number red by VISA serial read write vi

Solved!
Go to solution

I want to bring the serial number of an RFID card into LAbVIEW and for that i used VISA basic serial read VI..The number red by that is in the following format....

2045A15F50...im getting a square infront of tis number....How to eliminate that square???

sorry i am very new to LAbVIEW and have no idea about this...So please help me out

0 Kudos
Message 1 of 3
(2,230 Views)

The square indicates a non-printable character. Just use the String Subset or the Search/Split String function with the offset wired to a constant of 1.

 

To learn more about LabVIEW it is recommended that you go through the introduction material, tutorial(s), and other material in the NI Developer Zone's Learning Center which provides links to other materials and other tutorials. You can also take the online courses for free.

0 Kudos
Message 2 of 3
(2,223 Views)
Solution
Accepted by topic author sathyasells

The square indicates the you recieved a "unprintable" ASCII Character.  This could be a "Start of message" indicator from the serial device.  They are often used in some communications.  Reading the device manual would be a good place to learn the expected format.  LabVIEW does have some built-in String functions like "Trim Whitespace,vi" that can removes characters that are whitespace (tabs, spaces etc..) and this snippet shows how to remove all unprintable charaters from a string. 

 

string class.png


"Should be" isn't "Is" -Jay
0 Kudos
Message 3 of 3
(2,221 Views)