siva Posted August 23, 2007 Report Posted August 23, 2007 Can a LabVIEW Program generate a LabVIEW Code.. ? Is it possible to do the following in labview, #include <stdio.h> { FILE myCodeFile; myCodeFile=fopen("GeneratedCode.c") fprintf("#include<stdio.h>"); fprintf("#include<math.h>"); fprintf("main(){int a;a=sin(1.2);printf(""%f"",a); }"); fclose(myCodeFile) } Note : The Ouput has to be a LabVIEW code, not a C Code. Quote
Ale914 Posted August 23, 2007 Report Posted August 23, 2007 Hi Siva, yes it is possible. Try to read at this section http://forums.lavag.org/LabVIEW-VI-Scripting-f29.html Ciao Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.