05-06-2014 04:15 AM
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; }
05-06-2014 07:32 AM
You should check out the shipping example located under Vision Builder\API Examples\CVI Examples.
Hope this helps,
Brad