LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

program pic 16f84 with labview from code c

Hi guys,

I have a project that i would like to program a pic 16f84 from labview, the code program is in c code.
In this moment for make it, I use 'pic c compiler' to pass the code to hexadecimal code, and then other program to program the code in the pic.
I would like to know if is possible that Labview compile the code c to hex code and then it can to program the pic.

I would like to know any examples or manual...
Any helps?.

Regards, Jose.
0 Kudos
Message 1 of 5
(3,847 Views)
Jose,

If what you are looking for is to create a LabVIEW application that opens the C file and then outputs the required HEX code to run in the PIC; this is basically building a compiler (this is not going to be easy in any language). Most likely it is possible that you can create a LabVIEW app that downloads the the HEX codes to the pic, this is definatelly possible, however to have LabVIEW create the HEX codes would be a huge programming effort.

I would stay with the compiler that the PIC manufacturer provides and probably use LabVIEW to download the application to the actual HW.

About examples or manuals, I guess the place to start is the manual for the PIC there you should be able to get more info on how to download the HEX codes generated by the c
ompiler.

I hope this helps.

Regards,

Juan Carlos
N.I.
0 Kudos
Message 2 of 5
(3,847 Views)
Ok thanks!, but is it possible to call to external program compiler? with the vi to modified the text in c to hex and then with labview vi program the pic... dont is?.

thanks, any help?.
0 Kudos
Message 3 of 5
(3,847 Views)
This definatelly sounds reasonable, there are several ways you can call the external compiler; then have LabVIEW read the HEX file and send it to the PIC. I'm sure the compiler will accept command line arguments where you can indicate what file to compile. Then you can have LabVIEW read the output file and send it to the PIC.

Good luck.

Regards,

Juan Carlos
N.I.
0 Kudos
Message 4 of 5
(3,847 Views)
Hola/hi Juan Carlos,

I got execute the external program with the system exec, but how can i get to put several commands to the external program would make the compile?.

I only want open one file, compile, and close external program...

I would like to see any example,with the input commands.
I attached a image.

Regards,Jose.
Si quieres en castellano mejor.Saludos
0 Kudos
Message 5 of 5
(3,847 Views)