Log in

View Full Version : CIN code - LabVIEW Stops on run


linkhyrule5
12-09-2011, 16:41
I seem to be having an issue using Code Interface Nodes on the cRIO. The C code itself has been tested within the environment, and works when running on my laptop. However, after loading code onto the robot, the program terminates during or immediately after the CIN - a breakpoint placed immediately after the node does not trigger. My guess is that there are problems importing and xporting variables - I am using a one double and one two-dimensional double array.

Thank you for your time.

Joe Ross
12-09-2011, 16:58
Is your code compiled for vxworks on ppc?

linkhyrule5
12-09-2011, 17:53
Probably not. I just followed the general CIN directions for LabVIEW. I don't know if it matters, though, since I'm running directly from my laptop for now, though it'll be something to think about for competition.

jhersh
13-09-2011, 00:41
The CIN is not appropriate for the cRIO. You should be using the Call Library node to accomplish the same thing. Use the wind river tools to compile a .out file and call it's entry-points with a call library node.

Look here (http://zone.ni.com/devzone/cda/tut/p/id/5694) and here (http://digital.ni.com/public.nsf/allkb/5A267EF5471758CA86257233006EF3D8).

-Joe

linkhyrule5
18-09-2011, 22:53
Ah, I see! Thanks! (And sorry for the slow response; for some reason the email-alert failed.)