|
From: sambasivareddy <sam...@pa...> - 2008-03-12 15:42:28
|
Hi Rolf,
First of all I am very thankful for your response. Giving some more
clarification on my queries.
I have tried with "System Exec.vi" option in labview, able to calling
pythonnet but unable to send commands and arguments to run python script
(i.e. import pythonscript name)
(Basically this python script calls some other DLL and print some message,
to run the script using Python net in my application .To run my script in
python net using following commands: import pythonscript name)
I hard we can call pythonscripts from LabPython also. If u know please tell
me. If you have samples".VI " please send to me. If you want clarification
from my side please let me know.
Thanks in advance.
Regards,
Sambasivareddy.S
-----Original Message-----
From: Rolf Kalbermatter [mailto:r.k...@hc...]
Sent: Wednesday, March 12, 2008 1:14 PM
To: sam...@pa...; 'LabPython Users Mailing List'
Subject: RE: [LabPython-Users] Need some inputs about LabPython
Hi
> I am new to this community. Need some inputs from the community.
Welcome here!
> Questions: How can I call python script from Lab View?
> (Basically this script calls some other DLL and print some message in my
application)
Well you will have to make sure the Python engine can find the DLL. There is
a directory in Python where you can drop in Python extensions or if that is
not what you want you can change a global path variable in Python to tell it
where it can find and load additional modules.
You'll have to change that path before you run a script that tries to load
that Python module. Don't know offhand what name it has but this should be
documented in the Python docs.
> In how many ways we can call Python scripts from lab view?
Hmm, not sure I understand that question! Personally I would say two! Once
in the script node, writing (or copy-paste) your script into it and once
through the API Vis that allow to give you dynamic script execution.
Rolf Kalbermatter
CIT Engineering Netherlands
Kanaalweg 25-33 Tel: +31 10 442 1701
2903 LR Capelle a/d IJssel Fax: +31 10 442 1712
Netherlands http://www.citengineering.com
http://www.patni.com
World-Wide Partnerships. World-Class Solutions.
_____________________________________________________________________
This e-mail message may contain proprietary, confidential or legally
privileged information for the sole use of the person or entity to
whom this message was originally addressed. Any review, e-transmission
dissemination or other use of or taking of any action in reliance upon
this information by persons or entities other than the intended
recipient is prohibited. If you have received this e-mail in error
kindly delete this e-mail from your records. If it appears that this
mail has been forwarded to you without proper authority, please notify
us immediately at net...@pa... and delete this mail.
_____________________________________________________________________
|