How to give input to the vi references
I'm using vi server to call sub vis.Here by i attached the code.I want to pass one array control also ahile calling the vi.How to do that.
Attachments:
main1.vi 68 KB
Horizontal_bar.vi 139 KB
Thank u very much.
--- Please don't call me "u". The word is "you".
Whether can i use set control value in the case of call by reference node.
When you CALL BY REFERENCE, you wire the terminals just as if you were calling it conventionally. Look in frame 2 of my demo.
Also please clear me whether using run continously is an efficient mode or putting the login in a while loop.
I have no idea about your "login", but "run continuously" is not a good idea for a finished program. It's intended for debugging, and testing subVIs, but not as a way of operating. For one thing you can't use it in a built application.
If you need to coordinate several VIs, you need a global b
oolean variable, called PROGRAM RUNNING" or something.
Set it TRUE first thing, when the program starts, before you launch all the parallel VIs.
Set it FALSE when the user clicks the QUIT button on the main panel.
Each independent loop should check the value of this global and stop if it is TRUE.
For making an exe file.which is the better way either making the exe of main appln or making exe of library which has alltogether all subvis."
The library method is only useful if the library can be used by more than one main application. If you have one main application, then use the everything-in-one-file approach - it's easier on everybody.
Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com
Blog for (mostly LabVIEW) programmers: Tips And Tricks
Similar Messages
-
How to give input to 3d surface interms of cylindrical coordinates(r,theta,z)
hi,please let me know how to give input to 3d surface interms of cylindrical coordinates(r,theta,z)how to give input to 3d surface interms of cylindrical coordinates(r,theta,z)
Hi,
This is the functions you should be using:
Also, please have a look at the NI Example Finder, i think the 1st and the 4th example will be of interest to you.
Hope this helps...
.......^___________________^
....../ '---_BOT ____________ ]
...../_==O;;;;;;;;_______.:/ -
Can we use cl_gui_alv_grid to give input on the screen?
Hi experts ,
Can we use <b>cl_gui_alv_grid</b> to give input on the screen and save the input in some internal table which is passed as a parameter with the calling method of
cl_gui_alv_grid??
Thanks in advance
regards,
AshwinOR you want to can set any particular field by
ls_fcat-edit = 'X'.
in the field catalog for that field .
Assign the points if it helps you ...
Gaurang -
How to give colors to the top-of-page in ALV Grid
How to give colors to the top-of-page in ALV Grid
in table GT_LIST_TOP_OF_PAGE i am filling 3 rows ,i need 3 different colors to be displyed on top-of-page(one color to one row)
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
I_LOGO = 'ENJOYSAP_LOGO'
IT_LIST_COMMENTARY = GT_LIST_TOP_OF_PAGE.
please help meeHI Kranthi,
Check out teh foll. link,
http://www.sapfans.com/forums/viewtopic.php?t=52107
Hope this helps. -
How to give colors to the top-of-page in ALV List Display
how to give colors to the top-of-page in ALV List Display....
Check this blog.........
It provides your required output...........
/people/vijaybabu.dudla/blog/2006/07/21/topofpage-in-alv-using-clguialvgrid
See the point 7 for complete code...
Regards,
Pavan -
May i know how to give rewards to the questions?
hi all gurus,
actually i don't know how to give rewards to the questions?
so, can anybody pls... let me know that...
thanks
arunHi Arun,
You will have Radio buttons left to the answers.
Plz select one of the radio button among the four radio buttons.
1) If you felt one of the answer solves your problem, reward them with Solved problem. Close the thread once it is solved/answered.
2) If you felt one of the answer solves helps you very much, then reward them with Very Helpful answer.
3) If you felt one of the answer helps to your problem, then reward them with Helpful answer.
Rewarding points to a contributor gives a token of recongition to him/her and makes them to contribute more on Forums. Even a single word 'Thanks' also makes them comfortable. As many contributors are spending their time apart from their regular activities. So its always a good thing to recognise/appreciate them.
Thanks,
Vinay -
How can give permissions to the users in wiki?
Hi, in wiki how can give permissions to the users, i need to give one of the users full control for wiki only ( not the server ), so how can make this user wiki admin?.
No answer!!??
I Need to put one of staff as Wiki Admin then he can manage it ( Delete, Edit ...etc ), Wiki Creators users can't full admin the Wiki.
Please help. -
How to take Input from the callers telephone keypad into oracle database
My client requires to automate a registration task for his customers by telephone. The requirement is the Oracle database should take numeric input from the callers telephone keypad eg 1 or 2 or 3 and the oracle must store this input inside its database and do some required processing with such input and generate a unique numeric id (sequence) and send back this unique numeric ID to the caller who is on hold. Please Note. Is there any electronic device to be installed at the client site to solve the above task eg. any telephone line to be connected to the CPU and etc?
I completely have zero knowledge. Please can you outline/summarise the instructions how to construct and install to meet my client requirement.
If this is not possible in Oracle I Can migrate to any database. Please suggest.
please help me. if you cant help i appretiate if you give me some cluesYou need to start with your telephone system. Normally this situation would involve some sort of PBX or other internal switching equipment. Talk to your vendor. There's likely to be software, etc. available to perform the interaction with the end user.
It should have programmable "hooks" to interface with various databases. To Oracle it just looks like another program.
Ken -
How to give input parameter to application form through se38 program?
Hi all,
How can i call my application form from within my se38 program?
is there any way then please tell me?
and how to pass input parameters to application form through se38 program?
Thanks and Regards,
Arpita.Hi you can pass the parameter using application program. You can pass the value using the interface of the function module given below.
parameter p_matnr type mara-matnr.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = gc_smart_form 'Name of ur smart form
variant = ' '
direct_call = ' '
IMPORTING
fm_name = lv_fmname
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3.
IF sy-subrc NE 0.
MESSAGE ID sy-msgid TYPE 'E'
NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
CALL FUNCTION lv_fmname
EXPORTING
control_parameters = gs_ssfctrlop
output_options = gs_ssfcompop
user_settings = ' X'
**---This is where u can pass ur paramter to the smart form*
matnr = p_matnr.
called from batch job
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5 .
Thanx and hope this would help.
Regards,
Aruna
Edited by: Aruna Kumari Chekka on Dec 12, 2008 6:24 AM
Edited by: Aruna Kumari Chekka on Dec 12, 2008 6:29 AM -
How to give input parameter to Bapi when executing a method.
Hi All,
I have 1 input field and 1 button.I've defined a model node and inside that model attribute in my view.If I enter something in the Input field the value should go to the particular model attribute I defined.How to pass that input parameter.I have a action like this....
public void onActionGetDateDetails(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
//@@begin onActionGetDateDetails(ServerEvent)
wdThis.wdGetGetDateDetailsCustController().execute_Bapi_Get_Date_Details("");
// while executing the above method I have to pass the input parameter typed in the input field.
Structure of my context :
Bapi_Date_Details
>Network List(Model Node)
|
-->Network (Model Attribute)
//@@end
Help me to solve this.
Thankx in advance.
Regards,
Karthick.K.EHi Karthick,
You can associate an input field's value to a BAPI in two ways:
1) binding the input UI element's 'value' directly to the BAPI's input attribute that you want to set. This is the methos Noufal suggested. In this method, make sure you initialize the attribute through the following lines of code in the doInit() method, else, the input field will be disabled.
<b><Bapi_name>Input input = new <Bapi_name>Input();
input.set<Attribute_name>(new <dataType>);</b>
2) The second method is settting the input's 'value' to some other attribute(say 'abc') and giving this value to the input parameter just before calling the RFC.
input.set<Attribute_name>(wdContext.currentContextElement.getAbc());
Hope this helps,
Best Regards,
Nibu -
How to give input on selection screen
hi all,
i want to provide text to thr report on selction screen
i.e for example i have to write the text 'not valid reason for it ' on selction screen
how do i write it ?
kindly let me know
thanks in advanceHi Deepthi,
Please go thru the following code.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS cg1 RADIOBUTTON GROUP CTU. "create session
SELECTION-SCREEN COMMENT 3(20) TEXT-S07 FOR FIELD cg1.
selection-screen position 45.
PARAMETERS cg2 RADIOBUTTON GROUP CTU. "call transaction
SELECTION-SCREEN COMMENT 48(20) TEXT-S08 FOR FIELD cg2.
SELECTION-SCREEN END OF LINE.
You can Give text for a particular screen element.
You can set the position of the text as well.
U should make use of events like AT SELECTION-SCREEN for getting the input data back to the report
Thanks,
Lakshman
Edited by: Lakshman N on Dec 4, 2008 2:52 PM -
ABAP webdynpro how to give spacing between the UI Elements in a view
Hi Expert,
I am very new to webdynproapplication development. I am stuck in changing the look of the ui elements of the view.
Cud anyone explain how to set the spaces between the UI Elements on a View is there any method ?
I have set the Layout property to Matrix layout. But here I am unable to set the spacing between the deffernet elements as it is taking it automaticaaly and I am not able to allign all the Elements.
Need your help!.............thank you
Moderator message: wrong forum, please have a look in the dedicated "Web Dynpro ABAP" forum.
Edited by: Thomas Zloch on Apr 15, 2011 10:17 PMHi anushree.,
If u are using matrix layout:
In Layout Data select MatrixHeadData to display UI in next line.,
If u want to give space between UI elements in the width enter 50, 60, 70 or what ever space u want.
Also in the vGutter u can select medium , large , medium with rule to give space between UI elements.
n if u want to give space between lines ., in the height enter 30 40 or whatever spacing between lines u want.,
Matrix layout is a good layout., and u can play with colspan , hAlign, vAlign, vGutter, width and height options.,
If u dont like the layout with these options then use Grid layout., where u can give custom spacing., with the help of Left Padding, Right Padding, Top Padding, Bottom Padding.
reply if u need some more clarifications.,
Thanks & Regards
Kiran -
How to give a checkbox the value "row number" (like [row selector])
I like to define a checkbox with htmldb_item.checkbox and give the checkbox the value 'row number'.
It has to be the row number as displayed. Therefore I cannot use rownum or row_number() because the htmldb sorting functionality change the sequence after the row numbers are given.
How can I give the checkbox this value, or as alternative how can I get the current row (checkbox element) in javascript from the checkbox onclick event.Vikas,
Thanks a lot.
This works.
I use this number also to construct javascript and I walk in problems which are also solved now.
therefore for anyone else who also want to use '#ROWNUM#'. keep in mind that for the sql #ROWNUM# is just a string and should be treated as a string therefore use quotes around it. The #ROWNUM# string is translated after executing the query, when the page is constructed from the result of the query.
Fred. -
Curve fitting gives input, at the output
Hi everybody, i am having a problem at curve fitting function,
i take at output, what i give as input, where do i make mistake?
at example i give 4 values, if i enter 6 values it works, but i need to do it with 4 values.
any ideas?
thanks
Solved!
Go to Solution.
Attachments:
curve fitting.vi 16 KBYour function is a simple quadratic polynomial, so you should use the general polynomial fit function instead. Don't overcomplicate things
LabVIEW Champion . Do more with less code and in less time . -
How Do Give one Clip the same DISTORT properties as another clip?
I have 30 graphics- all the same size- and I'm shrinking/distorting each of them to fit on a TV screen i the background - How do I give all 30 graphics the same properties, so I dont have to go in and copy and paste 10 different numbers in each box for each image?
I've tried right click "copy" from the distorted graphic - then right click "paste properties" to the undistorted graphic - but it doesn't give me the same effect...
anybody help me with this???the graphics were all the same size - i exported slides from a keynote presentation - each as a separate JPEG - I then took one and scaled it down and distorted it to fit the TV screen in the background - its the same requirements for each shot, as its a wide tripod shot - but when I paste it with "basic motion", "scale" and "distort" - its smaller and not in the right place - theres no other way around it?
Maybe you are looking for
-
Installing InDesign CS3 on Mac OS 10.9.5 Mavericks
Installation of InDesign CS3 on Mac OS 10.9.5 Mavericks This question is Not Answered. s c perks Oct 14, 2014 6:04 AM 1. I have InDesign CS3, which I bought about 6 years ago, and installed on my MacBook Pro. I have now got a new Mac Pro running OS 1
-
Upgraded to ITunes 6.0.1 and now it no longer plays music on my G4 Cube
Does anyone know the solution to uninstall ITunes and do a completely new install instead of upgrade? Like a fool, I let my ITunes be upgraded automatically to 6.0.1 on my G4 Cube running OS X 10.4.3 and now none of my music will play in ITunes. ITun
-
Can anyone help me? I just want to know if I just put my iPhone 4 which has been fixed can I start it as a new phone and still have my contacts and photos as it won't let me log in with my iCloud address
-
A way to reset the security questions
I'm really upset now.How can I find a way to resolve this security question? I Lost my bill as this way.
-
T42 non-communication with docking station type 74P6733
When I fit my T42 laptop on to the docking station, the symbol at lower right of screen shows the battery symbol. Presumably something is wrong with the connection between the two. How can I find out if it's the laptop or the docking station, and i