04-21-2016 07:18 AM
Solved! Go to Solution.
04-21-2016 07:42 AM
Who's baud rate is changing? Should the baud rate be changing?
04-21-2016 12:59 PM
04-21-2016 01:01 PM - edited 04-21-2016 01:02 PM
@ZohaibRamzane wrote:
But I want to give my port complete allocation for data receiving so that I can minimize the receiving time.
What does that sentence even mean?
You say 3000 elements. What makes up an "element"? Is that bytes? Or is that several bytes to an element? Do you mean you need to increase the receive buffer of the serial port?
04-21-2016 03:09 PM
Give us your VI so we know what you have so far. You should also better describe the format of the data coming through the XBee.
@ZohaibRamzane wrote:
In this it takes 8 sec to receive an array of 3000 elements properly.
At 115200, you should be able to send about 92kB of data in 8 seconds (assuming a full stream of data). So how is the protocol working? Do you have to request the data first? Or is the data coming in at a steady rate (like a data point every 1ms)?
04-22-2016 03:31 AM
One element means that it consist of one byte. So 3000 elements means 3000bytes to be send after 8 seconds.
04-22-2016 04:12 AM
Here is my vi..... I have set the Baud Rate 115200.But in labview If i receive the data and plot it, it plots accurately after 8sec. But i set the sending time less than 8sec,it does not plot accurately.
04-22-2016 07:57 AM - edited 04-22-2016 08:00 AM
What do you mean by "set the sending time"? I don't see anything that resembles that in your code.
Also odd is that you set your timeout value for your serial port to 120 seconds. That means if for some reason you have a communication problem (disconnected cable?), it'll take you 2 minutes before the VISA read comes back and says it did not get the data.
What is the purpose of all of your code outside the biggest while loop where you read a measurement file? That is only going to happen once. Then you pass all the data to assorted small whileloops that run as fast as they can working on the same data every iteration and either passing it to a subVI if the boolean is true, or doing absolutely nothing if the boolean is false.
04-23-2016 01:52 AM
04-23-2016 04:20 AM