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

Our chief engineer gave me a task yeasterday.He asked me to do software testing and calculate bit error rate that we would know our communication stability.
However,I have never touched this aspect of knowledge. I have known a bit about CVI and I want to write  bit error rate code using CVI.Thus,I could test the communication stability.
But I don't know how to analyse and judge the receiving codes whether they are right or wrong.
We use Modbus communication protocol and receive data via serial port,so I want to save all datas and record the total datas number ,marking as M.
then,save the eligible datas and record the mumber marking as N. So, bit error rate is (M-N)/M   .
Whether this is feasible ? Or you have any good idea. Thank you very much.
unsigned char in_data[100];
inqlen = GetInQLen (comport);
for(i=0;i<inqlen;i++)
in_data[i]=ComRdByte(comport);
 Above is my code that receive all datas and I want to save the array in_data[] data and record 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 condition judgement that receive eligible datas which number marks as N.
I know there is a precondition that I filter out all the wrong data . However ,I don't know any good idea. I will appreciate if anyone could help me.
Thank you very much.
Best regards.
xiepei
I wouldn't care success or failure,for I will only struggle ahead as long as I have been destined to the distance.
Solved!
Go to Solution.

Hi xiepei,
since you are using modbus, a simple error checking is implicit in the protocol and is the comparison between returned checksum and the calculated one on the received message: checksum errors, if any, are an effect of communications errors (you should have at least 2 bits changed and on particular patterns to have the checksum be calculated correctly!). You won't be able to calculate BER on them, but you can calculate PER (Packet Error Rate).
Another flag for communication errors, on the other direction, is to intercept error messages from the device: if it fully implements modbus protocol, it should return some warning in case of error (I seem to remember that in some cases it returns the reveived message with some error bits added: please check in modbus documentation).
Proud to use LW/CVI from 3.1 on.
My contributions to the Developer Zone Community
If I have helped you, why not giving me a kudos?

Similar Messages

  • How to test the JSP pages and sevlets using JUnit. ?

    How to test the JSP pages using JUnit. How to configure what are all the steps to execute the JUnit test cases.

    Hi xiepei,
    since you are using modbus, a simple error checking is implicit in the protocol and is the comparison between returned checksum and the calculated one on the received message: checksum errors, if any, are an effect of communications errors (you should have at least 2 bits changed and on particular patterns to have the checksum be calculated correctly!). You won't be able to calculate BER on them, but you can calculate PER (Packet Error Rate).
    Another flag for communication errors, on the other direction, is to intercept error messages from the device: if it fully implements modbus protocol, it should return some warning in case of error (I seem to remember that in some cases it returns the reveived message with some error bits added: please check in modbus documentation).
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • How to test the connection between DSD backend and DSD connector

    Dear all,
    I am configuring the MDSD scenario .. and i want to insure that my customization is correct
    How to test the connection between DSD Backend and DSD connector ??

    Hi Viren,
    The problem is:
    We have a new BW system. The basis people asked me to check the connection between this BW system and the R/3. There is only one client for now(100). I have logged into 100 and tried executing RSA1 to check the connection, but it gave a message box saying "You can only work in Client 000". Then I have treid logging into 000(just to make sure) and tried executing RSA1. Even here I got a message saying "The SAP BW system must not be operated in client 000". Now, I am not sure of what is wrong in clien 100. I am not sure if I have to do some settings before I access RSA1 or any other BW transaction. Could you please help me in this.
    Also, I just checked the RFC destinations in BW. There is a destination created for our R/3 and I have noticed that they have given a remote UserID and password for remote login. I tried to check the Remote UserID in SU01 but there is no userID with that name. Could this be a problem?
    Thanks,
    RPK.

  • How to Test the individualmapping field and conditions...

    Hi Frnds,
    I done mapping from source to destination as per tech spec in my scenario based on some conditions
    i used node functions also..
    But my question is how to test the every mapping filed , condition is correct or not, what i used node function working properly or not...
    Regards,
    Raj

    Hi
    If you want to check mapping for individual mapping then in design go to test tab and put your data there and then come again on Design tab and click on any target field fro which you want to check mapping then right click on target field in mpping area and click on Display queue and check whether it is expected output for that particular field mapping.
    Regards
    Sami
    Reward points if useful.

  • How to test the SAP modules like SD and MM By using Quality Center and QTP

    Hi Experts,
    How to test the SAP modules like SD and MM By using Quality Center and QTP. Can you please provide the documentation regarding this.
    Regards,
    Skumar.

    Hi Sampath,
    First install QTP and SAP Addin with in QTP.
    2nd use QC to develop the test plan and then convert that test plan design to Test Scripts (QTP vesrion using settings)
    3rd record the R/3 GUI screen of SAP for SD, MM like Create order or Create PR.
    Once recording is done QTP will create a script in VB
    SAPGuiSession("Session").SAPGuiWindow("SAP Easy Access  -  User").SAPGuiOKCode("OKCode").Set "/nVA01"
    SAPGuiSession("Session").SAPGuiWindow("SAP Easy Access  -  User").SendKey ENTER
    you can always add a parameter and other customization according to your requirement.
    Let me know if you need more information regarding this.
    Good Luck!

  • How to test the RFC to Flat File scenario

    Hi,
    How to test the RFC to Flat File scenario
    regards,
    kiran

    Hi,
    After running the RFC it's going Dump.
    this is the error message i got.
    "Error analysis                                                                     
    An error occurred when executing a Remote Function Call.                     
    "CPI-C error CM_RESOURCE_FAILURE_NO_RETRY"                                                
    Status of connection.... "CODE=CM_RESOURCE_FAILURE_NO_RETRY -1 -1 SAPCODE=666
    CONV="                                                                      
    Internal error code.... "RFC_IO5"                                                           
    There is an error in the communication system. To clarify                    
    and resolve the error, contact your system administrator.                     "

  • How to test the payload in XI

    Hi all,
    could please explain how to test the payload in xi and with steps.
    Thanks in advance,
    Radhika

    Hi Radhika,
    You can test in three ways.
    1.)  In message mapping directly give the relevant data and then execute.  Here you can test whether the mapping is correct or not.
    2.)  In Integrstion Directory after completing and activating  the Configuration,  in tool you can find the Test Configuration tab. There you can give the sender and receiver details along with payload. Here you can test whether the Configuration is correct or not.
    3.)  In RWB in COmponent monitoring.  Select the Integration Engine Monitoring. Here give the sender and receiver details, Interface name, name space, Quality of service.
    Now give user name and pass word.
    Paste the payload from massage mapping and then press test tab.  Here yoyu can directly send the message from XI server to the receiver system.
    Ok,
    Jeevan

  • How to test the rule if multiline container is passing to the task?

    Hi Experts,
                      I am working on leave workflow. I have to get the approvers based on no of days of leave and leave type. I am getting these details in ITEMS_TAB internal table. I am passing this table to a rule. Now my problem is when I tried to simulate the rule I am not getting any input screen to enter the data.
    ITEMS_TAB is an internal table type of   "PTREQ_ITEMS_WF_TAB_FLAT".
    In the rule I have created a container by selecting the radiobutton "ABAP Dict. Data Type" and entered the above reference parameter is it right way?
    Is it possible to test the rule independently if I use multiline container as import parameter in my rule?  If so can anybody please tell me how to test the rule?
    Thank You.
    Srija.

    Hi Pavan,
                     Thank you.
                     To copy the values I am not getting any input screen to input the values. I observed one thing that the type that I am referring in the Rule is a deep structure. Is this is the reason that I am not getting the input screen to enter the values?
    I tested by creating aother rule by taking a field for that rule I am getting the input screen to simulate the Rule.
    Can you please suggest if the rule will not work then what I have to do? without the rule how can I get the agents?
    Thank you.
    Srija

  • How to test the PMS/apprisal template

    Hi experts,
    We have completed the configuration of Apprisal templete.
    With OOHAP_BASIC,PHAP_CATALOG_PA we have completed the process along with status and substatus,staus flow.
    I struckup at this juncture.
    How to test the entire process after the configuration.
    Please advice.
    Regards,
    Sairam.

    Hi Sairam,
    To test the PMS process, please follow the below steps :
    1. Go to PHAP_CREATE_PA and select your template. Enter the details for appraisee, appraiser, reviewer ( if applicable ) and also the start date and end date. Save the document.
    2. Go to PHAP_ADMIN_PA and select the template/appraisee id in the appraisee column in the selection screen and execute. Select your appraisal document and then select from Menu- Appraisal Document->Change Status and select your initial status and sub status.
    Now you can login to Portal/R3 with the user and start testing. The substatus will move automatically based on your workflow. Once you complete a particular status say 'In Planning' you need to manually change the status again from PHAP_ADMIN_PA to 'In Review'.
    Get back to me in case of any queries.
    Regards,
    Sachin

  • How to test the modified script (Global Dunning)

    Hi all,
    I have a requirement in SAP Script.
    I had modified Global Dunning Letter F150_DUNN_01 and the print program is SAPF150D2.
    Transaction code is F150.
    How to test the script and what is the access path for checking print preview of the modified form.
    Do i need to configure anything before testing.
    Rewards to all.
    Thanks & Regards,
    Aarthi.

    Hi
    Your functional consultant will help you to trigger the output of this dunning output
    or search in SPRO tcode
    o in the related tcode F150
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • How to test the data

    Hi,,
    The below test data is for SD report which do the monthly batch transfer from Annexure to F-form
    Can you please help me how to test the data? and prepare the unit test case.
    1. Intra-plant movement of inventory between two plants with the same region Code -  In India there are two plants in the state of Maharashtra.
    Plant 8600 (Vendor 10999346) -> Plant 8601 - MM# 1003623 / 1013515 / 5214135 / 8788143
    NB PO# 6500002231 / ZU PO 4600000500
    2. Intra-plant movement of inventory from Plant 8650 - Goa to one Depot Plant
    Plant 8613 (Vendor 10999359) -> Plant 8618 - MM# 1003623 / 1013515 / 5214135 / 8788143
    NB PO# 6500002232 / ZU PO 4600000501
    3. Intra-plant movement of inventory between two Parts plants.
    Plant 8650 (Vendor 10999344) -> Plant 8601 - MM# 4908281 / 4908323 / 4908968 / 4922001
    NB PO# 6500002233 / ZU PO 4600000502

    Please  go thorugh this  ...
    eCATT stands for extended Computer Aided Test Tool (eCATT) which is built is testing tool to test SAP system. By using testing tool we can test the entire business process, and we can also use this tool with a third party testing tool (I am not covering this topic). Execution of every test script ends with a log, which explains the results of the test script. 
    By using eCATT we can do following operations,
    ·        Test transactions, reports, and scenarios
    ·        Call BAPIs and function modules
    ·        Test remote systems
    ·        Check authorizations (user profiles)
    ·        Test updates (database, applications, GUI)
    ·        Test the effect of changes to customizing settings
    ·        Check system messages
    For more information go to: eCATT::Extended Computer Aided Test Tool (sdn.com)
    Here I am discussing fundamentals about eCATT in detail. You can find very good documentation in sdn.com.
    To develop a test script in eCATT we need to follow the following steps,
    1. Creating Test Scripts.
    2. Creating Test Data Containers[16] .
    3. Understanding System Data Containers[17] .
    4. Executing Test Configurations.
    There is a very good web blog on eCATT in sdn.com which explains eCATT with necessary screen shots. To read document click here Blog on eCATT in sdn.com
    For  details  and the screenshots     please  see the  link
    http://www.erpgenie.com/sap/ecatt/
    Reward  points if it is  usefull ...
    Girish

  • How to test the UDA or Attribute of an ancestor member

    Hi everybody !I would like to know how to test the UDA or attribute (I can use both) of the ancestor (or the parent of the parent) of the current member please ?(the current member is on level 0 et the ancestor is on level 2).I tryed some syntax but any result :(Thanks very much for your help... JaspePS : Sorry for my "bad" english, i'm french...

    You can try using this IF conditional statement:if (@count (skipnone, (@uda (dimName, myUDA) and @ancest (@currmbr (dimName), -2))) == 1)where:dimName is the dimension of the level 0 member you are testingmyUDA is the UDA you are testingWhat this does is it counts the number of members that meet two criteria. First, it must have the UDA you specify and, second, it must be an ancestor of the current member at a specified level.If the current member has a level 2 ancestor with the UDA, it should return one member.

  • How to test the adapters

    hi
    anybody can tell me how to test the adaptors?
    regards,
    krushi

    Adapter Monitoring:
    Steps:
    1. Go to RWB.
    2. In the Component Monitoring Select Adapter Engine
    3. Select the Adapter Monitoring Tab.
    Using this window u cam monitor
    >> Installed and Started Adapters
    >> Adapters with Error and
    >> All the Adapters
    Uses:
    >>The name of the server on which the selected Adapter Engine was deployed. This can be a server cluster consisting of several nodes.
    >>The namespace in which the adapters shipped by SAP are located. If you have created additional namespaces for your own developments or for third-party adapters, these are also displayed.
    >>A list of all the adapters available for the selected Adapter Engine. Adapters that are not installed and started, or not registered with the Adapter Framework are GRAYED out. You can select all the other adapters to display additional information. i.e U can see all the Adapters.
    If all the adapters are working then it will be displayed in GREEN.
    If not then it will be displayed in RED.
    If U are not using the adapters in ur scenarios then it will be GRAYED out.
    Remember to set the thread to solved when you have received a solution
    Use a Good Subject Line, One Question Per Posting - Award Points

  • How to test the process chains

    hi sap gurus,
    Can anybody tell me how to test the Process chains before i load real time data,i run process chains every morning 6.15 am,before that i want to test every process is linked to another.
    thanks in advance.

    Hi,
    Scheduling the process is the only way to check whether it is running fine or not. The process chains should be checked first in the Dev server and then in the QA server before transported to Prod.
    You can also check the process chain using the "check" button to see if the processes are in the proper sequence or not.
    There is a "log" button to keep track of the progress of the chain
    suresh

  • How to test the app on my Ipad device?

    I'd like to know how to test the app and if it's strictly necessary to have a developer liscense to test it or if it's only necessary to make the app available in the Appstore.
    Thanks!

    You need a paid dev account to test on a device.

Maybe you are looking for

  • Retriving a cookie variable in a init block

    Hello I configured obiee for sso. Here is my instance config: <Auth> <SSO enabled="false"> <ParamList> <!--IMPERSONATE param is used to get the authenticated user's username and is required --> <Param name="IMPERSONATE" source="cookie" nameInSource="

  • Can't burn too!

    Hi I know I am not alone. It is not possible for me to burn to CD/DVD from iPhoto. I waited for almost 2 years for my photo library will be big enough to fit on a dvd, but now I can't make a backup of the library. In the syslog I get the following ou

  • Data Warehouse performance since changing retention settings?

    Hi, I dont know if its a coincidence but I have managed to get into a bit of a state with regard to our data warehouse. Firstly when the server was specced I dont think anybody actually worked out what size the databases would work out to be. I have

  • Why has my CS2 Creative Suite suddenly not working?

    I have been using my Adobe Creative Suite CS2 on this computer for a couple of years now, but I recently got a message stating a serious error had occurred and I would need to reinstall. I have tried to reinstall twice, but still get the same message

  • Unable to access connected server after upgrade to Mountain Lion

    I upgraded from snow leopard to mountain lion and now am unable to connect to my server. The error given is "there was a problem connecting to the server" And in console I get a sharepointbrowser error There are a few other posts on this but none see