Run inspection results Vbai in CVI interface

Hello,
I am trying to develop an application designed for the operation of a machine vision
Firstly, I will work with simple images on my PC and I made the necessary treatment with NI Vision Builder Automated Inspection , well, I have several inspection tests (multiple files. Vbai) ...
What I want to do is load the inspection results in a developed interface by LabWindows / CVI
1) I want to display the main window in NI Vision Builder interface in a picture box.
2) I also want to have state inspection Inspection Status in a text box or other way if available.
3) The Start button starts the inspection files. Vbai successively
Enclosed you will find two images on the skeleton of the CVI interface as an example of inspection NI Vision Builder over the generated code in CVI.
Tahnks in advance  
#include <cvirte.h>
#include <userint.h>
#include "interface.h"
static int panelHandle;
int main (int argc, char *argv[])
if (InitCVIRTE (0, argv, 0) == 0)
return -1; /* out of memory */
if ((panelHandle = LoadPanel (0, "interface.uir", PANEL)) < 0)
return -1;
DisplayPanel (panelHandle);
RunUserInterface ();
DiscardPanel (panelHandle);
return 0;
int CVICALLBACK QuitCallback (int panel, int control, int event,
void *callbackData, int eventData1, int eventData2)
switch (event)
case EVENT_COMMIT:
QuitUserInterface (0);
break;
return 0;
int CVICALLBACK DemarrerCallback (int panel, int control, int event,
void *callbackData, int eventData1, int eventData2)
switch (event)
case EVENT_COMMIT:
break;
return 0;

You should check out the shipping example located under Vision Builder\API Examples\CVI Examples.
Hope this helps,
Brad

Similar Messages

  • Uploading/Interfacing Inspection Results

    HI QM Users,
    Our manufacturer is planning to send the inspection results using XML, ASCII file and we need to upload that in our SAP QM system.  What is the best way to achieve this?   Does anyone has done results recording by reading from a input file before?  Is it simple to do?
    I also have following concerns about this process-
    1. How to match all insp. plan (characteristics, possible code values, sampling and possibly the valuation mode etc.) per SAP requirements.  How to define the file structure for such file transfer.
    2.  How to validate the accuracy of the data in the source system. i.e. possible values/parameters for each characteristics.
    Regards,

    Usually you set the inspection up that you expect to have data uploaded to from an external system with a QDR system assigned to the workcenter.  This cause the characteristics to be identified as going to be recorded from an exrternal system such as a LIMS.
    LIMS vendors usually provide the interface to perform the function of loading the data to SAP. In your case you will have to design that piece.  SAP provides the routines to do this.  You'll need to design a way to get the file from your vendor into the format needed to to load.
    The info below should help you get started.
    Craig
    Communication with External Systems
    RFC function modules are available in QM for communication with external systems. The names of all the function modules begin with QIRF_, which makes them easy to find within the development environment.
    QIRF_SEND... These function modules allow you to download data from an ERP system to a subsystem.
    QIRF_GET... These function modules allow you to upload data from a subsystem to an ERP system.
    For further details on the function modules, see the documentation for QM.
    QIRF_SEND_REQUIRMENTS_GET_DATA
    You use this function module to download operation and characteristics data to the subsystem. Ensure that the Record Type field in the I_QUAILS input structure is empty and that the SUBSYS (Subsystem) field is filled.
    QIRF_GET_ORIGINAL_VALUES
    You use this function module to upload inspection data recorded in the subsystem to an ERP system.
    For quantitative characteristics, use record type Q51. For qualitative characteristics, use record type Q52.

  • Copy of Inspection Result

    Hi QM Gurus,
    I have a very specific requirement.
    If I do a goods receipt, an inspection lot (inspection origin 05) is created. (example: 05000000731 - GSM0123 - AA123456)
    The results of this inspection lot can be read via an interface and the usage decision is made automatically.
    I have created a delivery and a inspection lot is created. (inspection origin 06 - example Inspection Lot 10000019768 - GSM0123 - AA123456)
    Now I want to copy the Results with validations from Inspection Lot 05000000731 - GSM0123 - AA123456 to Inspection Lot 10000019768 - GSM0123 - AA123456 automatically.
    I do not want to select the inspection lot for copying. The system will find the inspection lot myself about Material GSM0123 and Batch AA123456.
    In SPRO -> Make Settings for Copy of Inspection Results --> What setting do I need to make in the "Selection"?
    "Recurring Inspection for Batch" - I think that is not correct
    "Data from Inspection for Preliminary Product" - But the material GSM0123 is always the same material.
    "Custom Selection of Inspection Lot" - I have to select the source inspection lot here. I do not want.
    I have no idea to solve this requirement!
    Can anyone help me?
    Thanks,
    Ulrike

    Hi Do-Wook Kim,
    I have copied the BAdI "QEC_SELECTION_300" to "ZQEC_SELECTION_300" (SE19).
    In SPRO I've created a new selection on the "Business Add-In for Selection of Results Data for Copy of In".
    In the dialog you can write an SelectionNumber with 3 Numbers:
    I could not specify a name when creating the selection, I found strange, but okay.
    After these steps I adapt the method "SELECTION".
    Now it works. Thank you so much!
    Ulrike

  • Problems with inspection result transfer to batch classification

    Hello ,
    I `m struggling with  the following problem: As result of UD I want to transfrer the inspection results to the batch class (evaluate the batch by the results of inspection). the correct batch class characteristic is assigned to the master inspection characteristic.
    It works fine, but only if I maintain a material specification for the material which includes the characteristics I want to get valuated automatically.
    We are using only inspection plans, we do not work with material specifications for quality inspection. In the inspection settings of the material master data only 'inspection with plan' is marked, 'material specification' we keep empty.
    I do not believe that I have to maintain the material specification in order to get results  transfered - But Am I wrong?
    If it is possible to get the results transferred without a maintained material specification - what is wrong with my settings? what do I need to change in order to get the process running well without that material specification nobody wants to maintain?
    Thanks in advance for all helpful hints.
    Kurt

    Hi
    Go to QCC0>Basic Setting>Setting at plant level--->select plant ->Inspection lot completion->Batch valuation without material spec
    check indicator.
    If you set this indicator, a link between the master inspection characteristics and the class characteristics for the batch class must exist when an inspection lot is created, for batch valuation to occur when the usage decision or inspection point valuation is made. A link within the material specification is not required.
    If you do not set this indicator, batch valuation only occurs when the usage decision or inspection point valuation is made, if a link using the material specification exists between the master inspection characteristics and the class characteristics for the batch class. In this way, you can control on a material-dependent basis whether the batch characteristics are valuated based on the inspection results.
    Regards'
    Sujit

  • Copy Inspection Results of one lot to other lots at a time

    Dear Experts,
                         As per settings made under "Make Settings for Copy of Inspection Results" I am able to copy inspection results but still I am not getting what I exactly want. Below are different requirements explained in details
    1. I am not able to copy twice on the same lot. e.g. if a lot has status RREC i.e. RR has been done then if at a later time I want to copy some other results over here then it's not happening.
    In help.sap page somewhere it is mentioned that copy is possible if lot has status CALC. I want to have some configuration which I don't know for which SAP should allow the copy functionality with status RREC also.
    2. By above functionality I want to do RR for several lots collectively at a time. E.g. if I have 100 lots then with same quality results it's tedious to copy results for each one by one. Like "QA16 - Collective Usage Decision" I didn't find any similar transaction for results recording(collectively).
    3. Although my results are being copied from one lot another but MIC valuation are not being transferred given that I am not using any sampling procedure. I want manual valuation to be copied to the destination lots.
    Any valuable suggestion will be highly appreciated.
    Regards,

    Dear,
    it is not clear from your question.
    Please get more details,
    In which release you are working?
    In SPRO what special setting you made for this special case
    Inspection origin is linked with no range/TL type/insp type.
    Wher exactly you set this new configuration.
    Please let us know so that we can simulate and help you out

  • Looking for an SQL query to retreive callvariables + ECC from a RUN SCRIPT RESULT (Translation to VRU)

    Hi Team,
    I am looking for an SQL query to check the data (ECC + CallVariable) received following a RUN SCRIPT RESULT when requesting an external VRU with a Translation Route to VRU with a "Run External Script".
    I believe the data are parsed between the Termination Call Detail + Termination Call Variable .
    If you already have such an SQL query I would very much appreciate to have it.
    Thank you and Regards
    Nick

    Omar,
    with all due respect, shortening a one day's interval might not be an option for a historical report ;-)
    I would recommend to take a look the following SQL query:
    DECLARE @dateFrom DATETIME, @dateTo DATETIME
    SET @dateFrom = '2014-01-24 00:00:00'
    SET @dateTo   = '2014-01-25 00:00:00'
    SELECT
    tcv.DateTime,
    tcd.RecoveryKey,
    tcd.RouterCallKeyDay,
    tcd.RouterCallKey,
    ecv.EnterpriseName AS [ECVEnterpriseName],
    tcv.ArrayIndex,
    tcv.ECCValue
    FROM Termination_Call_Variable tcv
    JOIN
    (SELECT RouterCallKeyDay,RouterCallKey,RecoveryKey FROM Termination_Call_Detail WHERE DateTime > @dateFrom AND DateTime < @dateTo) tcd
    ON tcv.TCDRecoveryKey = tcd.RecoveryKey
    LEFT OUTER JOIN Expanded_Call_Variable ecv ON tcv.ExpandedCallVariableID = ecv.ExpandedCallVariableID
    WHERE tcv.DateTime > @dateFrom AND tcv.DateTime < @dateTo
    With variables, you can parametrize your code (for instance, you could write SET @dateFrom = ? and let the calling application fill in the datetime value in for you).
    Plus joining two large tables with all rows like you did (TCD-TCV) is never a good option.
    Another aspect to consider: all ECC's are actually arrays (always), so it's not good to leave out the index value (tcv.ArrayIndex).
    G.

  • QM inspection result reports

    Experts,
    How come there is never any data for QM reports such as MCXA, MCXB, MCXD, MCXI although inspection lots are available in the system?
    Is there another report that I can use to see inspection results in a table layout, e.g. list of batches on one axis, list of characteristics on another and the results?
    Thanks!
    Rgds

    Sure you can.  Simply add some of the standard characteristics to the batch class that SAP provides.
    LOBM_APO_SL_MAX     Max shelf life/maturity in sec
    LOBM_APO_SL_MIN     Min shelf life/maturity in sec
    LOBM_APO_SL_UTC     Reference time stamp of batch
    LOBM_BPRIO     Stock determination: priority
    LOBM_BWTAR     Valuation type
    LOBM_HERKL     Country of Origin
    LOBM_HSDAT     Date when batch was produced
    LOBM_KRT     waiting period of a batch
    LOBM_LFDAT     Batch determin. delivery date
    LOBM_LGORT     Storage location
    LOBM_LVORM     Deletion ind. for batches
    LOBM_MBDAT     Material availability date
    LOBM_MENGE     Batch determination sort qty
    LOBM_QNDAT     Next insp. date for batch
    LOBM_QSCORE     Qualityscore Usage Decision
    LOBM_RLZ     Remaining shelf life for batch
    LOBM_RLZ_PROZ     Req. remaining rntme in proc.
    LOBM_UDCODE     Usage Decision
    LOBM_VERAB     Availability date
    LOBM_VFDAT     Expiration date, shelf life
    LOBM_ZUSTD     Status of batch
    Not all of these are suitable to add to the batch class.  Some are designed strictly for batch search strategy classes.  There are several OSS notes out there on the use of these.  As you can see, several of these are date related.  I usually always add LOBM_HSDAT, LOBM_UDCODE,and LOBM_VFDAT.
    As you can see, the Batch number is not in the list of standard characteristics.  This can be created however.  Create a general characteristic with reference to table MCH1, field nanme CHARG and add this characteristic to your classes.  You can then use it to search and sort for specific batches just like any other characeristic in CL30n.  When displayed, the field is greyed out from user entry since it is a referenced field.
    Craig

  • Inspection results copying

    Hi All,
    In result recording inspection results can be copied to the actual inspection lot from an existing lot. Is this possible, if so where we have to this customizing.
    Navin

    Hi,
    Pl go thro the forum post and doc link below
    Re: Copy Inspection Results
    http://help.sap.com/saphelp_47x200/helpdata/en/00/07cf2ec3b42046aeeb527773165efc/content.htm
    Regards
    K.M.Arun

  • Inspection results for more than one lot

    How do i see inspection results for different lots of the same material together in a single screen. Is there any standard report or query available in SAP?
    Prahlad

    Dear Prahlad
    You can see it in ways
    1) Go to QS28. Input the plant and the mic and execute. You will get MIC details. Choose the MIC and click on Result history. A pop will appear Result history Limit Selection. In the Time Tab you can see inspection lot selection date From and To. Execute you will get the entire list of lots
    3) Go to QA33 > result> Select the Mic> go Result historyhistory >In the Time Tab you can see inspection lot selection date From and To. Execute you will get the entire list of lots with all values and charts
    4) standard reports such MCXD,QGP1 can be used
    Hope this helps
    Regards
    gajesh

  • Inspection Results Listing

    Hi Experts,
    After inspection results being inputted, is there any standard TCODE in SAP which can list out the inspection results in detail (1 by 1)?
    And also any program for listing what results required to be inputted but not yet inputted?
    Thanks a lot!
    Regards,
    Daniel

    Have you tried
    MCXV
    1
    apart from QA32/QA33
    Edited by: nbgore on Mar 31, 2011 2:14 PM

  • Inspection result to multiple batches

    Hello,
    For my client, I need to figure out a way to get the inspection results from QM into multiple batches. Is there a simple (standard) way to do this?
    The situation is that my client produces 3 batches at once. Samples for analysis are only taken from 1 of those 3 batches. After the analyses, at the usage decision, the values need to be copied into the characteristics of all 3 batches.
    Anyone can help me out with this one?

    Hi,
    That means you have only one inspection lot(manually created) for the production of 3 batches. But you can link only one material/one batch to an inspection lot in SAP. In your case, you can record the results for 1 batch and maintain the other batches in text field(that Inspection not required for other 2 batches).
    By the way which inspectin type are you using?
    WR,
    Sanjeev

  • Copying Inspection results from inspection lot.

    Dear All,
    Please explain me the process of copying inspection results in QM. Following is my clients requirement:
    During receiving inspection they receive the same material in say 10 batches (coils). They want to create the independent batch for  each coils of same material for tracking mechanism, so I  don't have any option to generate that many number of lots.
    Out of this 10 lots, say there are 2 masters (mother coils). Means there are two set of characteristics only which i need to copy for 5 lots each.
    As I  learn from SDN, EA - PLM  need to be activated . But I don't know what are the  adverse effects of activating  same.
    Please explain me the process.
    Best Regards.
    Shekhar Mokashi

    Hi Shekhar,
    Refer the OSS note 855959 - Activation of Extension Sets via SPRO not successful.
    I think all your doubts regarding to this Enhancement package will get resolved.
    The big warning is given there in that note itself about implementing the EA-PLM enhancement is.....
    Once an Enterprise extension set has been activated, it cannot be de-activated by de-selecting the option in the SPRO or otherwise, because BC Set activations cannot be undone.
    Appart from that note refer the document for
    Release Notes
    SAP ERP Corporate Services
    SAP enhancement package 2 for SAP ERP 6.01.
    the link for the same is pasted here FYI.
    [Chap_04_RNCorporateService|http://www.id.uzh.ch/dl/sw/sap/upgrade/Chap_04_RNCorporateService.pdf]
    Even after this much stuff completion, you don't have your doubt cleared up then I would advice you to ask the question in [ SAP Enhancement Packages|/community [original link is broken]; forum.
    Regards with lots of good luck wishes.
    Shyamal.
    Edited by: Shyamal Joshi on Jul 26, 2008 12:19 PM
    Edited by: Shyamal Joshi on Jul 26, 2008 3:06 PM

  • Copy inspection results

    Hi,
    In QM i am trying to copy inspection results.  For that all required customizations maintained, but still
    copy inspection results option is not coming in EDIT tab of QE01 transaction.
    I have cheked the pf status for the same it is E110 and main program is SAPLQEEM  and in se41 under edit tab i am able to see the data transfer push code also +QECOPY, but it is not appearing at transaction level.
    Do i need to do any coding to activate the same.  Any help will be highly appreciated.
    Thanks a lot in advance.

    Hi,
    Are you able to see "copy insp results" in QA02 under Edit menu ?
    Ref the link for details reg copy insp results
    http://help.sap.com/saphelp_47x200/helpdata/en/00/07cf2ec3b42046aeeb527773165efc/content.htm
    Regards
    K.M.Arun
    Edited by: ARUN KM on Mar 24, 2008 4:22 PM

  • SAP QM Result recording - Copy inspection results functionality

    Dear all,
    I have two queries.
    1) The Raw materials used in various plants are same. I want to copy the inspection results to the inspection lot if the batch is already accepted in other plant. The material, batch and vendor is common point. Some of the characteristics are caluculated characteristics. How to map this requirement.
    2) I want to test the standard functionality for copy results but in my system, the settings for copy inspection results is not appearing in quality inspections in SPRO. I want to confirm whether I am missing some other setting.
    Regards,
    Manohar

    Hello Jessica,
    you could try the following bapis:
    BAPI_INSPCHAR_GETRESULT
    BAPI_INSPCHAR_SETRESULT
    Although the desired functionality was actually implemented in higher releases.
    Hope this helps you.
    Regards,
    Isabelle

  • QM: Copying inspection results to another lot

    Experts,
    has anyone experience with automatic copying closed inspection results from one inspection lot to another one?
    Rgds

    Having seen some of your other postings and queries I'm wondering if your issue can't be solved by batch derivation or batch characteristic inheritance?  These are available in 6.0.  Not sure of your version.  By using these functions, you can avoid creating a lot of your inspection lots possibly.
    You can read up on these at:
    Batch derivation: http://help.sap.com/erp2005_ehp_03/helpdata/EN/35/7b723c4356d068e10000000a114084/frameset.htm
    Batch characteristic inheritance: http://help.sap.com/erp2005_ehp_03/helpdata/EN/3e/a6d5b1a3f5764e8274e015d5a1cee2/frameset.htm
    Craig

Maybe you are looking for

  • Reg:Activities in DTR

    Hi, In my Application i have created an Activity name Function. Under this activity i have embedded a new View.I have given all the necessary navigations.......... But due to some errors i had deleted my Activity Function. So that i can work on the v

  • P35 neo cold boots twice when powered on or warm booted

    Hi, I'm trying to figure out  what is happening with this board, when I turn on my computer it automatically shutsdown again for a sec or two and then comes back and boots ok. It does that also in a warm reboot. I've seen similar issues in other foru

  • Help - Unmounting external USB drives causes error to system drive

    Hi, I am having problems with my Mid 2009 24" iMac OS 10.6.7. When unmounting external drives(usb OR firewire), I get either a message that "your computer must be restarted...." or sometimes system freezes. Upon reboot and examining system drive with

  • V56LDELI -- EXIT_SAPLV56L_002 - active but not called

    I followed the instructions in Note 400368 to add a new field in the delivery line of VT01N/VT02N. The function module EXIT_SAPLV56L_002 and the INCLUDE ZXV56U25 are both active. However, I am not able to fill the new field in my append structure of

  • Can we create wallet at User Level to implement TDE in Oracle 10g

    Hi I am going to use a Oracle 10g TDE security feature for data security.I have gone through with lots document.Everywhere there is mention to open or close a Wallet at system level.I mean ALTER SYSTEM..that means except DBA no one can see the encryp