12-13-2006 02:59 AM
Thanks
I got your point and i understood that there is nothing to do with Baud Rate in this matter. I think it s not gonna help you if I'm posting my vi because the gauge to which I'm connecting is not available to you.
Anyway my vi is working fine with a value for byte count as 97 and it will be working fine upto a value of 99 and from a value of 100 onwards it will take 10 seconds to take a single set of data from the gauge, as for a value of 97 or 98 it will giving data @ 4 sets per second. Now if I'm asking for a little less data from the gauge then the byte count should also reduced accordingly so that the gauge gives a steady flow of data to my PC.
I think you got my exact problem. !!
12-13-2006 01:01 PM
12-13-2006 07:59 PM
12-14-2006 01:43 AM
12-14-2006 02:11 AM
12-14-2006 04:25 AM
12-14-2006 04:47 AM
12-14-2006 08:26 AM
12-14-2006 08:42 AM
If you would go back to the example I posted, you would notice that the flush buffer is only done once at the very beginning and after the serial port is initialized. This is done to clear anything that might be in the buffer before sending the first write command. If you need a flush buffer after doing the VISA Read, then you haven't read all of the data.
You could also look at it again to see how the VISA Bytes at Serial Port can be used. This has been mentioned several times as the only way to know how many bytes to read but your last example still doesn't do this. Basically, you would replace the single VISA Read you have with the code below.
It would also be nice to see the reast of your diagram. If you are having problems maintaining a certain acquisition rate, it may be due to whatever other code you have in the loop.
12-15-2006 05:13 AM
Thanks for the support.
Sorry for posting a partial picture of my vi. It was not possible to include all of the accompying functions.
As i said earlier when i was trying to communicate with a baud rate of 9600, read byte count value of 99 was working absolutely fine. But for 38400 that wont work fine. And all of my doubt is about this 'byte count' only.