07-23-2008 01:30 AM
JoeLabView wrote:
I just read this thread and I must say I'm a bit confused..
Are you still getting errors during your serial transfer? Are your settings correct? 2400 seems a bit slow. I would have expected (at least) 9600. Was 2400 specified in the PIC's specs? I may have missed which specific PIC you are using, which part no is it?
If you are still having issues with serial communication, then that should be resolved before moving on the the array.. 😉
R
07-23-2008 02:46 AM
07-23-2008 03:02 AM
This thread is very dificult to follow. Sounds like the daq is a pic comunicating to a pc through labview over a serial port.
Voltages between 1v-2v is hard for a pic chip to to determine high or low. However, I dont see how that would effect serial comunication. Or how that would effect an analog reading from the pic chip. Could you possibly draw your layout and/or basic pic schematic/configuration. That might help us understand the problem more.
Also, If you use a for loop and connect the array to it, on the inside of the for loop you will get one item and a time from the array. Every loop will give you the next item. The iteration [ i ] will tell you what iteration you are on starting at 0. This makes coding and reading easier for big array's. if your array is only 4 bytes i wouldn't even use an array. a single string can hold 256 bytes....maybe more im not sure about labviews string size.
Theseas, more detailed information will help us help you faster. Have i seen you on other programming forums? Your name seems familar. Like on vbforums?
07-23-2008 03:24 AM
07-23-2008 08:36 AM
Still confused....
OK.. the BAUD rate portion seems better... 9600 & 115200 are more reasonable values.
It appears that you have to work on the hardware issue(s). Can you provide more description of the hardware?
R
07-23-2008 10:35 PM
JoeLabView wrote:
Still confused....
OK.. the BAUD rate portion seems better... 9600 & 115200 are more reasonable values.
It appears that you have to work on the hardware issue(s). Can you provide more description of the hardware?
R
07-24-2008 03:45 AM
Mask Values | Hex Codes | Description |
---|---|---|
16 | 0x10 | Flushes and discards contents of the receive buffer (same as 64). |
32 | 0x20 | Flushes and discards contents of the transmit buffer by writing all the buffered data to the device. |
64 | 0x40 | Flushes and discards contents of the receive buffer (does not perform any I/O to the device). |
128 | 0x80 | Flushes and discards contents of the transmit buffer (does not perform any I/O to the device). |
07-27-2008 07:01 AM
07-27-2008 07:36 AM
07-27-2008 02:20 PM