WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 06-14-2006, 06:49 AM
eagle112800 eagle112800 is offline
Member
 
Join Date: Jun 2006
Posts: 2
PY. script

Thank you for your help. As I am new to programing; how can I run the python script from matlab? Does that mean I can just drop the phython code into matlab add a few extra lines of code to let it know I am using phytopn. Then have matlab run the program using the phyton code for the headset, my program for the test and data recovory all at the same time. If that is true that would be great and the simplest way to make what I need to work.
Moreover, what do I need to tell matlab to do so it wil read the phyton code?

Gregory
Reply With Quote
  #2  
Old 06-14-2006, 10:19 AM
Gladsomebeast Gladsomebeast is offline
Member
 
Join Date: Mar 2005
Location: Isla Vizta, CA
Posts: 397
To run a Vizard/Python script from MathLab you should include a line in MathLab that executes the winviz.exe program with the Vizard/Python script you want to run as an argument. If you were executing a Vizard/Python program from the command line it would look like this: c:\winviz.exe myScript.py

To do this in MathLab, you will have to look up how to execute an external program from a MathLab script. I am unfamiliar with MathLab so I don't know how this is done. Probably some function called fork, exec, or spawn.

This assumes that there is no interaction between Vizard/Python and the MathLab code.
__________________
Paul Elliott
WorldViz LLC
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 10:17 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC