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");
}
}
在 04-15-2011 02:05 AM
http://joule.ni.com/nidu/cds/view/p/id/2137/lang/zht
請嘗試乾淨PC+最新 IMAQdx
不是所有USB Camera 的所有屬性都可以開放出來,必須視廠商以及USB camera 的格式
您可以嘗試不同 USB Camera ( 100% directshow 相容 )
I used IMAGINGSOURCE 1394 port Cam.