Can I create a VI using just C code? I have a C code which has some complex function with inputs suppose x, y and outputs p and q. I want to know whether we can create a VI (with/without VI scripting) from whose control panel, we can control the inputs x,y and be able to see the outputs p and q without bothering about the function(which is included in the C code). I don't want to use importing .dll files(which many may suggest), instead create labview blocks/objects on the block diagram of the VI file.
How can i?
Something tells me I am not providing the answer you want....
It is atranslation exercsie where the syntax of C is translated into the diagrams of LabVIEW. LabVIEW has many of the same operators that you will find in C so you just have to develop the LV code to do the same thing as the C code does.
Now if you are looking for a way to point at some C code and punch a button to get the same code in LabVIEW, we are talking about different things. Inthat case you may want to explore what is offered on the block diagram and can be found at
Mathematics >>> Scripts and Formulas
There is no automated way to turn a C function into a LabVIEW VI. You would have to do this by hand. There is also no way to put C code into a block and execute that (no equivalent to a formula node or mathscript). Even if you spent months writing code to attempt to automate this translation, I doubt you'd come close to making it work reliably given the terseness of C and the lack of a direct pointer equivalent in LabVIEW.
[...] I don't want to use importing .dll files(which many may suggest), [...]
This is like saying you want to build a steering mechanism for a car without using a steering wheel (which many may suggest).