LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Serial Port communication with PIC

Solved!
Go to solution

Dear All.

 

I am interfacing the labVIEW to a eeprom through a PIC controller,in which i need to user entry data to store in a location of EEPROM,according to my requirement i did the pic programming and it working fine with hyperterminal,at the same time i need to do with a labVIEW by using serial port communication VISA,but when i did i am getting one warning in 1073676294 which can ignore but i am not able to write the user data to EEPROM through labview but i can do it from hyperterminal,please any one help me on this.

 

Raikar A G

0 Kudos
Message 1 of 8
(4,968 Views)
Solution
Accepted by topic author Raikar

I have been interfacing to PICs for a while, and the example you have build from was the same I used. First, move all the INITILIZATION outside the loop. No need to re-init the COMM PORT every 750ms.  Inside the example code there is a 500ms wait between the WRITE and the READ (it is hard coded at the moment, you did not bring it out on the ICON).  So total time is the loop's 750ms plus the 500ms wait (plus comms traffic), FYI.

 

You are not using a carraige return (13) or a LINE FEED (10) as a termination. You are using a SO(14). Unless you are triggering on a an ASCII 14 in the PIC, the PIC will never see the "end of the command string" to parse it out. I attached a good (IMO) init routine that I re-use on all my PIC projects, take a look.

 

I use the Mikroelectronica MikroCPRO compilers, and posted a full UART interface (triggers on a CR(13) ) on their LIBSTOCK site if you want to take a look at the PIC side of my work.

 

http://www.libstock.com/projects/view/250/rs232-interrupt-driven-command-based-interface

 

 

Steve

Download All
Message 2 of 8
(4,925 Views)

Dear Sir.

 

 

Thanks a lot for your valuable suggesting,I got the it now...

 

 

 

Raikar A G

0 Kudos
Message 3 of 8
(4,911 Views)

Glad it helped! Pls leave me a KUDO - I hove NONE yet 🙂

Message 4 of 8
(4,901 Views)

Hey Steven8R,

 

Any chance you could send me a snippet of your example code above? I am working with LabVIEW 2011 so I cannot open the VIs. I want to avoid having to download and install LabVIEW 2012.

 

thanks,

 

-Serge 

Certified LabVIEW Developer

0 Kudos
Message 5 of 8
(4,452 Views)
Then use the Version Conversion board.
Message 6 of 8
(4,438 Views)

I see. Thanks Dennis 🙂

Certified LabVIEW Developer

0 Kudos
Message 7 of 8
(4,425 Views)

Conversion was done here: http://forums.ni.com/t5/Version-Conversion/Convert-LV2012-VIs-to-LV2011/m-p/3162034#U3162034


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 8 of 8
(4,415 Views)