LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to encode HEX display in labview

im currently doing data acquisition on solar car. the problem now is when i connect NGM software via wireless to labview using example basic serial write and read, i get some HEX display that looks like this 0000 0000 0000 0000 0080 8000 8000 8080 0000 0000 0000 00fc e680 lee67800 0d53...can i know what is the NGM send to the labview?
0 Kudos
Message 1 of 16
(3,207 Views)

Do you have a string indicator or a numeric indicator? If it's a string indicator do you have it set to hex display mode or normal display mode? What you posted implies it's on hex display mode. If it's on hex display mode have you tried switching to normal display mode? What does the documentation for the device say that you're supposed to get? Does it say you're going to get a bunch of hex values or does it say you're going to get some human-readable characters? We don't have the device or the documentation.

0 Kudos
Message 2 of 16
(3,188 Views)

i have string indicator and have it been set to HEX display. if i change it to normal display it will show unidentified value.

so the problem is i dont know what NGM has send to labview. attached is NGM manual,u can try to understand it and encode the HEX value that i get

 

0 Kudos
Message 3 of 16
(3,165 Views)

According to the attached manual it looks like you queried a whole page of registers. So each register value is tab delimited and the order of registers is defined by the page you queried.

You have to convert the 16bit register values from Hex to Int16 ( i.e 0100h = 256 ) using the HexadecimalStringToNumber VI.

 

Hope it helps

Christian

0 Kudos
Message 4 of 16
(3,148 Views)
0 Kudos
Message 5 of 16
(3,129 Views)
0 Kudos
Message 6 of 16
(3,120 Views)
0 Kudos
Message 7 of 16
(3,114 Views)

Next transmission due in 7 minutes

Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



0 Kudos
Message 8 of 16
(3,111 Views)
i dont know why the previous post doesnt appear.. christian..i stil not so clear about your explanation..can you show me example by trying to encode the HEX display that i get 0000 0000 0000 0000 0000 0080 8000 8000 8080 0000 0000 0000 00fc e680 1ee6 7800 0d53 0000 0000 0000 0000 0000 0000 0000 7800 f880 7880 8000 8000 8080 53fe fce6 8000 0000 0080 0080 8000 0000 0000 0000 0000 001e e678 00f8 8078 8080 000d 53fe then can you tell me what is it according to the manual..TQ
0 Kudos
Message 9 of 16
(3,103 Views)

How do you get this data? Does it send it continuously, do you send an enquiry? Tell us more about how you get this data.

Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



0 Kudos
Message 10 of 16
(3,089 Views)