LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Convert String to Decimal for Zigbee on NCD board

Solved!
Go to solution

Hi,

 

Thank you for your response. I am having trouble understanding what is posted however. I am finally able to get an output from the R Visa, but it only returns "U". So I was wondering what is within the case structure labeled "12 bit"? It seems like a lot is going on there, but I would like to be able to see what the outputs are in Dec or number format. 

 

Thank you. 

0 Kudos
Message 11 of 15
(375 Views)

Yes, and the ascii code for an upper-case U in decimal is (drum roll please): 85!

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
Message 12 of 15
(372 Views)

Capital U is an 85 (you really should keep an ASCII Table near by at all times).  Did you change the string to a byte array?  From there, Jeff was combining bytes to get larger data types based on the manufacturer's command structure for a 12bit acquisition.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 13 of 15
(371 Views)

Thank you Everyone!!! 

0 Kudos
Message 14 of 15
(363 Views)

@mikeporter wrote:

Yes, and the ascii code for an upper-case U in decimal is (drum roll please): 85!

 

Mike...


Not bad for coding from spec!Smiley Very Happy


"Should be" isn't "Is" -Jay
0 Kudos
Message 15 of 15
(359 Views)