01-29-2011 04:58 AM
01-29-2011 06:09 AM
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.
01-29-2011 08:57 AM
01-29-2011 09:19 AM
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.
01-29-2011 11:01 AM
01-29-2011 02:00 PM
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.
01-29-2011 02:07 PM
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
01-29-2011 02:23 PM
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.
01-29-2011 02:49 PM
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!
02-04-2011 09:12 AM - edited 02-04-2011 09:16 AM
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 😄