Quantcast
Channel: LabWindows/CVI topics
Viewing all articles
Browse latest Browse all 5352

A Using problem with Funtion imaqEasyAcquire()

$
0
0

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!


Viewing all articles
Browse latest Browse all 5352

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>