LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how do I convert a deciaml input to a hexidecimal 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:)
0 Kudos
Message 11 of 21
(2,768 Views)

 

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:)
0 Kudos
Message 12 of 21
(2,767 Views)

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

Thanks

 

Regards

Anil

 

 

0 Kudos
Message 13 of 21
(2,764 Views)

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
0 Kudos
Message 14 of 21
(2,756 Views)

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

 

 

 

 

0 Kudos
Message 15 of 21
(2,751 Views)

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

 

 

0 Kudos
Message 16 of 21
(2,750 Views)

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

0 Kudos
Message 17 of 21
(2,643 Views)

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
0 Kudos
Message 18 of 21
(2,640 Views)

Thank you!:womanvery-happy:

0 Kudos
Message 19 of 21
(2,616 Views)

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)

0 Kudos
Message 20 of 21
(2,611 Views)