# Accessing camera using .Net ?

**URL:** <https://community.wolfram.com/t/accessing-camera-using-net/10767>\
**Category:** Questions\
**Tags:** image-processing, mathematica, packages-and-paclets\
**Created:** [June 30, 2017, 6:02pm UTC](https://community.wolfram.com/t/accessing-camera-using-net/10767 "2017-06-30T18:02:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeff](https://avatars.discourse-cdn.com/v4/letter/j/e19b73/32.png) [@jeff](https://community.wolfram.com/u/jeff)\
**Post date:** [June 30, 2017, 6:02pm UTC](https://community.wolfram.com/t/accessing-camera-using-net/10767/1 "2017-06-30T18:02:37Z")

</div>

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] ([XiAPINET - APIs - ximea support](https://www.ximea.com/support/wiki/apis/XiAPINET)). 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?

---

<div class="post-metadata">

**Author:** ![jeff](https://avatars.discourse-cdn.com/v4/letter/j/e19b73/32.png) [@jeff](https://community.wolfram.com/u/jeff)\
**Post date:** [July 24, 2017, 7:28pm UTC](https://community.wolfram.com/t/accessing-camera-using-net/10767/2 "2017-07-24T19:28:41Z")

</div>

Dropping PRM. and using lower case fixers the problem.

```auto
out = 0;
myCam@GetParam["exposure", out]
out

```
