04-02-2011 10:38 AM
Hi,
I am communicating with my AVR32 which will give response when it reads(if(uart_char[0]==0x20) and if(uart_char[0]==0x10) lot more like this). I have taken for loop and using the indexed counting for writing the char. As long as i am not getting any reply if do with for loop.
But i am getting reply if i do with indexed array constant as like below picture. I did not undestand where is the problem. i think probablly, with space infront fo the characyer incase of for loop.
Please some suggest me.
04-02-2011 10:40 AM
here is the attchment.
04-02-2011 01:15 PM
What happened to NI forum, is any one angry on me. I am really helpless and cursed by Ni forums. Please some say anything.
04-02-2011 02:30 PM
Well, I for one do not understand what your question is or what the images are supposed to show. You are typecasting to 4 bytes. Perhaps that is your misunderstanding?
04-03-2011 02:40 AM
yes, how can I send with one byte and in the form ascii charcter. How can I convert the decimal loop count(for loop) to one byte ascii character. Yes, the type cast function is giving 4 byte after convertion but i don't know how to change that decimal number count(each iteration count) to one byte ascii. Is there any way for this. can you help me.
04-03-2011 06:15 AM
04-03-2011 06:27 AM
Hi,
I am sending ascii only to write visa. Problem is before i am sending 4 bytes to write visa instead of one byte ascii character. now it is ok and no more problem with that. I am facing problem with combo box. you can help me here http://forums.ni.com/t5/Instrument-Control-GPIB-Serial/Combo-box-help/m-p/1509960........
Thank you all and a special thanks to dennis.
04-03-2011 03:08 PM
To send a single byte, you simply convert the value from the iteration terminal to a U8. Take care on how often the for loop iterates, of course.