LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Communication with camera link camera (VieWorks)

HI Zou,

sorry my late answer.

If I set the camera attributes in MAX manually, then the camera attributes change.

What is VieWorks config app? I want change the camera attributes with a LabVIEW program. How can i do it?

Please see the previous mails.

 

Greetings zaepfle

0 Kudos
Message 11 of 25
(1,607 Views)

> If I set the camera attributes in MAX manually, then the camera attributes change.

How do you verify that the attributes get passed to the camera?

 

In my case, when I change the camera attributes in MAX manually, the camera doesn't get the message.

So my camera expose time in MAX set to 1 sec.  But the camera's expose time is 300 us on Vieworks' config app.

 

 

George Zou
0 Kudos
Message 12 of 25
(1,597 Views)

> What is VieWorks config app?

 

It's called Configurator 2.2.8.  You can download from Vieworks => support => software.

 

George Zou
0 Kudos
Message 13 of 25
(1,586 Views)

Hi Zou,

thanks for your answer.

Please see the attached VI "VieWorks_SetCameraAttribute1.vi". There you can see, how I set the camera attributte: exposure Time. With the NI: "IMAQ Set CameraAttribute.vi" you can only set the attributtes, which displayed in MAX. In my case, I see only 4 attributtes (data bit, exposure time, analog gain, analog offset) in MAX. But the VieWorks camera has much more.

 

I would control the camera with "IMAQ SerielWrite.vi" (because I must use the other attributtes), but unfortunately without success. Untill now nobody (inclusive NI support) has a idea. The communication between camera and LabVIEW (IMAQ SerialWrite.vi) works with the cameralink cable and no other cable?

 

I have the Configurator 2.2.8, but I have to control the camera with a LabVIEW program.

 

Maybe I must ask the camera: Are you ready to receive commands? or I have to set something.

I have no idea.

I can't find examples, which could help me.

 

I hope really someone has a idea.

 

greetings zaepfle

0 Kudos
Message 14 of 25
(1,578 Views)

Hello,

 

i finally found some time to write a VI that I think schould work. Pleas test it and tell me if this is the right way to comnmunicate. You get the commands out of the manual.

 

Best Regards

 

Gregor

0 Kudos
Message 15 of 25
(1,569 Views)

Figured out:

 

When use Get/Set Camera Attribute, use the attributes name in MAX.

For example, to get exposure time, simply wire a constant string Exposure Time.

 

If you want to send a command to the camera, don't use Get/Set Camera Attribute;

use Write/Read Serial.

 

To get Exposure Time from the camera directly, send get\r ( \ display mode), then read back the response.

 

You can't use get<cr>.  <cr>, carriage return, in LabVIEW string control is \r in the \ display mode;

OD in Hex mode, invisible in normal mode.

 

 

George Zou
0 Kudos
Message 16 of 25
(1,551 Views)

Hello,

thanks for the answers:

 

@GregorP: I want work with all attributs of the camera and not only with the 4, which I can see in the MAX. Unfortunately your program doesn't work. Do you know: How can I use all attributes (about 40 attributes) of the camera?

 

@zou:

I attached a simply program. The program send a exposure time. But the gray value of the image doesn't decrease. That means I can't control the camera. Do you see the mistake?

 

greetings zaepfle

 

0 Kudos
Message 17 of 25
(1,540 Views)

Try to make the test VI simple.

 

Don't use loop.

Don't snap image.

 

Give a 2 sec timeout to serial read.

Use a simple string command: set 2000\r

 

The unit is us, 2000 means 2 ms.

 

 

George Zou
0 Kudos
Message 18 of 25
(1,533 Views)

Hello zou,

sorry my late answer.

I try to generate a new camera file with the NI camera file generator.

But unfortunately it doesn't work. I get the new attributes in the MAX, but the attributes doesn't work correctly.

Until now NI couldn't get help and my problem isn't solved.

 

It seems very difficult.

 

Greetings zaepfle

0 Kudos
Message 19 of 25
(1,517 Views)

Forget MAX, you can change attributes directly.

 

George Zou
0 Kudos
Message 20 of 25
(1,502 Views)