08-29-2009 10:09 AM
Could CVS be directly controlled by a self-written C/C++ application?
Thanks in advance
08-31-2009 11:26 AM - edited 08-31-2009 11:27 AM
Hi mgiaff,
Yes, you can use CVI with the PharLap-based RT targets such as a CVS. See http://www.ni.com/lwcvi/realtime/ for details. There are also some guides around for building your own C/C++ DLLs using Microsoft Visual Studio that can be deployed to an RT target.
However, one catch is that currently Vision Development Module does not support their C entrypoints on LabVIEW RT systems (only LabVIEW). This will limit your ability to work with the native Vision Image datatype that IMAQdx uses as well as prevent you from using any of the machine vision image processing functions included with Vision Development Module. I am also not sure if the IMAQ I/O module within the CVS is compatible with C entrypoints on Real-Time. Even if it is not, you could likely use LabVIEW FPGA 2009 to write your own FPGA code and it has a C interface that lets you interact with the FPGA via C code running on the host CPU.
I think the answer is going to be "it depends on what hardware and software features you intend on using." You find it easier to use LabVIEW RT but just push certain pieces off to simple DLLs that you can call within LabVIEW RT. This approach is generally easier since you can make use of LabVIEW functionality for most things.
Eric