LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

A Using problem with Funtion imaqEasyAcquire()

Hi,everybody!

I want to acquire an iamge by function imaqEasyAcquire(),i use a basler camera and it can be see in NI-MAX,my code as follows:

#include "NIIMAQdx.h"
#include "ImageControl.h"
#include <cvirte.h>  
#include <userint.h>
#include "VISONTEST.h"

 

Image *myacquireiamge=NULL;  

 const char camerename[20]="cam1";

 

   myacquireiamge=imaqEasyAcquire(camerename);
   imaqDisplayImage(myacquireiamge,1,TRUE);

2]EI]P%5{%YNP{VMCKSBM{Y.png

  When i run the code,it report :

NON-FATAL RUN-TIME ERROR:   "VISONTEST.c", line 237, col 28, thread id 0x0000225C:   Function imaqEasyAcquire: (errorCode == -1074397163 [0xbff60015]). The passed in interface or session is invalid.

 

 

If anyone can help me?Thaks so much!

0 Kudos
Message 1 of 1
(2,478 Views)