03-05-2008 02:48 AM
03-05-2008 05:01 AM - edited 03-05-2008 05:02 AM
03-06-2008 02:32 AM
03-06-2008 03:50 AM
03-12-2008 10:32 PM
03-13-2008 03:14 AM
03-13-2008 03:45 AM
hi,
i'm currently not in my lab so i can't try it out yet. anyway from wat i've tested earlier, the string is read in as individual characters at a time. this means that let say my data value is "123\n", it will be read as "1" then "2" then "3" and then "\n" which is 4 bytes and this continues for the rest of my other values. at my program for my PIC, it's actually suppose to be sending each data as a single string (single byte?) but i don't understand why is it read as separate bytes for each digit. i found out abt this when i tested by setting the 'number of bytes to read' instead of using the 'read number of bytes at port' subVI like i did in my VI. so let say i set the 'number of bytes to read' at 3, and the value tat is suppose to be read is 4 digits, labview will display the first 3 digits and then jump to display the 4th digit and \n and the 2 digits of the next value.
actually i dun understand if this is a problem at my PIC program part or is it because serial port will always read those as individual bytes? i've attached a copy of my PIC program in C language. have a look at the portion which do the conversion of the data to string.
thx alot for your help and patience.
03-13-2008 03:48 AM
Sorry to interrupt you guys.I have seen you guys that you people have attached some files with your messages.Can you please tell me how to attach a file/vi with the question you are putting forward to the forum.i have a querry that i thought of putting in front of you but i couldnot upload the vi.
Sorry again for disturbing your discussion.
03-13-2008 03:52 AM
03-13-2008 03:59 AM - edited 03-13-2008 04:00 AM