LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

format conversion problem

Capture7.PNGI want to display 100 as it since it cannot be change but a box is appearing instead of it is there any way to make this conversion correctCapture8.PNG

0 Kudos
Message 1 of 12
(2,603 Views)

Please can anyone reply with a solution it would be a great help

Thank youSmiley Embarassed

0 Kudos
Message 2 of 12
(2,585 Views)

You seem to be working on this for weeks and have started several threads already.

We won't get any closer unless you...

 

  1. quote your earlier threads and how this problem relates to them.
  2. attach your code instead of pictures
  3. tell us where and how you want to display "100"
  4. I don't see any "box" appearing? I don't even know what that means.
Message 3 of 12
(2,564 Views)

Be patient.  You just posted it.

 

It would be better if you attached a VI with the data saved as default in the controls.

 

Also, why do you think the answer should be 100?

 

Message 4 of 12
(2,561 Views)

Thanks for attention sir

Here sir what i am doing is that i am getting an Hex Ascii string which starts each strings contain a string ID in this string i have string ID as 01 00 some other string have another string ID the main problem this conversion doesn't display the string ID it just skip it and am not able to observe which string i just recieved please check this VI and please try to help me

0 Kudos
Message 5 of 12
(2,553 Views)

Well, now you attach a VI that has a different string than what you show as default data. It seems the 0100 is in plain format, so just take the appropriate string subset (start 4, lenght 4) after removing the spaces.

Message 6 of 12
(2,537 Views)

The string i have shown in 1st message was just to give an small example that 100 is not being displayed

& sir what about those AAAA BBBB strings how to display them as it is

0 Kudos
Message 7 of 12
(2,535 Views)

Could you please attach an example VI with it

Thank you

0 Kudos
Message 8 of 12
(2,529 Views)

Hi Anjaney,

 

where the hell are you getting that input string from?

 

Your input starts with:

242C01002CAAAA2C 2B 30 30 2E 30 30 35 2C 2B 30 30 2E 33 34 34 2C

This should be translated to:

$,0100,AAAA,+00.005,+00.344,

All you need to do is:

- separate the input string at the 2C char (comma)

- convert the items between those comma to your desired values

- decide on how to convert: either take input string (blue) or convert from ASCII-hex values to float values (red)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 9 of 12
(2,515 Views)

Unless the blue is 0100 in hex, i.e. 256.

 

You attached an Excel file containing the specs before, but all I can say is that whoever invented this message format is insane.

0 Kudos
Message 10 of 12
(2,503 Views)