LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to import .C code to Labveiw 7 ?

I have a c-code (for Labwindow/CVI) for making the special pakage for RS485 communication. Now, I confuse about how to solve this problem. My question is :

1. I don't know that I can make CIN for this compicate code.(this code has a lot of function)

2. It has a lot of output command e.g. printf .. in which I don't know it will work with labview ? if not, I have to modify the code in which way !!!!

3. What should I do between convert c-code to dll and import library or just import c-code.

4. if I import c-code I have to have vitual C++ install in my computer ?


Thanks for any help.
0 Kudos
Message 1 of 2
(2,621 Views)
You might study the c code and port the code to LabVIEW, without using DLL or CIN nodes. Check out the serial port or VISA functions from the Instrument I/O part.

The output command won't work in LabVIEW, you will have to display the output yourself to an indicator.

-Joe
0 Kudos
Message 2 of 2
(2,621 Views)