04-05-2013 08:07 AM - edited 04-05-2013 08:13 AM
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
Solved! Go to Solution.
04-08-2013 07:41 AM
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
04-08-2013 10:23 AM
Dear Sir.
Thanks a lot for your valuable suggesting,I got the it now...
Raikar A G
04-08-2013 11:20 AM
Glad it helped! Pls leave me a KUDO - I hove NONE yet 🙂
07-07-2015 10:58 AM
07-07-2015 11:48 AM
07-07-2015 12:56 PM
07-07-2015 01:46 PM
Conversion was done here: http://forums.ni.com/t5/Version-Conversion/Convert-LV2012-VIs-to-LV2011/m-p/3162034#U3162034