08-10-2008 03:19 PM
08-10-2008 03:32 PM - edited 08-10-2008 03:32 PM
08-10-2008 10:17 PM
actually i have string of data avilable which i am catenating into array by "build array" function after converting them to 16bit integer word.i have attached the vi for your further kind assistance....when that function passes through visa 16 bit integer(2 bytes ) become 16 bytes. please have a look. what i want is that after passing through VISA bit should remain a bit
08-10-2008 10:44 PM
08-11-2008 02:35 AM
ok i got ypur point a little.................... let say that i have a number "32768" .its binary conversion is "100000000" (2 bytes) whta i actually want is when i transmitt "32768" it get transmitted over RS-232 cable as two bytes............. just tell me how can i do that as simple as possible. i have applied one technique i have split number into two bytes (hi and lo)
then then i append high and low byte into array then i used byte array to string convertor ,let say for example hi byte was "65" and lower one ws "67" after converting to string the corrosponding ASCII were "A" and "C" and they get transmiited as sinle byte each .what i want is data to become binary version of 65 (which is"1000001") but still be transmitted as one byte and read as 1000001 on the hyperterminal of other PC through PIC microcontroller.i hope i have made my point clear .. i am working on my project which has a dead line soon i am stuck here i would be very tankfull if u can kindly farword me your e-mail ID for further assistance i would be very thankfull 2 you
08-11-2008 08:46 AM
The attached example in 8.0 converts a U16 into two U8, builds an array and with the Byte Array to String, converts to the hex string 8000 (two bytes). Note that the string indicator is configured for Hex Display (right click option).
Now, when you say you want to see '1000001 on the hyperterminal of other PC', you are contradicting yourself. Hyperterminal cannot be set for binary display so if you want to see '10000001' in Hyperterminal, then you need 8 bytes (one for each ASCII character).
I hope I have made myself clear.