How can I call the SubVI like a child window one or more times in the front panel of my main VI ? See the example atached...
I would like to create a aplication where I call dynamically the same SubVi many times in the front panel of my main VI ... I saw this kind of programmation in other languages like Delphi, C++ Builder and Visual Basic.
For explanation: I have 10 channels to read in the list, but I would like to see only 3 channels ... Then I will click in the channels choosed of my list and will open the same SubVI 3 times, where each one will show the individual channel.
Thanks for attention...
Cleber
Attachments:
Opening SubVi many times.jpg 118 KB
TiTou certainly pointed you down the right path... For a few more details, refer to my post to this thread:
http://forums.ni.com/ni/board/message?board.id=170&message.id=141811
You could use the same technique, except instead of opening the clone's front panel, use the VI reference you have to it to poke it into a subpanel. Please note: I have never actually tried building a VI with more than one subpanel on its front panel, but it should work. Also you will not want to close the VI references because you will need them to stop the clones when you shutdown your application.
Mike...
Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion
"... after all, He's not a tame lion..."
Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps
Similar Messages
-
How can I Call the MainVI from its SubVI, and this happen recursively?
Hi All,
How can I Call the MainVI from its SubVI, and this happen recursively?
Actually, LAbView 7.1 doesn't support recurssion?
Plz help me out!Dear GerdW,
Thanks a lot 2 all of u guys,for all the brilliant responses.
Actually, my basic aim is to call the Main VI, containing a SubVI.....
Now, I want to call my main VI from this SubVI...recursively!!!!!..but whenever I tried to put the MainVI in this SubVI..an error message pops out saying recursive calling is not possible.
I also tried using "Call by reference" but tht also didn't worked...an d error is somewat like...VI is invalid..or type matching..or state matching error.
Here, Im attaching the snapshot of the MainVI... Im calling the SUBvi from it... It is running GOOD n FINE...
But prob arrives when I call the Main from the SUBvi, which looks like same as MainVI(with little differences).
I hope, Im clear in my words n not being ambigous.
Plz, correct me where ever im wrong.
Thank You.
Mishra_RnD
Attachments:
ScrShot.JPG 272 KB -
How can we call the method of used controller?
Hi All,
i created two WDA Applications.( like YWDA1,YWDA2 ) . i am using the component WDA2 in WDA 1.and displaying the one view of WDA2 as popup window in WDA1 on action of one of the input element in the view of WDA1 by using the method l_window_manager->create_window_for_cmp_usage
I have a button on the view of WDA2 which has appear in the popup window...how can i call the method which has binded to that button....and where should i code that...and i need to assign selected value in the popup window to input elemetn of view WDA1
Please help me to resolve this....
Regards,
RaviYou can not directly call view's event handler from other component.
create a method in component controller of the second component and in the button click call the component controller method. ( also make the method as interface so that you can call it from other components )
Now, you can call the interfacecontroller's method
DATA: l_ref_INTERFACECONTROLLER TYPE REF TO ZIWCI__VSTX_REBATE_REQ_WD .
l_ref_INTERFACECONTROLLER = wd_This->wd_CpIfc_<comp usage name>( ).
l_ref_INTERFACECONTROLLER->Save_Rr(
STATUS = '01' " Zvstxrrstatus
save_rr is the method of second component controller -
How can i call the certificate selection dialog box from source code?
How can i call the certificate selection dialog box from source code?
NB: Of course if i have more than one certificate in the Microsoft Keystore 'My'.
Thank You in advanceI found an example of the "TestStand UI Expression Control.ctl" and it works just the way I need it. (check the link)
Proper use of "TestStand UI ExpressionEdit Control" in LabVIEW http://forums.ni.com/ni/board/message?board.id=330&requireLogin=False&thread.id=10609
The "Expression Browser Dialog Box Button" F(x) stays disable while editing the VI, however it become available when the VI is called from TestStand.
Thank you,
Hecuba
Mfg. Test Engineer
Certified LabVIEW Associate Developer -
How can I call the jFreeChart to plot graph and get the result in Servlet?
I want to use jFreeChart to plot time series graph, and then output the result in Servlet. How can I call the jFreeChart to plot graph and get back the result? Any source code for example? Thanks a lot!!
Dave,
ServletDemo1 and others were not in the distribution that I got (jfreechart-0.9.4). I found them under the premium demos somewhere in com/refinery/chart/demo/premium, but could not compile. They're complaining, among other things, about missing classes/packages com.refinery.date.SerialDate and com.refinery.ui. Am I using a wrong version of jfreechart?
Thanks,
-Alla
There is a very simple servlet demo in the JFreeChart
distribution:
src/com/jrefinery/chart/demo/ServletDemo1.java
This simply sends back an image to the browser.
A second demo, which embeds the chart in an HTML page
is:
src/com/jrefinery/chart/demo/ServletDemo2.java
src/com/jrefinery/chart/demo/ServletDemo2ChartGenerator
java
...includes a time series chart as one of three
options.
Regards,
Dave Gilbert
JFreeChart Project Leader
http://www.object-refinery.com/jfreechart/index.html -
How can i call the Buttons which made in flash
Sir
i design some Flash buttons but it is save as .swf extension
if i save as jpg or gif then animation not working as well as
effects.
sir
how can i call the flash buttons in java plz guide me
JButton mybutton=new JButton(how can i pass swf extension button);of course, anything's possible, but to do this means first getting a bridge from flash to javascript or com or something, and then a bridge from javascript to Java. So in short,
It's not possible. -
How can I call the create method in BO from Application Service
Hello!
When I create a Business Object, CAF generates some methods automatically.
How can I call the create method in the BO from Application Service logic?
When i call the method then the entityManager and the sessionContext is NULL.
How can I initialize this?
Can anybody help me?
Thanks, ThomasIf you are using CE 7.11...
1) In the Application Services, add the BO as dependant object in dependencies tab.
2) In the implemention, add the following codes to call create method of the BO:
this.get<BO>.createMethod();
julius -
How can i run the example programme without hardware
Hi,
We are using NI-9233 for our Project. We would like to run the example programme, the NI-9233 getting started(host).vi ... I would like to ask that how can i run the Programme without Hardware.& How shall i get the input signal (simulating signal)?because we would like to test it while we are waiting for the hardware to be delivered .
thanks
Best regardsAs Mike indicated , " you can use MAX to simulate some (not all) DAQmx devices. There's a NI-USB-9233 device that you can probably use. Open MAX, then expand "My System", the expand "Devices and Interfaces", then right-click on "NI-DAQmx Devices" and select "Create New NI-DAQmx Device -> NI-DAQmx Simulated Device". Select the device from the list. See the online help for MAX for further help.
If you don't see "NI-DAQmx Devices" in MAX you need to install NI-DAQmx. You can download it from NI here. "
hi,
the link you gave me to download is "NI-DAQmx Devices" ... There is no software to download for Labview 8.2.1. So should i use 8.1 or 8.3 instead of 8.2.1 ? If not, can you tell me the CD no. that includes the "NI-DAQmx Devices" folder of Labview 8.2.1 version? Because we can get the cd from our school's component store. Thank you so much.
Best Regards,
Su -
How can we call the event in Selected event or clicked event in ListBox control
How to call the following code ole_1.object.loadfile(ls_filename) , while selecting an item from the control or while
single click on the item in List Box ControlHi Polachan;
Can you elaborate? Your question seems quite vague.
Maybe some more details as to what you are trying to accomplish might help.
Thanks ... Chris -
How can integrate/call the Oracle Forms in ADF pages or task flow.
Hi ,
I Have requirement to integrate the ADF and EBS.
I have done the ADF pages calling in ESB.
Right now i am struck up to call the OAF froms in ADF page/taskflow.
it's high appriciate if any one provide me the any info or how to do this requriment.
Thanks,
Madhava.Hi,
Forms integration can happen using af:inlineFrame or by a redirect to a Forms web URL. In the latter case navigation should be from an unbounded task flow ensuring the return address required to resume the ADF application is provided. See: https://blogs.oracle.com/jdevotnharvest/entry/how_to_efficiently_redirect_an for how to construct the return URL
Frank -
How can i call the UK from my I phone?
How can I use my 3G I phone to call the United Kingdom?
If you are wanting to phone the UK do this:
Say the number you are wanting to call in the UK is 012345678
Add 0044 to the beginning and take off the first 0 in the actual number
so it becomes
004412345678 -
How can I call the Class and have a PDF appear in seperate window?.
I would like to call the class/interface ZCL_UIU_PRN_ACCOUNT2, method Collect_data and have a Smartform executed to produce a PDF document in a Seperate window.
Where I have an issue is in opening another window to display the PDF.
I know the Standard PDF Facsheet does exactly this, but that is triggered via the Web browser and calls a Java script, avoiding and events and round-server trip processing. I would have changed the button values so that when pressed it does process the various events and eventually ends up at EH_ONPREVIEW for the BP_HEAD/Overview. I know just need to open a new window and call the process to create the PDF via Smartform.
Any suggestions would be more than welcome. I have spent so much time on this, and have gained no real ground, so far.
JasonHi,
in the method
data: zcontrol TYPE SSFCTRLOP.
zcontrol-device = 'PRINTER'.
zcontrol-langu = sy-langu.
zcontrol-no_dialog = 'X'.
zcontrol-getotf = 'X'.
data: job type SSFCRESCL.
data: devtype type RSPOPTYPE.
CALL FUNCTION 'SSF_GET_DEVICE_TYPE'
EXPORTING
i_language = sy-langu
IMPORTING
e_devtype = devtype
EXCEPTIONS
no_language = 1
language_not_installed = 2
no_devtype_found = 3
system_error = 4
OTHERS = 5.
data: output_options type SSFCOMPOP.
output_options-tdprinter = devtype.
call function FM_NAME
EXPORTING
* ARCHIVE_INDEX =
* ARCHIVE_INDEX_TAB =
* ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS = zcontrol
* MAIL_APPL_OBJ =
* MAIL_RECIPIENT =
* MAIL_SENDER =
OUTPUT_OPTIONS = output_options
* USER_SETTINGS = 'X'
IMPORTING
* DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO = job
* JOB_OUTPUT_OPTIONS =
TABLES
t_texto = t_texto
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5.
if sy-subrc <> 0.
endif.
data: DOCTAB_ARCHIVE type TABLE OF DOCS,
LINES type TABLE OF TLINE.
*CALL FUNCTION 'CONVERT_OTF_2_PDF'
** EXPORTING
** USE_OTF_MC_CMD = 'X'
** ARCHIVE_INDEX =
** IMPORTING
** BIN_FILESIZE =
* TABLES
* otf = job-otfdata
* doctab_archive = doctab_archive
* lines = lines
* EXCEPTIONS
* ERR_CONV_NOT_POSSIBLE = 1
* ERR_OTF_MC_NOENDMARKER = 2
* OTHERS = 3
data: l_pdf_len type i,
l_pdf_xstring type XSTRING.
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
format = 'PDF'
IMPORTING
bin_filesize = l_pdf_len
bin_file = l_pdf_xstring
TABLES
otf = job-otfdata
lines = lines
EXCEPTIONS
err_max_linewidth = 1
err_format = 2
err_conv_not_possible = 3
err_bad_otf = 4
OTHERS = 5.
IF sy-subrc is initial.
DATA: cached_response TYPE REF TO cl_http_response.
CREATE OBJECT cached_response
EXPORTING add_c_msg = 1.
l_pdf_len = XSTRLEN( l_pdf_xstring ).
cached_response->set_data( data = l_pdf_xstring
length = l_pdf_len ).
cached_response->set_header_field(
name = if_http_header_fields=>content_type
value = 'application/pdf' ).
cached_response->if_http_response~set_status( code = 200
reason = 'OK' ).
cached_response->if_http_response~server_cache_expire_rel(
expires_rel = 180 ).
data guid type GUID_32.
CALL FUNCTION 'GUID_CREATE'
IMPORTING
ev_guid_32 = guid.
data display_url type string.
CONCATENATE url '/' guid '.pdf' INTO
display_url.
cl_http_server=>server_cache_upload( url = display_url
response = cached_response ).
*GV_DISPLAY_URL & GV_PRINTON are class attributes
CLEAR: gv_display_url, gv_printon.
MOVE display_url TO gv_display_url.
gv_printon = 'X'.
ENDIF.
Send me you e-mail i cannot post the code that is used in the view.htm.
Best Regards,
Caíque Escaler
Edited by: Caíque Escaler on Nov 26, 2010 5:00 PM -
How can i call the public void paint(Graphics g) method on click of button?
Hello,
I have done this before i know its got to do something with the repaint() method but can someone show me with and example and call the paint method using AWT in a frame not in an applet....
Thank you very much.Thank You very Much.... You have cleared all my doubts.
But my main objective is to display an image in an AWT Frame !!
here is the code that i have been trying..
import java.awt.*;
import java.awt.event.*;
public class check6 extends Panel
Frame f;
Image i;
public check6()
f = new Frame("Heading");
f.addWindowListener(new WindowAdapter(){
public void windowClosing(WindowEvent e){
System.exit(0);
final Button b1 = new Button("Submit");
b1.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e){
repaint();
i = getImage(getCodeBase(), "titanic.jpg");
add(b1);
setLayout(new FlowLayout(FlowLayout.LEFT));
f.add(this);
f.setSize(500,500);
f.setVisible(true);
public void paint(Graphics g)
g.drawImage(i,10,10,this);
public static void main(String args[])
new check6();
} -
How can i call the OutLook mail to frame
Hi All,
Please help me,
I'm calling the outlook by using the code
Process p= Runtime.getRuntime().exec(new String[]{"c:\\program files\\outlook express\\msimn.exe",""});
But what my problem is :
i need mailto frame of outlook.
please can any one give the solution
Thanks......Hi,
i tried the following:
Runtime.getRuntime().exec("cmd /c start mailto:[email protected]?subject=Test&body=Hello");
it opens my outook client witht the To: address and Subject:
but the body doesnt appear.
Can someone please help? -
How can I get the example fonts from the font file Programmatically?
Hi Friends,
I am doing one mac application for the fonts management. Now I would like to Preview the Font in the NSTextView. This is my coding for the textView.
NSTextView *text3=[[NSTextView alloc]initWithFrame:NSMakeRect(250,500,450,30)];
[text3 setString:@"ABCDEFGHIJKLMNOPQRSTUVWXYZ"];
[text3 setFont:[NSFont fontWithName:@"GangofThree" size:40]];
[[[self window] contentView] addSubview:text3];
Because I have set the string in English for the NSTextView I can't able to view the other languages characters.I got the character set of the font file by using this code.
NSCharacterSet *characterset = (NSCharacterSet *) CTFontCopyCharacterSet (fontRef);
This Font is greek font.Now My question is how can I able to get the greek characters from this characterset.Your text string would certainly have to be in Greek itself, not Latin. No normal font just translates Latin letters to Greek, they use other codepoints reserved for Greek letters.
Maybe you are looking for
-
Can I perform a Time Machine backup to a USB drive connected to the Time Capsule 3TB
I would like to perform Time Machine backups to a portable USB drive, to use as an off-site backup copy. However, when I plug the drive into the Time Capsule (3TB) it isn't seen by Time Machine from any of the computers on my network. What do I ne
-
Surface Pro 3 keeps rebooting itself into the BIOS
I have a Surface Pro 3 running 8.1 Ent with the latest firmware / updates. It is a machine that I intend to use for testing so right now there is nothing on it other than the base image (Office 2013 / Adobe Reader X / Trend AV). Yesterday, while sitt
-
Why does my ipad2 disconnect from my wifi?
When I go into the room where the router is I can connect. But when I walk into another room it disconnects. My brother's ipad2 can connect anywhere on the house? I just receive my iPad Monday. Should I send back to apple?
-
Dynamic trend line on flash chart
Hi, How could we reference an apex item on the custom XLM chart? I intend to add a dynamic trend line using <objects> <line value="&PXX_." text="trend line" color="0xFF0000" thickness="1" alpha="100"/> </objects> but it doesn't work. Could somebody g
-
IChat error -8 when trying to connect with AIM
I tried to connect with an AIM user (on an XP) using iChat 3 for either video or audio chat, and in both got disconnected with error code -8 . We actually never got connected - we could see the invitation, but the call ended as soon as we accepted it