LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

LIN ncAction

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?

 
Thanks in advance,
 
Leon
0 Kudos
Message 1 of 4
(4,247 Views)
0 Kudos
Message 2 of 4
(4,226 Views)

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.

0 Kudos
Message 3 of 4
(4,220 Views)

Problem solved. It turns out I need to install NI-CAN 15.0, not NI-XNET 15.0. Thank you samazing.

0 Kudos
Message 4 of 4
(4,192 Views)