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 2]EI]P%5{%YNP{VMCKSBM{Y.png](https://ip1.i.lithium.com/cb0f77c4f9a79a5e8f331aa3e0fe803dd89da50a/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f32313733363569464330333338354533393233344237432f696d6167652d73697a652f6c617267653f763d76322670783d393939)
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!