How to test the stability of the communication and to calculate ber using the CVI?

Our Chief Engineer gave me a task yesterday. He asked me to make testing of software and to calculate the error rate binary we would like to know our stability of communication.

However, I never touched this aspect of knowledge. I know a bit about the CVI and I want to write code with CVI bit error rate. So I could test the stability of the communication.

But I don't know how to analyze and judge the receivers codes, whether they are good or bad.

We use the Modbus communication protocol and receive data via a port series, so I want to back up all the data and record the total number of datas, marking as M.

then, save the eligible data and save the number marking as N. Thus, the error rate is binary/m (M - N).

If it's doable? Or you have a good idea. Thank you very much.

unsigned char in_data[100]; 

 inqlen = GetInQLen (comport);
 for(i=0;i

Above is my code that receives all the data I want to save the data [] array in_data and save the number.

switch(inqlen)
{
 case 19:
 {
   crc=usMBCRC16(in_data,inqlen );
   if((in_data[1] == 0x03)&&(crc==0)&&(in_data[0]==device_addr))
    {

    }
 }

Above is the judgment of condition who receive eligible data which mark as N number.

I know there is a prerequisite that I filter all the bad data. However, I don't know any good idea. I'd appreciate if someone could help me.

Thank you very much.

Best regards.

xiepei


Tags: NI Software

Similar Questions

  • How to test the domain controller security policy works or not?

    How to test the domain controller security policy works or not?

    So far, I put a security policy in the domain controller security policy, however, I do not affect client computers joined to the domain controller. and so far, if I apply the domain security policy work.

    LiuAlex

    Server must wonder about the Technet site.  http://social.technet.Microsoft.com/forums/en-us/home

  • How to test the backlight of the Simulator

    Hello Guyz

    Im kind again in the development of blackberry so its more than a new hobby as I recently an interest in java.  So my first app is an attempt to make an application which the camera back given the fon. so I would like to know how to test, without the need to put it on my son, how do I know if d backlight is turned on or off, is the way to display the interface back to the Simulator or something. I'm using eclipse and the blackberry 9800 torch Simulator. How to test the light from my pc?

    Thanks for your time, im hoping a response. Take advantage of the UL

    You can't test the flash of the camera in the BlackBerry smartphone Simulator.  You will need to test this on a real Smartphone BlackBerry.

  • How to test the context menu bbui.js in ripple?

    IM using bbui.js v0.9.4 and ripple v0.9.10. How to test the context to the ripple manu? When I run the app on DevAlpha long press peek list context menu img, but how to do this in ripple?

    I managed to understand. You must click and hold on the edge/edge of the list of img to get the img to peep context menu. By clicking on the list of img don't peep the context menu.

  • How to test the connection of the OID IT resource

    Hello

    I'm testing the connectivity of the OID IT in IOM resource. Could someone help me to know how to test the connectivity of the resource.

    Kind regards
    Nitin

    Then just go ahead and provide a resource, why are you running task scheduler

    Thank you
    Suren

  • How to crop an image pdf of permanently and insert a text using Adobe Reader version 9.5.5 box.

    How to crop an image pdf of permanently and insert a text using Adobe Reader version 9.5.5 box.

    Adobe Reader cannot edit a PDF file somehow.

  • How to test the USB on Satellite Pro C870 speed?

    Hello

    Please I have connect WD item 10 B 8 USB drive to plug 750Go BLUE.
    Please how can test if USB3 uses full speed or lower connection USB2 bus?
    Brand of disk Crystal 3.03 said 31 MB/s reading and writing! (too low for USB3!)

    Thank you

    Hello

    You can use some freeware like tools
    -H2testw
    -Drive the speed Test 3.2
    I used the H2testw to SD card check and test USB memory stick and I was satisfied.

  • How to test the audio and the video on Android

    How to test audio and video on Android?

    How it is checked when installing Skype on Android?

    What I'm asking, is available in the desktop version to Tools-> Options-> Audio settings, and Tools-> Options-> video settings. And is checked during the installation of Skype for desktop PC as Configure Skype / check your audio and video files.

    (Of course I searched the whole Skype app and found no.) I have the echo service by my microphone is weak, I am lost.)

    Thank you.

    Sign in to your ID on Skype desktop and call your android phone to test

    It's something is broken, there is not that you can do, other than downgrading to an older version. There are also a couple of settings to activate the camera and photo qualityin settings in some versions.

  • How to test the switching PXI matrix

    Hello

    I have a PXI-2530 b and I was wondering is there an accepted practice to check the viability of relay out to just look at the number of relays?  I want to know if I've damaged a relay.  From what I read so far, I have to create my own connection matrix of switching to my PXI-4071 DMM test harness to check the status of network.   Is there another way.  NOR has considered adding a self-test for relay condition?

    Thanks for your quick response.

    I thought as well, but I wanted to be sure.  Even if I know that the reeds have a long service life, it is possible have to explode or cause damage.   And since there is no procedure for calibration to the switching matrix, I was wondering how to check that this component of the system is still usable.   We use the PXI system as a way to test and calibrate an internal pacemaker tester with 112 connections.  We partition the 2530 b in 5xBlocks, 1xBlock and 2xBlocks in independent mode and then using a custom internal test adapter to provide all interconnections.  The DMM and the multi-IO are distributed in these partitions.

    For this reason, I would recommend that future matrix systems have a rudimentary way to self-test the relays are less than 3 ohms (or all that apply regarding a particular switching matrix).   Pickering is advertising for cards supporting Birst.

  • How to test the app on BB10 2 phones with unique SIM without was anything!

    Howdy. I'm quite new to the BlackBerry Development (and especially new to BlackBerry phones), so I answered a few questions that I need. I had a Z30 for awhile (and I compiled/deployed some examples of applications that it), and I just bought a Q10 I can do 'real life' tests on smaller screens. I don't have a Micro SIM I want to switch between these phones (so I can choose my "daily driver"), but I am concerned about the effect of swapping phones will have a general user, both in terms of developer level.

    -If I put the SIM in my new Q10, it "lock" development on this phone, which prevents me to test on the Z30 or will I prevented from developing on the pins are different? My BlackBerry ID is linked to the PIN? How to acquire development chips do not work when swap you a SIM card between 2 phones?

    -How to replace the SIM card from another phone BB10 affects bought apps? I'll be able to install applications on both phones (and does it make a difference if only one of the two phones is turned on at the time)?

    -Do I need a BlackBerry ID for each phone, and if it is true, how will this affect the actual process of the build/deploy/debug?

    Basically, I want to be able to use a telephone for general use and test one or more applications on both phones, and I have no idea how all this works together (or does not) when several phones are at stake.

    The Z30 running 10.3.1 last build of the OTA and the Q10 runs the last 10.2.1 OTA build (10.3.1 soon?).

    I'll wait to complete the process of implementation on my Q10 until I hear something.

    Thanks in advance for any help you can provide me.  Thank you!

    Thank you very much!  I will give that a shot. (I may be a response to follow-up later - hang )

  • How to test the object lost focus?

    How that test an object lost focus?

    Van you listen to the accent of the event

  • How to test the implementation on 9670

    How to test my BlackBerry 6.0 application that will look good on the screen 9670's 360 x 400?  I don't see how to configure the size of the screen of the Simulator.  (fledge.exe / Pocket = 9670 does not work)

    The application uses 6.0 features, so I can't just run it on a Simulator 5.0 with a screen 360 x 400.

    Thank you

    Zack

    You will need to download the BlackBerry Style 9670 Simulator.  You can download it here: http://na.blackberry.com/eng/developers/resources/simulators.jsp

  • How to test the application with the size of the diff display to ensure effective operation on all devices?

    Hello

    I work on one application and right now testing my application on BB Dev Alpha. As the resolution of the screen are different, I want to know how can I test the app on the screen size all supported?

    Take a look at this document:

    https://developer.BlackBerry.com/Cascades/documentation/UI/resolution/

    It should provide enough information about how to support the future 720 devices.

  • How to test the change of direction on the Simulator event?

    There is an example of change orientation Guide 0.92 development event.

    I add some codes for my application to deal with this event, but I don't know how to test it.

    I find that the return value of Accelerometer.isSupported on the device Simulator is true and simulator of funds, the value is false. But two of them cannot Simulator such an event.

    I know that you can test on IPhone simulator, use of change of direction "Command" + arrow keys.

    Can anyone help?

    Thank you.

    To test or change the orientation of the Simulator make sure that your using the last image of Simulator, then slide upward from the bottom right. (Not of the bezel, instead of part of the screen visible)

  • How to test the failover of dataguard environment?

    I would like to test failover (no pass) in dataguard environment.
    How to get there?

    Thank you.

    Hello;

    Happy to share my test notes:

    http://www.Visi.com/~mseberg/Data_Guard_Failover_Test_using_SQL.PDF

    These oracle notes can also help:

    Can I use manual SQL * PLUS measures for (passage, failover, etc...), if DataGuard broker has already activated and GridControl is also used? [744396.1 ID]

    Oracle10g: Passage to the custody of data and failover best practices [ID 387266.1]

    Step by step guide on how to restore doesn't have a primary database standby physics [ID 738642.1]

    Best regards

    mseberg

Maybe you are looking for

  • 750se envy: envy of the brand new office no signal to the monitor via HDMI

    Just got my new 750se envy and 25 x 25 backlit monitor. After putting it all together, I connect the monitor of the Tower via HDMI. Tower boots, display lights, I pop in setting up the drive, but the monitor says that it cannot find a signal. I test

  • Computer laptop touch screen 15: need help - restore Partitions, OS system, start-up and drivers!

    [Need help] Device name: laptop touch screen, Energy Star, 15. Model number: 15 - f023wm Device status:[Grandma] "I broke the internet.[Me] "No, I have demolished just any chance I had as a computer programmer.I'll never do it to heaven now... » You

  • Free image fade

    I have a HP Deskjet F4180 printer. I want to print disk images coloured by joining a local club similar to the car tax discs, which could be placed in a car windshield. That would be the best ink and photographic paper to use as free as possible to f

  • __Chess titans: change to keep the part saved after completion?

    Hello I did a search and finally understood what happened.  In Vista Chess Titans kept the same saved game even after completing the game.  I find wire-to-wire on the ' net to complain about this. Now, it seems that W7 Chess Titans erases the game af

  • Smartphones blackBerry documents to go – Blackberry Torch 9800

    Sometimes back I improved native documents to go application to the premium version / paid. Since then, I am unable to see the word to go / Sheet to go / PPT to go on my device. I restarted / rebooted several times, to display all applications, but n