How to call another program from LabVIEW?
Hi!
Is there anyone that can answer my question? I have found a similar thread where the user needed to call labVIEW from some program but I want to do the opposite.
I made a program in labVIEW that communicates via COM-ports (serial communication) with the processor I use at the job (Ubicom´s IP2022).
Now I want to add more funcionality to this program. I want to be able to program re-program IP2022 through this LabVIEW application.
The programming is done via an Ethernet-dongle. I start a program called IP2kProg, I write the ip-address of the dongle and the program-file (.elf) downloads at this address. But how can I do this from
LabVIEW, do I need to open IP2kProg or can I send some values to it via LabViEW?
Ant suggestions?
Thanks, Amir
Amir,
There are couple of options:
1. If your IP2kProg program has a command-line interface, you can use LabVIEW's System Exec.vi and send the commands and parameters to it.
2. If the IP2kProg has an API / exported functions, you can call them from LabVIEW using the Call Library Function Node.
Hope this gives you some ideas.
-Khalid
Similar Messages
-
How to call java program from ABAP
Hi Experts,
My requirement is to call java programs from ABAP. For that i have set up SAP JCO connection by using this link http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/739. [original link is broken] [original link is broken] [original link is broken] Connection gets sucessfully. After this how to call java program from ABAP as per our requirement. Please help me out.
Also i tried this way also.. but while executing the DOS Command line appear & disappear in few seconds. So couldnt see the JAVA output. Please help me out to call java programs in ABAP..
DATA:command TYPE string VALUE 'D:Javajdk1.6.0_20 injavac',
parameter TYPE string VALUE 'D:java MyFirstProgram'.
CALL METHOD cl_gui_frontend_services=>execute
EXPORTING
application = command
parameter = parameter
OPERATION = 'OPEN'
EXCEPTIONS
cntl_error = 1
error_no_gui = 2
bad_parameter = 3
file_not_found = 4
path_not_found = 5
file_extension_unknown = 6
error_execute_failed = 7
OTHERS = 8.
Thanks.This depends on the version of your Netweaver Java AS. If you are running 7.0, you will have to use the Jco framework. The Jco framework is deprecated since 7.1 though. If you want to build a RFC server in 7.1 or higher, it is adviced that you set it up through JRA.
Implement an RFC server in 7.0:
http://help.sap.com/saphelp_nw04/helpdata/en/6a/82343ecc7f892ee10000000a114084/frameset.htm
Implement an RFC server in 7.1 or higher:
http://help.sap.com/saphelp_nwce72/helpdata/en/43/fd063b1f497063e10000000a1553f6/frameset.htm -
Calling another program from the current program
Hi all,
In our requirement we are calling another program from our current program .
In the current program( from which we are calling ) we are giving file name in the selection screen
and when we run the current program we are successfully going to other program but our main requirement is to higlight the file name which we had given earlier .
Note : The called program doesnt have any selection screen.HI
use EXPORT and IMPORT key words for passing data from one program to another program.
as the called program is available in the same session you can use above key words which means you are accessing ABAP MEMORY.
You can also use SET and GET key words which means SAP memory
take F1 help there are examples tooo and detailes explanation abou the same
Regards
Ramchander Rao.K
Edited by: Ramchander Krishnamraju on Dec 24, 2008 7:05 AM -
How to call one program from another program
Hai,
How to call one program through another program.
Example.
I have two programs 1.ZPROG1 2. ZPROG2.
When i execute ZPROG1 at that time it should call ZPROG2.Hi ,
u can use submit statement to call a program .
DATA: text TYPE c LENGTH 10,
rspar_tab TYPE TABLE OF rsparams,
rspar_line LIKE LINE OF rspar_tab,
range_tab LIKE RANGE OF text,
range_line LIKE LINE OF range_tab.
rspar_line-selname = 'SELCRIT1'.
rspar_line-kind = 'S'.
rspar_line-sign = 'I'.
rspar_line-option = 'EQ'.
rspar_line-low = 'ABAP'.
APPEND rspar_line TO rspar_tab.
range_line-sign = 'E'.
range_line-option = 'EQ'.
range_line-low = 'H'.
APPEND range_line TO range_tab.
range_line-sign = 'E'.
range_line-option = 'EQ'.
range_line-low = 'K'.
APPEND range_line TO range_tab.
SUBMIT report1 USING SELECTION-SCREEN '1100'
WITH SELECTION-TABLE rspar_tab
WITH selcrit2 BETWEEN 'H' AND 'K'
WITH selcrit2 IN range_tab
AND RETURN.
regards,
Santosh thorat -
How to call 'C' programs from stored procedures?
Hi
Did anybody tried to call 'C' programs
from oracle stored procedures?
If anybody knows, can you please send
how to configure the listener.ora and
tnsnames.ora. If its possible post all the
information from the begining with examples.
thanks....Oracle JDBC did not support return a result set, if you are using Oracle 9i, you can use pipeline function, then using the TABLE() function the get the row.
Good Luck.
Welcome to http://www.anysql.net/en/ -
How to call a program from FM which acts as popup?
Hi,
I need to call a program from FM and once the program is called it needs to be opened as a popup. Maybe we need to assign size when we call from FM or do we need to give size in the program it self?
I know i can either use the Submit command or Call Transaction command. But that it self will open a full screen which i dont want. It needs to be of a smaller size.
Any help will be appreciated.
ThanksHi,
Try this,
REPORT ZEX_POPUPSCREEN .
*& POPUP SCREEN
* Table Declaration
TABLES VBAK.
* Start of Selection
START-OF-SELECTION.
SELECT * FROM VBAK.
WRITE / VBAK-VBELN HOTSPOT ON.
ENDSELECT.
* Display the screen
AT LINE-SELECTION.
WINDOW STARTING AT 10 10
ENDING AT 40 25.
WRITE:/ 'VBAK-VBELN, VBAK-KUNNR'.
Regards,
Nikhil. -
How to call java program from javascript
Hi,
I have an java program which will transform one xml to another xml using XSLT.
I want to call this java program from Javascript? Is this possible? Please suggest me.
Thanks,
Gopalis it not possible?
do i have to refresh the page and read in the values like...
<%
String ename = request.getParameter( "EmployeeName");
session.setAttribute( "ename", ename);
%>and then call the class from here?
looking around ive come across ajax but i dont know how to use it and what you need to install and if its compatable with tomcat and jsp?
is ajax better or not really worth it?
i have anything up to 100 fields that need saving at one save click -
How to call WD program from a headerless WD screen
Hi Experts,
For the MSS worklist, I have created a custom WD headerless screen. In this screen, I have created one linktoURL UI element. When the user clicks on the screen, URL is called using following code. This code is working fine in Development. How I can remove the hardcoding related with https://ruepd.mycompany.com:50001. As for Quality the URL will be different say https://abcpd.mycompany.com:50001. Please help.
public static void wdDoModifyView(IPrivateAutoSettlementAppView wdThis, IPrivateAutoSettlementAppView.IContextNode wdContext, com.sap.tc.webdynpro.progmodel.api.IWDView view, boolean firstTime)
//@@begin wdDoModifyView
wdContext.currentContextElement().
setUrl("https://ruepd.mycompany.com:50001/irj/portal?" +
"NavigationTarget=ROLES%3A%2F%2Fportal_content%2Fcom.mycompany.all.folder.mycompany%2Fcom.mycompany.ep.folder.enterprise_portal%2Fcom.mycompany.portal.folder.roles%2Fcom.mycompany.portal.folder.employee_self_service%2Fcom.mycompany.portal.role.employee_self_service%2Fcom.mycompany.portal.workset.employee_self_service%2Fcom.mycompany.portal.workset.area_travel_expenses%2Fcom.mycompany.portal.page.create_expense_report&DynamicParameter=trip_number%3D"+
(wdContext.currentContextElement().getTripNumber()).replaceAll("^0*","") +
"%26mode%3Dcreate&TarTitle=Create%20Expense%20Report");
One alernative is to create a push button and then use the navigate absolute. However navigate absolute code does not work for headerless WD screen.
How I can convert headerless into non - headerless screen. As the screen is being called from Worklist. I does not have any control on making the screen non headerless screen.
The questions are
1) Is there is any way to keep the code as shown above and remove "https://ruepd.mycompany.com:50001" by some variable. So that we can avoid hard coding the value of https://ruepd.mycompany.com:50001
2) How to change the screen from hearless screen to non headerless screen. In this case I will use navigate absolute
3) Can we use navigate absolute in case of headerless screen. FYI - I have checked and found that I can not use it in headerless screen
Regards,
GaryHi,
I am using following code:
String hostName = TaskBinder.getCurrentTask().getProtocolAdapter().getServerName();
if (hostName.equalsIgnoreCase("development.mycompany.com"))
wdContext.currentContextElement().
setUrl("https://ruepd.mycompany.com:50001/irj/portal?" +
"NavigationTarget=ROLES%3A%2F%2Fportal_content%2Fcom.mycompany.all.folder.mycompany%2Fcom.mycompany.ep.folder.enterprise_portal%2Fcom.mycompany.portal.folder.roles%2Fcom.mycompany.portal.folder.employee_self_service%2Fcom.mycompany.portal.role.employee_self_service%2Fcom.mycompany.portal.workset.employee_self_service%2Fcom.mycompany.portal.workset.area_travel_expenses%2Fcom.mycompany.portal.page.create_expense_report&DynamicParameter=trip_number%3D"+
(wdContext.currentContextElement().getTripNumber()).replaceAll("^0*","") +
"%26mode%3Dcreate&TarTitle=Create%20Expense%20Report");
if (hostName.equalsIgnoreCase("quality.mycompany.com"))
wdContext.currentContextElement().
setUrl("https://ruepd.mycompany.com:50001/irj/portal?" +
"NavigationTarget=ROLES%3A%2F%2Fportal_content%2Fcom.mycompany.all.folder.mycompany%2Fcom.mycompany.ep.folder.enterprise_portal%2Fcom.mycompany.portal.folder.roles%2Fcom.mycompany.portal.folder.employee_self_service%2Fcom.mycompany.portal.role.employee_self_service%2Fcom.mycompany.portal.workset.employee_self_service%2Fcom.mycompany.portal.workset.area_travel_expenses%2Fcom.mycompany.portal.page.create_expense_report&DynamicParameter=trip_number%3D"+
(wdContext.currentContextElement().getTripNumber()).replaceAll("^0*","") +
"%26mode%3Dcreate&TarTitle=Create%20Expense%20Report");
Is it a correct approach?
Regards,
Gary -
How to call another program as root in servlet
In my servlet, I want to call another background programs (writeen in c) to do some tasks and gather the output of them as the output of my servlet. Is there any way to do so like Suexec in apache.
Thankssorry I forgot mention that the c program required the caller had root privilege.This is the problem I facing now.
Thanks -
How to call report program from WebDynpro Application
HI
How call report program in WDA.
1. To extract the xml files and store the data in to data base table, program name is "zprogram_application".
When run the se38 it's working fine and save the data in database.
2. When i click "SUBMIT" button the web dynpro application automatically run the Report program "zprogram_application" and save the data into data base table. This is my requirement please give me suggestions.
3. I want run the report program in web dynpro application.
Thank you
V.VENKATESHFrom within the WDA Event handler you can call the program using SUBMIT ... AND RETURN. You might have to be careful with what the program does. It must run as though it is in the background. There is no connection to the client machine - so no SAPGUI calls. You might also consider the addition VIA JOB job NUMBER n... to the SUBMIT command. That will allow you to start the submitted program as a background job. Your WDA can then continue processing as the submitted job runs in parallel.
-
How to call VXIplugNplay driver from Labview
I downloaded a VXIplugNplay driver from Tektronics but I can't find any documentation on how to implement and use from Labview
JCM,
If it is a LabVIEW driver, the VIs should be available from the Functions palette in Instrument I/O >> Instrument Drivers. If it is not a LabVIEW driver, this KnowledgeBase describes the process of converting the driver:
http://ae.natinst.com/operations/ae/public.nsf/fca7838c4500dc10862567a100753500/a2ee1e1fff7fadda86256843005212d2?OpenDocument
Good Luck
Spencer S. -
How to call another action from Struts dispatch action?
Hi all,
there is a method in dispatch action that needs data from another chained action. How should other action determine which method in dispatch action will receive response and how should these data be returned from called action? Called action does not have associated form bean
thanks,Not sure, why are there then "chained actions" is struts practice? Struts allows action without form bean to be configured and the action is a class?
-
How to call ABAP programs from Excel
Hello everyone,
Currently I'm investigating the integration of Excel and ABAP program. I find it's easy to call Excel from ABAP program, but does anyone of you know how I can first open and do some actions in an Excel sheet first, and then, for example, when I press the save button, the data will be transferred back to ABAP system? I think when openning the Excel, the logon of the backend system is needed.
I've ever seen this functionality in some BW-reporting tools, but I cannot remember the details.
Thank you very much and best regards,
Leonyes in BW we are having this concept of creating wookbooks & queries.
If u have BW server Go to Transaction RRMX - u will get a Microsoft Excel sheet.
Here it allows u to logon to the SAP system.
For details see this link.
<a href="https://forums.sdn.sap.com/click.jspa?searchID=561476&messageID=2553631">https://forums.sdn.sap.com/click.jspa?searchID=561476&messageID=2553631</a>
<a href="https://forums.sdn.sap.com/click.jspa?searchID=561476&messageID=519862">https://forums.sdn.sap.com/click.jspa?searchID=561476&messageID=519862</a> -
How to call VB program from PL/SQL ?
hi, i use oracle8i and i would like to call program VB from Stored procedur or PL/SQL program.
Is it possible and how?
thanksIf you are trying to invoke a WebService, it shouldn't matter what under what platform that WebService compiled or where it is executing, as long as it is on a shared network. That is the very "definition" of a WebService. You should be able to invoke the webservice via TCP sockets, streaming XML message content.
If your VB WebService isn't, in reality, a WebService and you need to invoke it as an ActiveX dll that is possible with Oracle COM Automation. The 8i/9i data server must be running on the win32 platform that has the ActiveX dll installed. I'm not sure if there is any DCOM possibilities (though I suspect not). In all circumstances, if you data server is running on a non-win32 platform, you are out of luck.
If you are trying to invoke an ActiveX application (not a dll) from the 8i/9i data server, you are pretty much out of luck, too.
Hope that helps,
Michael -
How to call Abap Program from Javascript or html ?
Hi All,
I have developed a program using html, abap and javascript. I want to call an abap program while clicking on the button.
How can I do it ?Hi Rajesh,
What kind of program it is? is it a report or a transaction?
If it's transaction, you can call the transaction as below from a link or button.
http://<host>:<port>/sap/bc/gui/sap/its/webgui?~transaction=<transaction>
Please replace the parameters in <..> with appropriate values before testing.
Regards,
Ravi
Maybe you are looking for
-
Sa's password in SQL Server 2008 R2 Express
Hi, In the SQL Server 2005 Express I can chose the expert mode during the installation. This enables me to set the password of the user "sa". Now I tried to install SQL Server 2008 R2 Express but I had no possibility to change / set the password of
-
I've installed both 7.5 and 7.6 and with either version for some reason I can no longer get the album artwork to any of my albums, when trying to get them the following message appears: Artwork for ..... could not be found. An unknown error occurred
-
Slow wi-fi on OSX 10.6.8, caused by Firefox 11.0?
For a week I've been following hints and tips on the tricky subject of poor wi-fi connectivity on my iMac, without any success after changing DNS settings and doing lots of other things. The problem started a couple of weeks ago. I now think I have a
-
Why is this happening and how can i fix it?
-
Unable to type in password if firewire devices are connected
I've just upgraded to Lion, and have this odd problem. When Lion boots on my Mac Mini, it prompts to type in my password. If I have my Firewire devices connected (two external storage device, a Seagate and Drobo), I can't type in password or click