Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Running command line VI job from Workstation

Status
Not open for further replies.

richcwi

Programmer
Feb 6, 2007
16
US

Is it possible to run a command line VI job from a PC that has the MAS Workstation setup?

Anotherwords run the VI Job locally on the MAS Workstation PC instead of on the MAS Server? We have MAS 3.71

Thanks,
Rich
 
Still no luck with this.....

Can run the VI job from the Workstation PC when logged in to the workstation console.

But can't run it from the command line dos prompt on the workstation.

Runs fine on the server......

Anyone???
 
Are you running MAS90 or MAS200? Can you post your command line.
 
MAS200

cd "C:\Program FIles\Best\90cs\MAS90\HOME"
PVXWIN32.EXE ..\LAUNCHER\SOTA.INI ..\SOA\MAS90 -ARG ..\VI\VIWI0O W 0 DIRECT AUTO CWI


Same ini file on server and workstation, same VI\VIWI0O on both also

This runs on the server but not on the workstation....
 
Get dialog box:

"Unable to initialize lead program"

"Error #12: File does not exist(or already exists)

 
Wow are you going to feel stupid. Here is how I do it in calling a VI job from Access.

ChDrive "M"
ChDir "M:\Mas90\HOME"
Shell("M:\MAS90\HOME\PVXWIN32.EXE ..\LAUNCHER\SOTA.INI ..\SOA\MAS90 -ARG ..\VI\VIWI0F W O DIRECT MANUAL HHA")

Notice that the drive letter M is relative to the work station. In your example of course it works on the server. That is where MAS is located on the C: drive. But from the work station where is MAS located? M drive? Z Drive? I bet it's not the C drive you are using.
 
I'm not feeling too stupid - yet.

Our workstation does not have a drive mapped to the mas server. When the workstations are setup we use \\servername\mas90 to indicate where mas is located.

I copied the ..\vi\VIWI0O files from the mas server and placed it on my test workstation and called PVXWIN32.EXE on the workstation.

In your example the program is still run on the workstation. I'll try mapping a drive for testing purposes and see if I can determine what the differences are.

Rich
 
When running MAS it is best to have a mapped drive to the server.
 
Rich,

To run command line, from a shortcut, you need the Startup directory to be set "M:\Mas90\HOME"

Paul

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top