From Saturday, Nov 23rd 7:00 PM CST - Sunday, Nov 24th 7:45 AM CST, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Saturday, Nov 23rd 7:00 PM CST - Sunday, Nov 24th 7:45 AM CST, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
05-01-2016 01:53 AM
I am doing a project in which I am receiving data bby Xbee at remote end.I have set the baud rate of sending and receiving side,115200. I need to send 3000 bytes every time. With the baud rate mentioned, the data must be received in less than a second. I have used LabVIEW for displaying the data waveforms.Now the problem is I am receiving data in 2 seconds in Xctu.but in LabVIEW if I receive the same data and plot it,the waveforms get disturbed.But if I increase the sending time,say 7 seconds,the waveforms are good.Now the problem is with LabVIEW speed to update the previously received data with new data so that I could plot the waveforms correctly.That's why I e want to give complete access of com port to LabVIEW. Please help me.
05-03-2016 11:51 AM
Hi Zohaib,
I cannot access your sequ.vi so I do not have the full picture of what is going on. It sounds as though your data is being buffered and you may be trying to update your waveform display too often. There is only a single User Interface Thread and if you continually spam it with commands to be updated, it will slow the execution speed of your entire program. That being said, you should stick with the general guideline of sending more less often. Try updating the waveform display once or twice per second by throwing a wait function in your update loop, this will force the UI Thread to yield the CPU so other threads can receive processing time.
05-03-2016 01:44 PM
05-03-2016 04:30 PM
As far as I am concerned, I believe you are having LabVIEW claim the serial port (COM13) and it is an all or nothing relationship. LabVIEW is in control of access to that resource. I would have you take a look at this resource to shed some light on what is happening behind the scenes:
http://www.ni.com/white-paper/4052/en/
Have you been able to benchmark the rate you are talking about in any other application?
What do you mean by "sent the data after 7 or 8 seconds"? Are you saying you start communication with the Xbee after that amount of time or you update the graph after that amount of time?
What do the graphs look like if you plot them before 7 seconds?
05-04-2016 12:42 AM
05-04-2016 10:05 AM
Could you please attach screenshots illustrating the behavior you are seeing?