NI產品與技術 討論區

取消
顯示結果 
搜尋替代 
您的意思是: 

ImaqdxAttribute and ImaqdxSession

Hello Erveryone:

 

I am a new gay for NI Vision, I used ImaqdxSession with C# to get my camera.

when I used  <ImaqdxSession session_1 = new ImaqdxSession(camname);  > to get my camera ,it will be used 4Sec times. Any problem with my code?

 

And are there  some ways to set the cam value one by one with ImaqdxAttribute like TrigerMode Gain and so on ?

 

Thanks for Everyone who would help me!

 

 

Code...............................................................

 public Form1()
        {
            InitializeComponent();
          
            //
            this.Size = new Size(894, 600);
           //active
            // imageViewer1.ToolsShown = ViewerTools.Selection | ViewerTools.ZoomIn | ViewerTools.ZoomOut | ViewerTools.Pan | ViewerTools.Rectangle;
            imageViewer1.ActiveTool = ViewerTools.Pan;  
           
            //backgroundWorker
            //CamupWork.......................................................................
            imageViewer1.Attach(Oldimage);
            acquisitionWorker.DoWork += new DoWorkEventHandler(acquisitionWorker_DoWork);
            acquisitionWorker.ProgressChanged += new ProgressChangedEventHandler(acquisition_Workchange);
            acquisitionWorker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(acquisitionWorker_RunWorkerCompleted);
            acquisitionWorker.WorkerReportsProgress = true;
            acquisitionWorker.WorkerSupportsCancellation = true;
            //.....................................................
            try
            {
               session_1 = new ImaqdxSession(camname);               
            }
            catch (ImaqdxException ex)
            {
                MessageBox.Show(ex.Message, "NI-IMAQdx Error");
            }
          }

0 積分
1 條訊息(共 3 條)
6,074 檢視

http://joule.ni.com/nidu/cds/view/p/id/2137/lang/zht

 

請嘗試乾淨PC+最新 IMAQdx

 

不是所有USB Camera 的所有屬性都可以開放出來,必須視廠商以及USB camera 的格式

 

您可以嘗試不同 USB Camera ( 100% directshow 相容 )

 

0 積分
2 條訊息(共 3 條)
6,069 檢視

I used IMAGINGSOURCE 1394 port Cam.

0 積分
3 條訊息(共 3 條)
6,063 檢視