11-26-2010 05:40 AM
12-02-2010
06:45 AM
- last edited on
10-06-2025
05:44 PM
by
Content Cleaner
Hello Norbert,
I have some questions for you:
1. Which CANON EOS camera do you use?
2. Support National Instruments this camera?
http://sine.ni.com/apps/utf8/nipc.specs?action=search&asid=1102
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000P6COSA0&l=en-US
3. Do you use a National Instruments Vision Software?
4. How do you connect your CANON EOS camera to you PC?
http://joule.ni.com/nidu/cds/view/p/id/415/lang/en
http://zone.ni.com/devzone/cda/epd/p/id/3938
http://zone.ni.com/devzone/cda/epd/p/id/1212
http://zone.ni.com/devzone/cda/epd/p/id/897
You can find more examples on this page:
https://forums.ni.com/t5/Example-Programs/ct-p/code-documents
Best Regards,
Phanuel
12-02-2010
09:10 AM
- last edited on
10-06-2025
05:48 PM
by
Content Cleaner
Hi Phanual,
I'm using the canon EOS 1Ds Mark III camera. The camera is not supported by
NI as far as i know. I do not use the Vision Software.
Thanks for the links, but i actually don't have problems to connect to the
camera (via usb and the vendor sdk). My problem is to display the liveview
image.
I found some functions in the canon venor sdk, so i'm able to request the
liveview jpg image from the camera via streaming functions. So i have a loop
that provides me with array of the actual liveview image (in jpg format) and
infos abaout the size.
No i'm looking for a direct way to get the image to my canvas. What i get
from the vendor sdk is an array (with all the jpg data) and the size of the
array.
Because i don't have the vision software i actually save the image array as
"liveview.jpg", then reload it by GetBitmapFromFile() and
CanvasDrawBitmap().
I'm looking for a solution to put the image array direct to the screen
without saving and reloading. Maybe that its possible with the vision
software, but boss says that i can't buy it for this single project......
So i hope that there is another "workaround". To increase the speed i'm
using a ramdisk for saving and reloading the file instead of a harddisk, but
i still think that it's no good and fast solution to di it the "file" way.
Thanks
Norbert
> 2. Support National Instruments this camera?
> <a
> href="http://sine.ni.com/apps/utf8/nipc.specs?action=search&asid=1102 "
> target="_blank"
> rel="nofollow">http://sine.ni.com/apps/utf8/nipc.specs?action=search&asid=1102 </a>
> <a
> href="https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000P6COSA0&l=en-US"
> target="_blank"
> rel="nofollow">http://digital.ni.com/public.nsf/allkb/4331B4AA3AE95233862574C200539A2F?OpenDocument</a>
>
> 3. Do you use a National Instruments Vision Software?
> <a href="https://www.ni.com/en/shop/electronic-test-instrumentation/application-software-for-electronic-test-..." target="_blank"
> rel="nofollow">https://www.ni.com/en/shop/electronic-test-instrumentation/application-software-for-electronic-test-...</a>
>
> 4. How do you connect your CANON EOS camera to you PC?
> <a href="http://joule.ni.com/nidu/cds/view/p/id/415/lang/en "
> target="_blank"
> rel="nofollow">http://joule.ni.com/nidu/cds/view/p/id/415/lang/en </a>
>
> Using Functions Defined by Both LabWindows/CVI and the Win32 SDK:
> <a href="http://zone.ni.com/devzone/cda/epd/p/id/3938 " target="_blank"
> rel="nofollow">http://zone.ni.com/devzone/cda/epd/p/id/3938 </a>
>
>
> Changing Camera Configuration Programmatically.
> <a href="http://zone.ni.com/devzone/cda/epd/p/id/1212 " target="_blank"
> rel="nofollow">http://zone.ni.com/devzone/cda/epd/p/id/1212 </a>
>
> Calibration Examples
> <a href="http://zone.ni.com/devzone/cda/epd/p/id/897 " target="_blank"
> rel="nofollow">http://zone.ni.com/devzone/cda/epd/p/id/897 </a>
>
> You can find more examples on this page:
> <a href="https://forums.ni.com/t5/Example-Programs/ct-p/code-documents" target="_blank"
> rel="nofollow">https://forums.ni.com/t5/Example-Programs/ct-p/code-documents</a>
>
> Best Regards,
> Phanuel
12-14-2010
09:22 AM
- last edited on
10-06-2025
05:46 PM
by
Content Cleaner
Hi Norbert,
https://forums.ni.com/t5/Example-Code/Convert-Array-to-Image/ta-p/3527181
Do you use the "Picture Control"?
https://www.ni.com/docs/en-US/bundle/labwindows-cvi/page/cvi/uiref/cvipicture_control_overview.htm
http://zone.ni.com/devzone/cda/epd/p/id/4889
You can also use the canvas control.
http://zone.ni.com/devzone/cda/epd/p/id/3475
http://zone.ni.com/devzone/cda/epd/p/id/877
Best Regards,
Phanuel
12-15-2010 12:13 PM
If you just want to display the image, look into a library on the NI Device Driver Reference CD called NI-IMAQ.
There is a very fast image write routine for a canvas control called imgPlot.
12-16-2010 02:40 AM
03-24-2011
04:43 PM
- last edited on
10-06-2025
05:47 PM
by
Content Cleaner
Hi,
found this thread as I'm also going through this in these very days. This is rather a Canon EDSDK question. Anyway, if still relevant, the answer, which is undocumented by Canon, but apparently known to developers, is that the evf buffer gest filled with a jpeg stream, which you have to decode. There is no VI in labview doing this in memory (I don't know about labwindows), the detour would be either save the stream to a file and reload it (I hate), using some contributed ad hoc function (e.g. https://forums.ni.com/t5/Example-Code/jpeg-string-to-picture/ta-p/3529632). But the real answer is that the function EdsGetImage can transform jpeg data into an RGB stream, which with further gymnastics can be casted into an IMAQ image.
For a labview implementation: http://groups.yahoo.com/group/CanonSDK/attachments/folder/446301336/item/1078603953/view?picmode=ori...
In general, www.canonsdk.com and http://groups.yahoo.com/group/CanonSDK/ are valuable resources here.
HTH, Enrico
01-07-2014 12:00 PM
Hello,
I'm thinking about trying this with a Canon EOS. Did anybody get this to work?
01-07-2014 12:29 PM - edited 01-07-2014 12:32 PM
Of course (in Labview, not Labwindows). http://groups.yahoo.com/neo/groups/CanonSDK/conversations/topics/1626 , http://groups.yahoo.com/neo/groups/CanonSDK/conversations/messages/1716 . LV2010, SDK 2.9, certainly not 2.10 and no intention to check any other version.
01-08-2014 01:53 AM
Hi Jeff,
yes i got it to work. Actually we use different models of Canon EOS and the Canon EOS SDK 2.130.
Greetings Norbert