Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Serial communication in LabVIEW 8

Dear NI support,

I have a doubt in LabVIEW-8.
I am getting serial data through RS232. I am using VISA configure serial
port
and VISA Read VIs. Data bits and the byte count are 8. I am getting ASCII
characters at the VISA read buffer. I was just wondering if there is any
way to
get the hex or decimal values. I have tried ""Hex to decimal no." block.
But
there is no output from it.

Please let me know about it.
Thanks,
Ramya.
0 Kudos
Message 1 of 4
(3,604 Views)

Hi

standard answer

Hex is just a way to view binary data, like asci is another way. Just make the display field HEx or Binary or standard.

 

greetings from the Netherlands
0 Kudos
Message 2 of 4
(3,600 Views)

and there is the string to decimal array vi to convert your visa read string into an array of U8

 

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 3 of 4
(3,597 Views)
I am able to get the decimal values from U8.
Thank you very much Henrik.
 
Ramya.
0 Kudos
Message 4 of 4
(3,593 Views)