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.
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.
10-08-2014 09:46 AM
Hi everyone,
I am using Labview 2012 and receiving some data on my serial port that I want to convert to an hexadecimal string. I have attached a VI that only enables me to convert the first part of the chain but not the rest.
Does anybody know how to do this?
PS : I don't want to have just the incator displayed in hexadecimal, I really need to make a conversion of the string to be able to work around it after.
Thanks.
User
Solved! Go to Solution.
10-08-2014 10:03 AM
What is actual input and output needed. Share the actual real time data
10-08-2014 10:10 AM
Here one possibility.
Regards, Jens
10-08-2014 10:36 AM
jg69 seems to have the answer you are looking for. String To Byte Array and then Number To Hexidecimal String followed by a Concatinate String (which will combine the array of strings into a single string).
10-08-2014 11:08 AM
See that red dot on the Number to Hex String function in the code image, that is your data being blown up into an array of U64. Yuk. Slip a for loop around the number to hex string function and it actually goes a bit faster. Goes against the grain of everything you think you know about LV, but this is one of those exceptions.
10-13-2014 10:35 AM
Hi everyone,
Thanks for your quick answers. I have been running the attached solution and it works fine. Was that what you were recommending me to do?
User79
10-13-2014 11:09 AM
That is what I was suggesting for a bit of a performance boost. Ditch the string length and just let the autoindexing handle setting N.
10-14-2014 09:50 AM
Thanks for your anwswers.
Regards,
User