01-05-2016 03:01 PM
Hi,
I'm new to LabWindows/CVI. I installed LabWindows/CVI 2015. I didn't install any LIN and CAN related drivers so I might miss LIN and CAN protocal related drivers. When I tried to re-build a project someone else did, I got a bunch of errors. Here are two of them. The related code is LIN and CAN protocal code which sends and receive LIN and CAN messages.
error: Undefined symbol '_ncAction@12' referenced in "c:\Users\lsun\Desktop\Projects\LabWindowsCVI\DUR-00012_SW_Labwindows_App_Shift_Actuator\cvibuild.DuraCVI\Debug\lin.obj".
error: Undefined symbol '_ncCloseObject@4' referenced in "c:\Users\lsun\Desktop\Projects\LabWindowsCVI\DUR-00012_SW_Labwindows_App_Shift_Actuator\cvibuild.DuraCVI\Debug\can2.obj".
Here is the code in file lin.c which uses the function "ncAction",
linStatus = ncAction (LINTxRx, NC_OP_START, 0);
if (linStatus < 0)
{
linPrintStat(linStatus, "ncAction");
StopCallback (panel_LIN, PANEL_LIN_STOP, EVENT_COMMIT,
0, 0, 0);
}
Here is the code in file can2.c which uses the function "ncCloseObject",
if (TXRXHandle!=0)
{
ncCloseObject(TXRXHandle);
}
QuitUserInterface (0);
I'm sure the code has no issue and it built without any issue in previous person's working enviorment. I think I just missed something in my working enviorment, maybe LIN and CAN drivers. Could anyone tell me what the possible causes are and how to fix them?
01-06-2016
11:35 AM
- last edited on
04-11-2025
05:35 PM
by
Content Cleaner
Ni's CAN/LIN drivers can be found here:
https://www.ni.com/en/support/downloads/drivers/download.ni-xnet.html
01-06-2016 01:58 PM
I downloaded and installed the NI-XNET-15.0, but it still has the same build errors. I'm thinking maybe the Nican.h which I include is wrong. I got it from ...\\Program Files (x86)\National Instruments\NI-CAN\MS Visual C which comes from my previous LabVIEW 2012 package. Maybe I have to use different Nican.h and use some NiLin.h files which I don't have right now.
01-07-2016 03:30 PM
Problem solved. It turns out I need to install NI-CAN 15.0, not NI-XNET 15.0. Thank you samazing.