‎10-27-2013 06:16 PM
Hi
I'm working on a project, where I have to capture images from an external USB cam with NI-IMAQdx and export them as 10 frames/sec (10 arrays/sec). The problem is that, my group member on this project, has to capture those 10 array/sec using C-language from me. Is there any method in LabVIEW to export 10 arrays/sec into a C-code ?. If not, is there an another method I can use ?
Thanks in advance
‎10-27-2013
08:34 PM
- last edited on
‎08-14-2024
11:10 AM
by
Content Cleaner
Hi,
If you have Application Builder, you can compile your LabVIEW code into a DLL and call that from your C program: https://www.ni.com/en/shop/labview/can-labview-c-.html
‎10-27-2013 09:04 PM
Thanks for the reply JKSH
Do you know whether it is possible to export data to a DLL continuously ?
‎10-27-2013 09:16 PM
Yes. Your C program will just have to call the relevant LabVIEW subVI (function) continuously.
Alternatively, you can compile your C program into a DLL and make LabVIEW call a C function continuously for image processing.
Be aware though that the maximum frame rate you can achieve will depend on the size of your frames and the speed of your processor.
‎10-27-2013 09:43 PM
Doh.. My university doesn't have a license for Application Builder. What about exporting my arrays to a .csv file continuously and capture the data from that file with C ?
‎10-27-2013 10:02 PM
Yes you can do that, but synchronizing the data between read and write will be an issue, Take precaution there
‎10-27-2013 10:33 PM - edited ‎10-27-2013 10:36 PM
We're talking about exactly this add-on ?. If yes, then it is installed and activated
‎10-27-2013 10:41 PM - edited ‎10-27-2013 10:45 PM
‎10-28-2013 01:51 AM
Hi!
A second option could be to stream the data via TPC/IP.
Your Labview program could act as a server, the C program as a client connecting to a server and receiving the stream.
Regards,
Marco
‎10-28-2013 06:31 AM