Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

how to make byte serial communication in LABVIEW

byte-IO

greetings from the Netherlands
0 Kudos
Message 11 of 21
(2,456 Views)

I think in the given VI you are reading the data as strings and convering that into again bytes. i dont supposed to that. I need only reading as bytes and sending as bytes...is that possible.

0 Kudos
Message 12 of 21
(2,453 Views)

what is the difference between bytes and characters?

greetings from the Netherlands
0 Kudos
Message 13 of 21
(2,450 Views)

characters are nothing but bytes. As you expected that i am not good in these terminalogy and can not predict what is going on the given model. But, my project is based on labview and i have to create a GUI. So, i have to finish it at any cost. AS I post a VI that send and receives data but i need to know that can the read VI give directly bytes without strings. i know that we can convert those strings.

 

                       Sorry if i make inconsistancy to you, Thank you.

0 Kudos
Message 14 of 21
(2,448 Views)

Then we continue with the next question:

What is the difference between a character and a string of 1 element in LabVIEW

greetings from the Netherlands
0 Kudos
Message 15 of 21
(2,443 Views)

i feel character represents one byte. But while sending the data how can i send byte by byte. You have given one idea after receving string of bytes that convering them into array of bytes. Today i tried that but i did not get the wings what you got in the given picture. i mean that 8 bit array rounded by red color circle in the given attachment. can you tell me how can i get that blue colr array. 

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

what version of LabVIEW do you use?

If you have version 2009 or 2010 you can open the picture (it is a snippet of code disguised as a picture) and even use it.

You also can add vi's instead of word documents.

 

This blue 8bit array is simply an integer array with the representation of U8

 

 

greetings from the Netherlands
0 Kudos
Message 17 of 21
(2,436 Views)

i know that we can copy VI and can do manipulations. i need to know how i can manually get the array byte from labview. one which i shown in red color.

0 Kudos
Message 18 of 21
(2,435 Views)

In this case I advise you to start to learn labview, not to shout what you want!

insert on the frotpanel an array and in that array insert a control ad change then the representation of the control into u8.

 

No further answers from me, start being polite before asking somebody else!

greetings from the Netherlands
0 Kudos
Message 19 of 21
(2,433 Views)

Just a shoot into the blue:

 

Do you know the reason why your instructor (well, commander, there seems to be no instruction or explanation) asking for byte communication?

My guess: The µC in the SMPS has no buffer for the UART and no flow control ... one might say it's poor programmed ... 😜  (or just out of performance/memory)

So you need to send one byte, wait some time, then send the next byte, wait some time,.. until all needed bytes are send out.

 

Taking your array of bytes, using autoindexing in a for loop you get one byte by time, convert the byte to an array on one element , convert to string (length one char) and send it out and add a configurable ms-wait (inter-byte-delay) in the loop.

(Or use typecast for conversion)

 

@Albert

...he trying to ask stupid questions to emulate a real customer.......  YMMD 😄

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 20 of 21
(2,365 Views)