how I export data from the PIC memory to PC main memory and save excel or txt file


Closed Thread
Results 1 to 12 of 12

Hybrid View

  1. #1
    Join Date
    Jan 2009
    Location
    Miami, Florida USA
    Posts
    699


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by yousifm View Post
    do i need a Parallax microcontrollers to work with or any microcontroller.

    Best regards;

    yousif
    No, you don't need a Parallax. It works with a PIC also.

    Robert
    "No one is completely worthless. They can always serve as a bad example."

    Anonymous

  2. #2
    Join Date
    Aug 2010
    Posts
    4


    Did you find this post helpful? Yes | No

    Default Hi every one

    Thank you all for helping me ,,, I managed to export the data from PIC to PC using the HyperTerminal and the process as following ,,, maybe it will help another one have the same question
    Code:
    X var word[400] ' Create to store results
    Y var word [400] ' Create to store results
    
    MAINLOOP:
    
    for n = 0 to 399
    
    ADCIN 4 , X [n] ' read channel A5 and put result in X [ array]
    
    ADCin 2 , Y [n] ' ' read channel A2 and put result in Y[ array]
    
    pause 1
    
    next n 
    
    [[[X [n] and Y [n] are the veribles array]]]
    
    'to export the data to HyperTerminal 
    
    for n= 0 to 399
     
     SerOut2 PORTC.6, 396, [10,13,10,13]
     
    SerOut2 PORTC.6, 396, [DEC X [n]]
    
    next n
    
    
    'then the same way for Y[n]
    BUT IN THIS MOTHODS, i coudnt transfer all array elements becouse the data will delet the old one ,,, so maybe its good way to export array for nearly 200 elements

    i tried to use PLX_DAQ but i had a proplem in Data Transmitted ... the PLX conected to pic and resived the data but its can not be transmitted ,,, any one have an idea why thats happened??

    Best regards;

    yousif
    Last edited by ScaleRobotics; - 23rd January 2011 at 20:44. Reason: added code tags

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts