LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

serial data rate

Hi,
 
I try to read the data rate that been transfer through the serial to the wifi device can some one advise me on this.
 
Thanks
 
Hussin
0 Kudos
Message 1 of 8
(3,526 Views)
Hello,
 
You will have to provide a little more information than that I'm afraid. Can you let us know what the sensor is that you are using and what drivers/software you are using to control the port. In the future it would be a good idea to surrender more information about your query as you will find you will get more and faster responses from the NI community of users aswell as when these unanswered posts are presented to the Application Engineers of National Instruments.
 
Cheers

Tom
NIUK
0 Kudos
Message 2 of 8
(3,503 Views)

Dear Tom,

Now I try to establish the serial communication. This serial is connected with wifi-Airbone 100. Then transmit to router via this wifi.

Can you suggest how I'm going to monitor my data rate based on the labview at the server and receiver side from this kind of setup.

Many Thanks

Hussin

 

0 Kudos
Message 3 of 8
(3,497 Views)

Hello,

Im presuming you have a device (Airbone) that is attached to your system through a serial port. You then write to this device using LabVIEW and this transmits the data via WiFi to another wireless device (the router) which then through TCP/IP in LabVIEW will read the data. Is this correct?

If you are using VISA for the serial operation (which I'm presuming as you didn't specify) then on the Read and Write VIs you will have an output terminal named 'return count' which will return how many bytes of data are being written or read.

On the TCP/IP read VIs you will set the amount of data to read, so using the timing within your VI you can calculate the number of bytes written or read over a period of time thus giving you your 'rate'. With the TCP/IP write VI it will return the amount of bytes written as an output terminal.

Hope this helps.

Tom
NIUK

0 Kudos
Message 4 of 8
(3,496 Views)
Hi Tom,

I'm a little bit confuse.

At my VISA.vi it got 2 write.vi. Therefore should I add it up or should I just take one of them.

Here, I attached my program.
0 Kudos
Message 5 of 8
(3,480 Views)

Hello,

It really is upto you, but to reflect what is actually being transmitted I would add up the two 'retun count' values. In addition you should make sure that your loop is indeed iterating every 100ms before trusting this as an accurate benchmark for caculating your 'rate.'

Cheers

Tom
NIUK

0 Kudos
Message 6 of 8
(3,469 Views)
Hi Tom,

Just a quick question.
It is LabViews operates with 7 bits ASCII encoding?
0 Kudos
Message 7 of 8
(3,437 Views)

Hi Hussin,

Tom is unavailable this week so I will be helping you out with your issue.  I'm not entirely clear on your question.  Each LabVIEW string character is stored as an 8-bit byte.  When configuring your serial connection, you set up how many bits are to be transferred/received in a single serial frame (the data bits input in VISA Configure Serial Port.vi).

Let me know if that helps or if you have any other questions.

Way S.

0 Kudos
Message 8 of 8
(3,421 Views)