Message Boards Message Boards

0
|
4580 Views
|
1 Reply
|
0 Total Likes
View groups...
Share
Share this post:

Accessing camera using .Net ?

Posted 7 years ago

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
Posted 7 years 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
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract