LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

system exec, get orders to the opened external file!!

Hi,

I would like to learm to use the system exec, i call the external soft and open, but i would like, with commands, get the soft open the file i put and do any success and close the soft , all controlater from lb.

I would like to know, How i can say to the program, open any file or save any file????.
I need to know the commands...
Any link or example file....

Regards, Fonsi.
0 Kudos
Message 1 of 12
(3,812 Views)
System Exec is like starting a program from the DOS prompt. For example, from DOS you can open a specific VI by typing LabVIEW.exe filename where filename is the VI you want to open. Different program may or may not open files this way. If the program does, it may or may not accept other command line parameters. You cannot, for example, open Excel from a command line, modify some cell, run a macro, and then save the new file. Control over most programs, to this level of detail, must be done with some other mechanism. For many programs, this mechanism is ActiveX. For others (mainly older apps) it might be DDE. LabVIEW provides the system exec, ActiveX, and DDE. You have to know about the application and what it supports. The worst is a windows program with no built in support and you have take control of the mouse, simulate clicks, etc. There is no universal method because it is up to the developer of the application to decide what kind interface to provide. If there is some specific executable that you need to run, what is it? If it's some popular commericial application, you may find someone here that has experience with it. Otherwise, your best bet is the documentation provided with the app.
Message 2 of 12
(3,808 Views)
Hi Dennis!, Thanks for the reply...

The program is very easy...

One is icprog to program pic. Right now i can execute it with the system exec.vi... but i would like directly the lb order open the file , in the program is control+o and program all is F5, i dont need more, but maybe would be interesting activex...

I attached the icprog and you can see if i could use it with the system exec or need more advanced system like activex, although i dont know anything about the activex.

The other soft is MPASMWIN.EXE, i only need open the browse the file and asemble and close...

Tell me if i could use the system exec for that or the activeX, and If to get it ant activeX is easy, since i am very loss on activeX.

Regards,Fonsi.
0 Kudos
Message 3 of 12
(3,802 Views)
I don't know. For one file, the help file is not included (icprog.exe), and the other (mpasm) refers to MPASM User's Guide. Read those and see what they say. For some of my device progamming, I use something from Data I/O called TaskLink. It supports the creation of a task. I can start it from the command line with a specific task and it goes off, loes the binary file, programs, and verifies. See if you can do something similar. Check with the vendor and see what they recomend for automation.
Message 4 of 12
(3,798 Views)
Hi Dennis,

I dont know , like i could to see it... maybe is thats.

Look at this link.. and tell me you... remember i dont know on thats!

http://www.ic-prog.com/index1.htm

http://www.ic-prog.com/cmdline.txt

In the last link, i see the commands, i think is thats!!.

Confirm me..
Regards,Fonsi
0 Kudos
Message 5 of 12
(3,784 Views)
Hi , for the mpasm

The help file i attached!!.

Confirm me please if i could to do it easily..

If it is possible i would like to see any example or link to understand it well.

Thanks Fonsi.
0 Kudos
Message 6 of 12
(3,780 Views)
Look at the section MPASM Assemblyer>Assembler Interfaces>Command Line Interface and see it that will meet your needs.
Message 7 of 12
(3,759 Views)
Hi Dennis,

ok, but how i should to put the command on system exec or where???.

Explain me more precise please...
And the link of icprog is this commands too??.
0 Kudos
Message 8 of 12
(3,751 Views)
I don't know if I can be any more precise. I'm not familiar with either of these programs or your needs. My suggestion is to go to the DOS prompt and type the command and see if it does what you want.
Message 9 of 12
(3,744 Views)
Hi Fonsi,

Please find attached Vi for your reference 🙂
You may, however, need to modify it to suit your needs!

Cheers!
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
Message 10 of 12
(3,596 Views)