Message Boards Message Boards

Accessing camera using .Net ?

GROUPS:

I am trying to read images from a camera using NETLink. The documentation and example code for the camera API is located at This link. The code seems to work until I try to read out a parameter from the camera.

Needs["NETLink`"];
InstallNET[];
LoadNETAssembly["C:\\XIMEA\\API\\x64"];
LoadNETType["xiApi.NET.xiCam"];
myCam = NETNew["xiApi.NET.xiCam"];
out = 0;
myCam@GetParam["PRM.EXPOSURE", out];

The last line of code produces this error:

NET::netexcptn: A .NET exception occurred: xiApi.NET.xiExc: GetParam PRM.EXPOSURE: Parameter is not supported at xiApi.NET.xiCam.GetParam(String prm, Int32& val).

Any ideas what I am doing wrong?

POSTED BY: Jeff Burns
Answer
3 months ago

Dropping PRM. and using lower case fixers the problem.

<pre><code>out = 0;
myCam@GetParam["exposure", out]
out
</code></pre>
POSTED BY: Jeff Burns
Answer
3 months ago

Group Abstract Group Abstract