05-02-2013 07:24 AM
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
05-02-2013 10:15 AM
> 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.
05-02-2013 07:15 PM
> What is VieWorks config app?
It's called Configurator 2.2.8. You can download from Vieworks => support => software.
05-03-2013 01:38 AM
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
05-03-2013 04:05 AM
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
05-04-2013 04:10 PM
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.
05-07-2013 07:53 AM
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
05-07-2013 01:17 PM
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.
06-10-2013 04:11 AM
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
06-18-2013 10:57 PM
Forget MAX, you can change attributes directly.