01-24-2012 02:27 PM
Ladies and Gentlemen,
I am trying to run a LabVIEW-generated C code {Calling a LabVIEW-built DLL in C to Acquire, Analyze, and Present Data (http://zone.ni.com/devzone/cda/epd/p/id/1515)} in VxWorks 5.5.1. However, I have the following errors in using Tornado 2.2.1 to compile:
vxrm *.o *.rpo ctdt.c symTbl.c vxApp* *.out *.pl
vxrm ..\prjComps.h ..\prjParams.h ..\prjConfig.c ..\linkSyms.c
vxrm ..\libs.nm ..\libs.size
ccsimpc -g -mpentium -ansi -fno-builtin -fno-defer-pop -I. -IC:\WindRiver\Tor2.2-PPC\targe
t\h\ -DCPU=SIMNT -DTOOL_FAMILY=gnu -DTOOL=gnu -Wall -c ..\callLVDLL.c
In file included from ..\extcode.h:14,
from ..\LV_AAP.h:1,
from ..\callLVDLL.c:23:
..\platdefines.h:308: #error
..\platdefines.h:339: parse error
In file included from ..\extcode.h:15,
from ..\LV_AAP.h:1,
from ..\callLVDLL.c:23:
..\fundtypes.h:17: parse error
..\fundtypes.h:43: stdint.h: No such file or directory
In file included from ..\fundtypes.h:61,
from ..\extcode.h:15,
from ..\LV_AAP.h:1,
from ..\callLVDLL.c:23:
..\lv_prolog.h:37: parse error
In file included from ..\extcode.h:15,
from ..\LV_AAP.h:1,
from ..\callLVDLL.c:23:
..\fundtypes.h:157: parse error
In file included from ..\fundtypes.h:252,
from ..\extcode.h:15,
from ..\LV_AAP.h:1,
from ..\callLVDLL.c:23:
..\lv_epilog.h:17: parse error
In file included from ..\extcode.h:15,
from ..\LV_AAP.h:1,
from ..\callLVDLL.c:23:
..\fundtypes.h:361: parse error
..\fundtypes.h:370: parse error
..\fundtypes.h:386: parse error
In file included from ..\LV_AAP.h:1,
from ..\callLVDLL.c:23:
..\extcode.h:40: parse error
..\extcode.h:49: parse error
..\extcode.h:57: parse error
In file included from ..\extcode.h:116,
from ..\LV_AAP.h:1,
from ..\callLVDLL.c:23:
..\lv_prolog.h:37: parse error
In file included from ..\LV_AAP.h:1,
from ..\callLVDLL.c:23:
..\extcode.h:526: parse error
..\extcode.h:959: parse error
In file included from ..\extcode.h:1080,
from ..\LV_AAP.h:1,
from ..\callLVDLL.c:23:
..\lv_epilog.h:17: parse error
make: *** [callLVDLL.o] Error 0x1
Done.
I would appreciate your help in this matter. "LV_AAP.h" and "callLVDLL.c" will be furnished upon request OR you can download from
http://zone.ni.com/devzone/cda/epd/p/id/1515
The rest of the header files are in my directory:
C:\Program Files\National Instruments\LabVIEW 2010\cintools
Regards,
Chi
01-26-2012 10:51 AM
Hi Chi,
Can you provide some more information on what you're trying to accomplish? What is your target hardware that's running the VxWorks OS?
Are you trying to build that example code, and you're running into that error? if not, where and how are you obtaining your source files?
Did you include "C:\Program Files\National Instruments\LabVIEW 2010\cintools" in your build environment?
Please note that this article was intended to be used with Microsoft Visual C++ 2008 or LabWindows/CVI, and creates a dll. You may not be able to compile a .out file for the VxWorks OS with this example.
Lastly, please look at this documentation and to ensure that you have everything configured correctly. It talks about how to compile for a VxWorks target.
Regards,
01-26-2012 10:58 PM
Hello Che,
Thanks for your response. My real-time target hardware is MVME5100. However, at present I want to see whether a C code {see the attached callLVDLL.c} generated from LabVIEW can be compiled in VxWorks 5.5.1/Tornado 2.2.1. The reason why I am using an old version of VxWorks/Tornado is my company is transitioning to NI PXIe hardwares and LabVIEW software, and phasing out all of VME boards {Power 4e, Power 7e, and MVME5100}.
All of header files are included in Tornado 2.2.1. If you are correct about compiling an .out file using Tornado 2.2.1, then what changes should be made to "callLVDLL.c" for a successful Tornado compilation?
The documentation you recommended refers to a newer version of VxWorks/Tornado, which I do not think is helpful.
Thanks for your help,
Chi
01-30-2012 11:03 AM
Hi Chi,
The error messages seem to indicate that it's missing some files that it's expecting. The article that you referenced was written near LabVIEW 8.0 days, and it's possible that some of the functions/header files that used to exist in LabVIEW 8.0 no longer exists for LabVIEW 2010.
Let's take a step back and get a bigger picture of what you're trying to accomplish.
Regards,
01-31-2012 08:39 AM
Thanks, Che,
(1) Currently, I do NOT have C Code Generator on my LabVIEW 2010 SP1, but I could request a trial copy from National Instruments.
(2) I still want to experiment "callLVDLL.c" in the VxWorks 5.5.1/Tornado 2.2.1/MVME5100 environment, then per your suggestion should I re-create "callLVDLL.c" in LabVIEW 2010 SP1 using C Code Generator?
Regards,
Chi
02-02-2012 10:26 AM
Hi Chi,
I reread your post, and I realized that you're getting new PXI systems. Your PXI system will be running PharLap instead of vxWorks! So, going down the route of generating C code for vxWorks is no longer necessary.
Regards,