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:...
User Profile
Collapse
-
c:\users\Dima>p ython ab_test.py
'python is not recognized as an internal or external command,
operable program or batch file...Leave a comment:
-
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!...Leave a comment:
-
-
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....Leave a comment:
-
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? -
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!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....Last edited by Niheel; May 21 '10, 02:44 AM. Reason: Please use proper punctuation, spelling and grammarLeave 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,...
No activity results to display
Show More
Leave a comment: