Log in

View Full Version : custom C/C++ code in LabView?


Pneumaticsman
13-01-2009, 19:30
does anyone know if there is a way that you can input custom code for C/C++ in LabView?

Thanks

fordfiler6
14-01-2009, 18:04
I've been told there is a way, but I am yet to find it.
Looking forward to hearing if anyone has

dgraves702
14-01-2009, 18:14
You can use a "Code Interface Node" to call an external C/C++ function.

Look it up in the Help documents to get more information.

fordfiler6
14-01-2009, 18:17
Thanks dgraves, will look into this.

:)

Pneumaticsman
14-01-2009, 20:42
thanks, I'll definitely look into this. We're trying to figure out how to start at a set speed and accelerate until we reach full speed. we plan on using this using a delay loop, but we can't quite figure out how to do it in LabView, but we know how to do it in C :D

Greg McKaskle
14-01-2009, 23:05
I'm not sure what you are calling a delay loop. If you are wanting a timed loop that runs in parallel, look at doing a parallel loop with a time delay that reads set points and updates motors.

If you are set on doing C code, you should look at tutorials on the Call Library Function node.

Greg McKaskle