LabVIEW

cancel
Showing results for
Did you mean:

Re: how do I convert a decimal input to a hexadecimal output in labview?

Hi Anil,

The above said type of conversion you can use.So that you will get the exact value.Using simple decimal to hex conversion you will get 10 only for 16.234.

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Thanks as kudos only:)
Message 11 of 21
(2,761 Views)

Re: how do I convert a decimal input to a hexadecimal output in labview?

Anil wrote:

I want to communicate IT6800 Power supply through RS232 communication. total 25 byte String 26th is check sum.

So, you are representing one value in how many bytes??

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Thanks as kudos only:)
Message 12 of 21
(2,760 Views)

Re: how do I convert a decimal input to a hexadecimal output in labview?

in 26 byte 4 bytes represents the values . remaining fixed values . I will try with converting in to integer value.

Thanks

Regards

Anil

Message 13 of 21
(2,757 Views)

Re: how do I convert a decimal input to a hexadecimal output in labview?

Hi Anil,

the manuals for those power supplies aren't very helpful in this matter. Could you call their support?

I would guess to us integer numbers providing the Voltage in "mV" so 16.00V is given as 16000mV. I still don't know, why they use 3EB0h/16048d to represent 16.000V...

Best regards,
GerdW

using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 14 of 21
(2,749 Views)

Re: how do I convert a decimal input to a hexadecimal output in labview?

Dear GerdW

You are correct. They are converting to millivolt.

In manual conversion is wrong. May be error in manual.

I checked through exact conversion.  It is working fine.

Lot of Thanks for help.

Regards

Anil

Message 15 of 21
(2,744 Views)

Re: how do I convert a decimal input to a hexadecimal output in labview?

I think the confusion in representation is a mis-reading or a typo.

16000 decimal is 0x3e80 (Third hex digit is number 8, not letter b)

Rod

Message 16 of 21
(2,743 Views)

Re: how do I convert a decimal input to a hexadecimal output in labview?

Can you tell me, how to calculate the Check sum?

Message 17 of 21
(2,636 Views)

Re: how do I convert a decimal input to a hexadecimal output in labview?

Hi Alina,

see ITech website "IT6800 communication frame" manual, page 6: 26th byte is check sum, the sum of the former 25 bytes.

RTFM!

Best regards,
GerdW

using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 18 of 21
(2,633 Views)

Re: how do I convert a decimal input to a hexadecimal output in labview?

Thank you!:womanvery-happy:

Message 19 of 21
(2,609 Views)

Re: how do I convert a decimal input to a hexadecimal output in labview?

Please explain how to obtain a sum of 57 here?
AA 00 31 36 38 31 31 00 03 02 ZZ ZZ ZZ ZZ ZZ ZZ ZZ ZZ ZZ ZZ XX XX XX XX XX 57 (ITech website "IT6800 communication frame" manual, page 13)

Message 20 of 21
(2,604 Views)