How can I programmatically load a sub VI into my code

Hi everybody,
I am developing a program for an automated test system to determine the cut off frequency of  low pass filters.The filters in question are simulated in labview as sub VIs  with two inputs (input voltage and frequency) and one output (output voltage.
I have already developed a program that can interrogate one filter and determine its cut off frequency.
My challenge is how to test any of the filters automatically without writing parallel codes for all of them.
Put in another way, I want the program to ask the user to load any of the filters (sub VI) from the desktop or from any other location so the the code I have already writing can interrogate the filters and determine the cut off frequency
Any suggestion will be appreciated
Thanks.
kaydgreat.

There are a couple of ways to do this, depending on your ability. You can do it with a heirarchy of inherited classes, or a selection of VIs with the same connector pane layout. (These are basically the same; classes would be more manageable, and selectable VIs probably quicker to implement)
Search the example finder for 'plugin' to find a plug-in architecture of the latter of the above methods.
- Cheers, Ed

Similar Messages

  • How can i impement some simple menu bar into this code ?

    Hello all.
    I have a problem with my program. I wanna add a simple menu bar, but i don't have any idea how to do it.
    Here is code of my program:
    import java.awt.Menu;
    import javax.swing.event.MenuListener;
    import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter.DEFAULT;
    import org.eclipse.swt.SWT;
    import org.eclipse.swt.events.PaintEvent;
    import org.eclipse.swt.events.PaintListener;
    import org.eclipse.swt.graphics.GC;
    import org.eclipse.swt.graphics.Image;
    import org.eclipse.swt.layout.FillLayout;
    import org.eclipse.swt.widgets.Canvas;
    import org.eclipse.swt.widgets.Display;
    import org.eclipse.swt.widgets.Event;
    import org.eclipse.swt.widgets.Listener;
    import org.eclipse.swt.widgets.MenuItem;
    import org.eclipse.swt.widgets.Shell;
    public class SimpleGraphicEditor {
    public Display display;
    public Shell shell,shellmenu;
    public Canvas canvas;
    public Image imageBuffer;
    org.eclipse.swt.widgets.Menu menu;
    public Menu fileMenu, editMenu, viewMenu;
    int startx=0;
    int starty=0;
    int endx=0;
    int endy=0;
         public SimpleGraphicEditor() {
              display = new Display();
              shell = new Shell(display);
              createGUI();
              shell.open();
                   while(!shell.isDisposed()) {
                   if(!display.readAndDispatch()) {
                        display.sleep();
              } // end of simple grapphic editor
              private void createGUI() {
                   shell.setLayout(new FillLayout());
                   canvas = new Canvas(shell, SWT.BORDER);
                   menu = null;
                   shell.setText("Simple rec draw");
                   shell.setSize(500, 500);
                   shell.setMenuBar(menu);
                   canvas.addPaintListener(new PaintListener() {
                             public void paintControl(PaintEvent e) {
                             e.gc.drawImage(imageBuffer, 0, 0, 500, 500, 0, 0, 500, 500);      
                   imageBuffer = new Image(display, 500, 500);
                   Listener listener = new Listener() {
                        private boolean isDrawing;
                        private GC gc = new GC(imageBuffer);
                        private int oldX = 0;
                        private int oldY = 0;
                        private int newX = 0;
                        private int newY = 0;
                        private boolean isDeleting;
                        public void handleEvent(Event event) {
                             // System.err.println("type=" + event.type);
                             switch(event.type) {
                             case SWT.MouseDown:
                                  // System.err.println("button down");
                                  switch(event.button) {
                                  case 1:
                                       isDrawing = true;
                                       System.out.println("Start at:("+event.x+","+event.y);
                                       startx=event.x;
                                       starty=event.y;
                                       break;
                                  case 2:
                                       System.err.println("button2 down");
                                       break;
                                  case 3:
                                       isDeleting = true;
                                       gc.setBackground(display.getSystemColor(SWT.COLOR_WHITE));
                                       break;
                                  break;
                             case SWT.MouseUp:
                                  // System.err.println("button up");
                                  switch(event.button) {
                                  case 1:
                                       isDrawing = false;
                                       // --- czyszczenie tablicy ---
                                       System.out.println("End at:("+event.x+","+event.y);
                                       int szerokosc=event.x-startx;
                                       int wysokosc=event.y-starty;
                                       //gc.drawRectangle(startx, starty, szerokosc,wysokosc);
                                       gc.setBackground(display.getSystemColor(SWT.COLOR_GREEN));
                                       gc.fillRectangle(startx, starty, szerokosc,wysokosc);
                                       canvas.redraw();
                                       break;
                                  case 2:
                                       System.err.println("button2 up");
                                       break;
                                  case 3:
                                       isDeleting = false;
                                       break;
                                  break;
                             case SWT.MouseMove:
                                  newX = event.x;
                                  newY = event.y;
                                  // System.err.println("mouse moved");
                                  if(isDrawing) {
                                                   // ----------- draw at hold  -----------------------------                    
                                       //gc.drawLine(oldX, oldY, newX, newY);
                                       int szerokosc=event.x-startx;
                                       int wysokosc=event.y-starty;
                                       gc.setForeground(display.getSystemColor(SWT.COLOR_BLACK));
                                       gc.drawText("x:"+event.x+", y:"+event.y+"  ", 0, 0);
                                       canvas.redraw();
                                       // ----- Clear the whole area -------------
                                       gc.setForeground(display.getSystemColor(SWT.COLOR_WHITE));
                                       gc.setBackground(display.getSystemColor(SWT.COLOR_WHITE));
                                       gc.fillRectangle(startx, starty, szerokosc+500, wysokosc+500);
                                       gc.fillRectangle(startx, starty, szerokosc-500, wysokosc-500);
                                       gc.fillRectangle(startx, starty, szerokosc+500, wysokosc-500);
                                       gc.fillRectangle(startx, starty, szerokosc-500, wysokosc+500);
                                       canvas.redraw();
                                       gc.setForeground(display.getSystemColor(SWT.COLOR_DARK_BLUE));
                                       gc.drawRectangle(startx, starty, szerokosc, wysokosc);
                                       canvas.redraw();
                                       int x = (oldX < newX) ? oldX : newX;
                                       int y = (oldY < newY) ? oldY : newY;
                                       int width = (oldX < newX) ? (newX-oldX) : (oldX - newX);
                                       int height = (oldY < newY) ? (newY-oldY) : (oldY - newY);
                                       if(width < 20) width = 20;
                                       if(height < 20) height = 20;
                                       canvas.redraw(x, y, width, height, true);
                                  } else if(isDeleting) {
                                       // Color c = gc.getBackground();
                                       // gc.setBackground(gc.getForeground());
                                       gc.fillRectangle(newX - 15, newY - 15, 30, 30);
                                       canvas.redraw(newX - 15, newY - 15, 30, 30, true);
                                       // gc.setBackground(c);
                                       break;
                             } // end switch caly
                             oldX = event.x;
                             oldY = event.y;
                   canvas.redraw();
                   canvas.addListener(SWT.MouseDown, listener);
                   canvas.addListener(SWT.MouseUp, listener);
                   canvas.addListener(SWT.MouseMove, listener);
              public static void main(String[] args) {
                   new SimpleGraphicEditor();
    }

    nitroduxe wrote:
    ok i add the following code:
    menu = new org.eclipse.swt.widgets.Menu(shell, SWT.BAR);
                   MenuItem fileItem = new MenuItem(menu, SWT.CASCADE);
                  fileItem.setText("menu1");
                  MenuItem editItem = new MenuItem(menu, SWT.CASCADE);
                  editItem.setText("menu2");
                  MenuItem viewItem = new MenuItem(menu, SWT.CASCADE);
                  viewItem.setText("menu3");
                  shell.setMenuBar(menu); // DODANIE MENUhow now i can add some submenu into menu1 and menu2 and menu3 ?
    Edited by: nitroduxe on Mar 9, 2010 10:23 AMI would start by reading the [menu tutorial|http://java.sun.com/docs/books/tutorial/uiswing/components/menu.html].

  • How can i programmatically add a text in a combobox drop down menu ?

    How can i programmatically add a text in a combobox drop down menu ? Can it be possible using any property node?

    You've posted to the wrong forum. Please post to the LabVIEW board.

  • How can I down load msn tool bar for Mozilla firefox?

    My computer crashed and have lost msn tool bar. How can I down load msn tool bar for Mozilla firefox? edit

    It used to be more common to be asked how to uninstall such toolbars. I think It will now be known as a Bing bar, but as far as I know it is no longer supported for Firefox. You may find some unofficial addons with similar types of functions.
    You would be better discussing anything further relating to MSN on a specialist MSN forum.

  • How can i down load to run real player font iso-8857-1

    hi
    any one help me, how can i down load to run real player font iso-8857-1
    thank you

    hi
    i am sorry, when i try to watch some files by using real player it shows message like this " some componets were not available (text/http: charset=ISO-8859-1) '' . i dont what to do can you please explain me .
    thank you

  • How can I down load the previous version?

    I was trying to download Firefox 4 and realized that my OS will not support it. Unfortunately, my old Firefox is gone. How can I down load the previous version?

    You can get all previous versions for firefox on this link [http://www.filehippo.com/download_firefox/ link text] You can also get older software versions for almost anything.

  • How can I down load...

    How can I down load youtube videos on my HD

    hi
    i am sorry, when i try to watch some files by using real player it shows message like this " some componets were not available (text/http: charset=ISO-8859-1) '' . i dont what to do can you please explain me .
    thank you

  • How can I best load RAW images from a Canon SX50?

    How can I best load RAW images from a Canon SX50?

    9Sorry, ........confused about this process.   When I attempted to Post the question I had entered, I was told a blank space could not be posted.  So, I reentered the Q in the "space"........ which apparently was the space for an answer....!! ??......)
    >  When I try to load RAW images taken by my Canon SX50 from the SD card, iPhoto 11 -  (iMac/OSX 10.6.8) tells me that it can't read the format or something like that.    OSX 10.6.8 came out before the SX50, thus, did not include the related program.           I want to shoot RAW on the SX50....... but I then want to load them into iPhoto....... which I do directly from pics I take with my Nikon D200.  
    Not sure if this will help.............

  • How can I down load ios5 from my ipad2

    How can I down load ios5 from my ipad2

    Only once you've got iOS 5+ on the iPad can updates then be done wirelessly directly on the iPad, until then you need to update via your computer.
    To update to iOS 5.0.1 you need iTunes 10.5 on your computer. When you've got iTunes 10.5 installed then connect your iPad to it and copy any purchases off the iPad to your computer's iTunes via File > Transfer Purchases. You should also backup the device (right-click the iPad 'device' and select 'back up'), and copy off any important documents, files, notes etc (e.g. by email, the file sharing section at the bottom of the Apps tab, wifi, whatever the apps that you use support) - the update process should backup and restore your content but it's best to be safe.
    If iTunes doesn't then prompt you to update to iOS 5 on your iPad, then with the iPad connected to and selected on the left-hand side of it, then on the Summary tab on the right-hand side click the Check For Updates button.

  • I Just purchased a used MacBook Air but it has no OS, how can I re-load the OS?

    I Just purchased a used MacBook Air but it has no OS, how can I re-load the OS?

    It depends on which operating system was on it when it was released.  Older MBAs need disks or a special thumb drive to boot for OS recovery.
    Let’s assume it is new enough that it has a recovery partition built in.  You can try this and see if it works and if it doesn’t work then it is old enough to need he aforementioned recovery media.
    It is simple.  First you format the system disk and then you install OS X.
    You will need to be in an area with a good wireless Internet signal.
    Boot in Recovery Mode:
    Power it on and when you hear the bong hold down the Command and R keys simultaneously.
    Format the system disk:
    > Disk Utility
    > Select your system drive.
    > Partition
    > Partition Layout: 1 Partiton
    > Options...
    > GUID Partition Table
    > OK
    > Name: Macintosh HD
    > Format: Mac OS Extended (journaled)
    > Apply
    > Disk Utility > Quit Disk Utility
    Install OS X:
    > Click on Install OS X and follow the instructions.

  • How can I programmatically clear a chart?

    Hi,
    Could you please let me know how can I programmatically clear a chart? I would like to run a code multiple times and everytime I run it , the chart should be cleared . I tried to find a History property node but seems like there is no such properfy node for chart

    If I have conceived your problem clearly, there is of course history data property node for charts. You may get one by right clicking on chart 
    create>>Property node>>History data(which is last on list)  
    CLAD
    Passionate for LabVIEW

  • How can i down load final cut x 10.1.2

    how can i down load final cut x 10.1.2

    jhonyomar wrote:
    I don't like how is a big clip now and when I want to work in my time line is getting dibble line not easy to do my multicam
    Sent from my iPhone
    Sorry, I don't understand what you mean. Can you explain, and perhaps post a screenshot?
    Also, I haven't heard of any changes from 10.1.3 that would alter the way we work with multicam. Maybe you can describe more clearly the problem. I would guess that going back to 10.1.2 would not fix anything, but it hard to know since it is not clear what the problem is.

  • HT201302 how can I down Load Photios from My Camra Card

    How can I down load my Camera card to my I cloud

    http://www.howtogeek.com/175416/no-icloud-isnt-backing-them-all-up-how-to-manage -photos-on-your-iphone-or-ipad/
     Cheers, Tom

  • I deleted some music albums off of my phone because i wanted to re-load them with the album artwork but now i can't upload them to my phone again. It doesn't say anything it just doesn't put them back on my phone. How can I re-load them?

    I deleted some music albums off of my phone because I wanted to re-load them with the album artwork but now i can't upload them to my phone again. It doesn't say anything it just doesn't put them back on my phone. How can I re-load them?

    See Empty/corrupt library after upgrade/crash...
    tt2

  • How can I programmatically change a label?

    Hi everyone,
    I have a 2-D array that I wish to populate with different sorts of data.  Depending upon the data, the names of the rows and columns may change.  Arrays have to have identical labels and I suppose I could simply populate a string indicator, but frankly, that looks like trash.
    How can I programmatically change a label of a column or a row in a 2-D array?  Should I consider using a table?  I want it to look nice.
    Thanks,
    Jason

    Hi
    I do not think you are able to change the label programatically.
    But you might consider to use Captions instead of labels. You can hide labels and make captions visible programatically, and you can change the text of the caption and size (see enclosed vi).
    take care
    Pawel
    Attachments:
    caption.vi ‏20 KB

Maybe you are looking for

  • Storage Location Wise Stock Value field and Table

    Hi , Please let me know the storage location wise stock value field and table. Regards Suresh

  • SetMnemonic for non-english characters

    Does anybody knos how to set JButtons mnemonic for non-english characters? My mnemonic is loaded from a resource bundle, and in the documentation the setMnemonic(char) is only limited to english and it is written that the user should call setMnemonic

  • Fillable PDF with graphics instead of text?

    Is there a way to create a fillable PDF where you import a graphic instead of just typing text in? I have a form that will be used by and organization with multiple chapters.  They would like the Fillable PDF made so that each chapter can just drop i

  • To cancel GR with partial Quantity

    Dear All, i have made gr for 5 Qty now i want to cancel the GR for 2nos how can i do this regards

  • Convert Date Format from DDMMYY to DD/MMM/YYYY

    Hi, Thanks in Advance. Is there any function Module to Conver the Given Date in the given Below Format. DD / MMM / YYYY For Example if the given date is 16072009 then it should print as 16 / JUL / 2009 Regards: Sridhar.J