From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Not able to remove spaces from ASCII code Hex string

Solved!
Go to solution

Not sure, but maybe this does the job (I removed the CRC part):

example2.png

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
Message 11 of 22
(1,194 Views)

here crc.vi is a subvi

Download All
0 Kudos
Message 12 of 22
(1,191 Views)

This is giving Incorrect conversion

0 Kudos
Message 13 of 22
(1,188 Views)

The way i have did is only giving the correct conversion as this solution was given by Mr. Altenbach he knows the datasheet of these strings

0 Kudos
Message 14 of 22
(1,186 Views)

Here's what I would do (skipped the CRC for now)

 

FormatHex.png

Message 15 of 22
(1,182 Views)

But Sir Desired output is like given in this datasheet i hope you remember sir

0 Kudos
Message 16 of 22
(1,177 Views)

As the default values are attached in the VI $ should be 24 in ASCII but using this method its not like that

 

0 Kudos
Message 17 of 22
(1,175 Views)

@Anjaney wrote:

As the default values are attached in the VI $ should be 24 in ASCII but using this method its not like that


What is "this method" and what is "that" you are comparing it to? You need to be less ambiguous!

0 Kudos
Message 18 of 22
(1,167 Views)
Solution
Accepted by topic author Anjaney

I do get a "24" for the $. I haven't inspected the CRC calculation, but maybe something along these lines would do what you want after some more tweaks.

 

FormatHex3.png

Message 19 of 22
(1,166 Views)

and ir can you please help me with how it reverse will work

0 Kudos
Message 20 of 22
(1,163 Views)