Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

What does NI provide for custom camera file development?

Hi YR,

Thanks for the code you have sent and the time you spent.

But I would like to do this in the ICD file itself so that I can control it from NI-MAX.

Thanks,
Ramanan
0 Kudos
Message 11 of 18
(1,653 Views)
The FF value you are looking at is a byte value. It needs to be output as a single character. In C, you would use %c to convert the number to a single character. This isn't available in LabVIEW, so I don't know if it will work in an ICD file. You could try it, though.

If it doesn't work, the only solution I see is sending the preconverted string from LabVIEW. I don't know how you would do it in an ICD file.

Bruce
Bruce Ammons
Ammons Engineering
0 Kudos
Message 12 of 18
(1,641 Views)
I tried %c in the camera file generator, and it didn't recognize it. I don't see any easy way to convert a number to a byte output.

Bruce
Bruce Ammons
Ammons Engineering
0 Kudos
Message 13 of 18
(1,634 Views)
Hello Ramanan,

When variables are used within a serial command, they are converted to ASCII first. For example, the integer 255 will be converted to ASCII "2" "5" "5" or hex 0x32 0x35 0x35. Even when the integer is formatted as hexadecimal 0xff, it still gets converted to ASCII "f" "f" (hex 0x66 0x66).

Currently, the only way to send hex values rather than ASCII values is to type "\xHH" where HH is the hex value to send. This method does not work with variables.

The alternative to sending the serial command from the camera file is to programmatically send it using the IMAQ Serial Read and Serial Write functions.

Best Regards,

Jesse D.
Applications Engineering
National Instruments
0 Kudos
Message 14 of 18
(1,630 Views)
By the way...what camera are you using?

Regards,

Jesse D.
Applications Engineering
National Instruments
0 Kudos
Message 15 of 18
(1,617 Views)
Thanks for your comments Mr.Jesse.

We are making our own CameraLink Cameras. One of our customers needed .icd file to configure our cameras with NI-MAX. We have developed some LabVIEW utilities to configure our cameras but our customer is very much in particular in getting the .icd file, because he already knows how to control the cameras with NI-MAX.

Thanks,
Ramanan
0 Kudos
Message 16 of 18
(1,601 Views)

Is that FTP still available for download? I would like to develop some camera files for our cameras here and/or get them developed by NI engineers.

0 Kudos
Message 17 of 18
(1,040 Views)

Is this what you were looking for?

 

https://download.ni.com/#support/imaq/pc/ni-imaq/cfgenerator/

 

Or this?

 

https://www.ni.com/en/support/documentation/supplemental/19/creating-a-camera-file-using-the-ni-came...

 

-AK2DM

~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~
0 Kudos
Message 18 of 18
(1,035 Views)