Create a Subvi command library

I do a user interface that runs different tests that involve some movement commands.  The movement controls are simply send a command string to a DLL file.  Is it possible that I can consolidate all my movement controls (like up, down, stop, pump, etc.) in a Subvi and then call some command I need in the main vi?  I hope that makes sense.  Thank you

Of course it is!

Oh yes - you probably want details...

Well one thing you can do is to start with the VI you have now for talking to the camera and replace everything which is food chain IO routines now with a case structure. Then put all the different channels in the structure of the case (one channel per image, please) and the wire can control enum to the selector node on the structure of the case. Finally, create an enumeration for each operation (up, down, stop, pump, etc...). Now the string no matter what you select will be sent to the IO routines.

Mike...

Tags: NI Software

Similar Questions

  • 'Create a Subvi' movements labels (LV2013) IMAQ image controls

    Hello

    I noticed a strange behavior in LV2013 (x 64 and x 86) what SubVIs creation from a selection containing Image IMAQ son:

    The labels out of place of obtained characteristics Subvi on IMAQ controls/indicators, see the illustration below.

    This VI

    is impaired by creating a Subvi for copying and masking as follows

    The Subvi created has a façade that result that looks like this:

    All labels on IMAQ orders/lights are completely irrelevant. I couldn't understand, what appears to be a function of the new position of the label. In any case, it is quite annoying, because labels sometimes moving out of the main visible portion of the public Service and you have to go and look for them (through the window). -You must identify all the labels with the command/indicator to put everything back in place.

    One of my colleagues has confirmed this behavior on a different windows PC, using the same version of LV in x 64 and the same version of Windows 7 Pro)

    Of course, a simple method of MoveToDefaultLocation on all PS elements cause they go where they are expected to be, but how tedious... I remember not such behaviour in LV2011 where I used 'Create Subvi' loads of times with IMAQ Vision functions.

    I'd be happy if someone such color in it. Thank you very much.

    Cleaning of façade create a Subvi is performed, but it's not explicitly change the position of the control and indicator labels. There seems to be a bug in VI server when setting the position of the refnums IMAQ. This bug is independent of the function to create a Subvi. When writing of the 'Position' of a refnum IMAQ control property, the label seems to throw himself in a weird position. I've not seen this with other types of control with other controls, their labels always remain in the same relative position when the control is moved.

    I'll drop a CAR against the Position and IMAQ refnums property. In the meantime, you can use the VI attached to this post to solve the problem. Follow these steps in LabVIEW 2013 or later:

    1 copy of the VI attached to the following location: [LabVIEW 20xx] \resource\plugins\CreateSubVI

    2. restart LabVIEW.

    Once you have done, the position of the label IMAQ refnum to correct every time that you perform an operation to create a Subvi.

  • How to create the hierarchy without creating a Subvi files

    Hello

    I have an existing LabView program that uses blocks of Subvi.  I want to change it so that I can't copy files Subvi (when I transfer the program to another computer).  The goal is to have a single file/program that I can copy, paste, and run on other computers.  So, I want to know if there is a way to create the hierarchy without creating a Subvi files or how to integrate the Subvi in the program.  My program and Subvi files are included here.

    Thank you

    Rocky

    You can create a version in an executable file.  It would be the most common way if you insist on having a single file.

    You could also build a source distribution in a zip file.  Then you just copy and paste the zip file and unzip it anywhere where you want.

  • Why do my AO create a Subvi doesn't work?

    I have a card PCI-6251. I do a simple DAQmx write the sequence by using an entry to create a task, Create Channel and clear. It works very well.

    When I copy/paste the task of creating, blocks of channels to create a Subvi with appropriate and all connectors, it does not work. Is there some VI property I need to change or put on the Subvi?

    Sorry, the output_test.vi should have a different task and the channel name that appear in my attachments in order to not not to be the same as the Subvi.

    I just put the VI properties for the Subvi unchecking re-entrant execution and it seems to work now every time.

    Just solve my problem?

  • I created a Subvi to copy the Boolean status to my main VI, but I failed

    I created a Subvi and wanted to copy the Boolean status in my main vi, I wrote a simple code in the Sub - VI, but I can't achieve my goal in the mainVI,

    I know that I don't have to create a Subvi but only VI to do this work, however, out Boolean is the only function of my work, the Subvi has other things to do

    so to do this correctly, what should I do?

    Thank you

    Goto main block diagram, instructions are here...

  • How to create a Subvi without controls?

    Greetings,

    I go through exercises to learn LabView and I have a question.

    One of the exercises in my book is to create a Subvi, which generates a random number in a range of minimum/maximum.  (OK - re - invent the wheel)  I have the block diagram and I have the icon, but I have trouble getting the wired connections.

    Currently, it is a static value hardcoded for the min and max.  I wish I had a connector in each of the min and max (so that the parent can specify that however, he wants to be with a static integer, one entry, etc.) and then a connector for output - once again, without a control specified so that the parent can take the value and run with it.

    How to do wiring?  I can obviously fall into the controls in the front panel, but my parent project doesn't have space for 3 additional orders coming on it.

    Thank you

    newbo

    In the connector pane, you can right-click on a connector and select a setting.  You can assign "this connection is->" recommended or optional.  This will allow the VI to be called without these wired terminals of the parent VI.  If the left unwired, will serve as values by default that you put in the controls.

  • Create a Subvi - priority subroutine

    Why is it not possible to create a Subvi from code with a priority of the subroutine? (with 'create sub - VI')

    (LabVIEW put just the Subvi with the same priority of subroutine)

    Is this expected behavior? and, if so, why?

    It seems that this behavior already has a CAR that are associated to him. The number of CAR is 383301.

    I'm sure that you have already done this, but the workaround is just to create the Subvi manually or to reduce the priority and create the Subvi (making sure to put the priority of these two VI to subroutine).

  • Unable to create a Subvi

    Hello

    Joined a VI that I want to creat in a Subvi. When I go to change-> create a Subvi... it is grayed out and disabled.

    I'm running out of certain stages, or something?

    Thank you

    BP

    You must select something to create a Subvi. So, just highlight using a mouse and then create a Subvi.

  • Is it possible to create a Subvi of variable size (stretch)?

    I was wondering if it is possible to create a Subvi where its size (inputs and outputs) can be extended. To be clear, something like the CONCATENATE function, where you can change its size by making it bigger.

    James.Morris wrote:

    garrettmarsh wrote:

    Right-click Subvi > uncheck the "display as icon".

    Which does not allow the slide to add more entries, it changes just input/output are visible. I think OP wants a Subvi with an expandable size input/output similar to the Array Index or concatenate strings.

    Good point, my suggestion really offers only a cosmetic change in the way your diagram appears. OP, you might look into XNodes to do what you describe, but it will probably take some work. Last I heard they are a type of "use at your own risk" of functionality that is not officially documented or supported.

    There is some info here to help you get started:

    http://forums.NI.com/T5/LabVIEW/what-is-an-XNode/TD-p/1307516

  • "After Effects (alert): cannot create file ' / users/JY/Library/Preferences/Adobe/After Effects/13.0/dummy.

    Hello everybodyI have few problems.

    1. when I try to run legacy (just after installation), I got this message and I don't know how to fix it

    "After Effects (alert): failed to create spin ' / users/JY/Library/Preferences/Adobe/After Effects/13.0/dummy.

    Advance of nominal thanks for your replies.

    Try to uninstall AE.

    Install.

    Update to 13.2

    and then running it.

    Besides that: fixing permissions issue that is an impediment to start Adobe applications

  • Create and manage a library using multiple computers?

    Hello

    Im trying to create a new iTunes all my media library. I have an iMac at home and a macbook for when I'm travelling.

    All my media is stored on an external hard drive.

    What I want to do is to begin to create the library on the iMac then take the hard drive with me, and continue to create the library when I'm not home.

    Is it possible to maybe copy the library file more current to each device that I will? While when I open iTunes on each device, it will be updated with the

    files from external HDD, I added.

    One idea I had was to use back to my mac when I'm away from home, but it's not always convenient that I don't always have access to an adequate connection.

    All advice is appreciated.

    Thank you in advance.

    You must use iCloud music library. It will sen all your music in all of your devices.

    Read this article on the Apple Knowledge Base

    Music Apple Sync on your iPhone, iPad, iPod touch and your computer - Apple Support

  • Why my photo library takes a long time to create or open a library?

    I have my photo library automatically updated to Version 1.0.1. When I click on the "Get Started" button, it is still loading. It was a night.

    There is an important image in my library. What should I do?

    Hi skrxoxo,

    The length of time that it will take to your new to create photo library depends on the number of photos that you have your different libraries and your internet connection speed if you have enabled iCloud photo library.  It could take up to a week if your photo collection is vast. Here is some information on the process:

    Start with Photos for OS X
    https://support.Apple.com/en-us/HT204655

    If you need to access the image important that you mentioned above, you can use the Spotlight search if you know the name of the file.  Or, you can open iPhoto or Aperture, if the file exists in one of these libraries.

    Take care

  • The difficulty to create MNU to packed library

    Hi all

    I use a packed library and I'm trying to make him assume a .mnu.

    I want to be able to file my library packaged in the user.lib or vi.lib folder, so my colleagues and I can use the commune VI.

    Every time I have create the .mnu and add it to my library packed, my broken download links.

    I can create a .mnu using the Palette change Set.

    I can add the .mnu to my library packed.

    I can import the packed library .mnu using the palette change Set. But for now, everything inside this menu of VI is now just the links.

    I tried several processes. What I've observed, it's that I can't import of VI of the library. I have to import before be packed. So I copy my VI to my user.lib folder.

    However, the path does not match the packed library.

    How to make a .mnu for a library packed with subdirectories and any broken links?

    I have to be able to put it in any folder with the packed library is not broken links.

    I would like to use subdirectories for easy navigation.

    I put the VI in a folder named the same name as my library packed to preserve the relative paths?

    I searched the Forum and help and I'm missing something. Maybe I do things out of order.

    Any advice would be helpful.

    I answered my own question so. Here's what I did, for those who have similar problems.

    1.) open my library packed project.

    2.) selected the top-level project element.

    (3.) when the tools-> advanced-> edit palette together. (This is why I chose the post of high level for me, this option nothing if I select a VI or some type of project in the tree of files first. "I can also do inside a VI without any problem.)

    4.) under the user libraries, I created a new subpalette.

    5.) under the new subpalette, I selected the fourth option (direct link to the directory)

    6.) I navigate to the directory where I kept my VI in the packed library. I DO not move them to the user.lib folder.

    7.) once the import is complete, the VI appeared in my control panel under user libraries. I also customized my icons and the names of directories at this stage.

    8.) file dir.mnu is created as part of the import in the folder that contains my VI.

    9.) I did a right click on the high level library in the project Viewer and select Properties. I put the dir.mnu as the default .mnu file

    10.) I build the library

    11.) I copy my library packed into the user.lib folder.

    12.) I go once more to change all of the palette, I remove the palette created in step 5.

    13.) I have create a new palette, this time by choosing the option 5 (link to the file of the palette in a project library). The packed library is now part of my control panel. My icons and directories are kept.

    My project structure is to create a folder with the packed library project. I then a subfolder called VI. Inside of this Kathy I store all my VI who enroll in the packed library project.

    It seems to work. But I need to do more tests. I used basic structures. I haven't done it yet with a regime more developed such as pallets of void.

  • HOW TO CREATE A STOP COMMAND IN LOOP FOR

    I have a problem. I can't put a stop to the VI attached here. I want to stop an iteration without support on cancel execution, because I want to connect this VI by a Subvi to control a motor continuous.

    Thank you

    Hello

    in order to stop your first vi, you can use a stop button for the while loop to 'or' with the release of your "equal" comparison function Then you can also use a local variable created the stop button to stop the loop for, configure it with a conditional expression (right click on the loop for > conditional expression).

    This way if you press "stop"button, you will stop the while loop and the loop together foor.

    Good bye

  • IMAQ create and SubVIs

    Hello!

    I am video capture with IMAQ.

    I have a hand program and a Subvi, which made the acquisition.

    When I use the Create.vi IMAQ to allocate say 5000 photos in the Subvi runns all fine

    but whenever I call the Subvi there is a delay until all images are ready for the acquisition.

    So I tried to make the distribution of the hand-Programm-VI where is enough time to do this while the user makes other things.

    Then I put a reference or a single entry to the Subvi with table empty I allocated.

    When I run the program now acquiring works but is about 10 x slower than before.

    What's wrong? Why ventilation is in the Subvi to run at normal speed?

    Welcome C.Riedel

    Thanks to all who tried to help, but I found a solution (unsatisfactory).

    I completely Redid the Subvi by copying and pasting the code in parts to a new VI...

    and it works now. Jey!

    So Bruce was good, the concept is correct. Thanks for that!

    The source of probs remains unknown... NaH... but fortunately it works now!

Maybe you are looking for

  • Why 'print range' box 'current page' option please?

    Hi, I just changed from Internet Explorer to Firefox. In Internet Explorer, I had 'Current Page' as in 'print range' option in the print area. It's very useful when you want to just print the current page you are looking at. This option is available

  • Need more performance on my Satellite A200 - 23K

    Hello everyone.I would like to ask for help, please, because I'm confused. I bought my computer toshiba laptop about 2 years ago. At the time I thought it was a pretty good laptop for games because I wanted a laptop. Now my problem is that I'm confus

  • HARD drive is not detected

    Had to reformat my hard drive on a 1640 Satellite. Had a lot of bad sectors and startup problems.The installer is said now that there is no hard drive (6 GB hard drive). Running Windows98SE. Don't have all the CD recovery, s but useless as no hard dr

  • I need the Microsoft Windows Vista even if only I don't have registed my Vista came with my laptop

    I bought the SONY VAIO FW21L 3.5 years and along came with it pre installed is Windows Vista Home Premium and I don't know if it is 32 bit or 64 bit. I have behind my laptop sticker indicating the product key and I do not have registed my version of

  • When the update fails and I get an error message 80070663 how to proceed?

    I have windows vista home premium and when I try to download my security updates fails and I get the 80070663 error message and it does not allow me to get my updates. all of the suggestions. Thank you