User Profile

Collapse

Profile Sidebar

Collapse
dima81
dima81
Last Activity: Jun 1 '10, 04:49 PM
Joined: May 20 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • dima81
    replied to How to run Python code from MAtlab
    thanks again!
    i did as you said.
    now when i am writing (in command line) "python" it is starting the Python. but when i enter "abc.py" i get an error:

    traceback<inner most last>:
    file "<stdin>", line 1,in ?
    nameError: abc.py

    When i'm writing "python abc.py" straight in the command line (without entering first to the python) i get an error:...
    See more | Go to post

    Leave a comment:


  • dima81
    replied to How to run Python code from MAtlab
    c:\users\Dima>p ython ab_test.py
    'python is not recognized as an internal or external command,
    operable program or batch file...
    See more | Go to post

    Leave a comment:


  • dima81
    replied to How to run Python code from MAtlab
    Hi Glenton!
    tnx for your answer!
    i am using Windows.
    the command:
    !c:\python\...w hateveryourpath is\python.exe(o r whatever) abc.py
    do exactly the same operation as command:
    system('abc.py' )

    it just opens the file abc.py in the Python terminal but not runs it! and this is my problem. i need it to run when i call it.

    anyway, thank you for your help!...
    See more | Go to post

    Leave a comment:


  • dima81
    replied to How to run Python code from MAtlab
    i tried it already.
    it does not work......
    See more | Go to post

    Leave a comment:


  • dima81
    replied to How to run Python code from MAtlab
    hey!
    in MATLAB:

    system('abc.py' )

    it is openning the Python Terminal with the abc.py, but to in order to run it i have to run it myself....
    See more | Go to post

    Leave a comment:


  • dima81
    started a topic How to run Python code from MAtlab

    How to run Python code from MAtlab

    I have 2 codes; one in Matlab and the other in Python.
    what i need to do is run the Python from Matlab.

    I know that i can use SYSTEM'....' command, but it is only openning the .PY in the python terminal and not running it itself.

    I need that when i call python script it will run automatically!
    Is there any suggestions?
    See more | Go to post

  • ok... so as i was suspecting the problem was the converter from USB to RS232. i have connected the Computer to the terminal with the RS 232 cable abd it is run without any problem.
    tnx to all!
    See more | Go to post

    Leave a comment:


  • Hey dwblas! Thanks for the fast response! There is no problem with MDM, because the same version of Python is running on friend's computer, and there it is just fine. I suspect my USB to RS232 converter is the problem, but on the other hand with Hyper Terminal it is works good....
    See more | Go to post
    Last edited by Niheel; May 21 '10, 02:44 AM. Reason: Please use proper punctuation, spelling and grammar

    Leave a comment:


  • problem i am experiencing with Python "send" command.

    I am having issues with the Python "send" command.
    For example, I am running the next code which is checking ADC.
    The code is right, there are no errors. I tried to run on other computer and it was fine.

    The script does a loop with the following operations:
    measures the ADC value at the ADC_IN1 pin, by issuing AT#ADC and AT#ADC=1,2,
    then using GPIO.getADC, then prints the result on the debug port,...
    See more | Go to post
    Last edited by Niheel; May 21 '10, 02:23 AM. Reason: punctuation, readability, code tags
No activity results to display
Show More
Working...