wrap a vi with indicators in a stand-alone block

I am a rookie in Labview, so this may be a common problem with the rookie.  However, I asked this question to more experienced Labview users and left without solution.  This post is a little long and it actually contains 2 little issues - apologies.  I hope it's really a matter of rookie and not a limitation of the language.

When I started to work with Labview, I imagined being able to create virtual instruments for my test equipment automate my experiences.  I started with a power of BK1687B with a USB interface, but no .vi manufacturer.  The manufacturer provided a sufficient description of the commands on the virtual serial port PC, and I was soon able to write a work .vi who put a photo of the front of the power supply on the Panel before Labview and superimposed with digital display to reflect the appearance of the real power.  I created a while loop around the code to have it regularly interview the real instrument and update the virtual instrument Labview to read the same as the real power.

I have already created controls to change the voltage & current in a separate all parameters in a loop outside the while loop for virtual food (modeling of the interface for the conduct of another program). Then I ran into my first problem - how do they communicate over the setting of control while in a loop (the rest of my modeling program) in all loop the virtual operating power supply?  I tried (successfully) so he can work with local variables, but when I went to create a subvi, Labview want to shoot all the indicators of the power supply sub - vi - what a mess!

Then, instead I have re-written this with global variables for exchanging control signals, and it has worked and reduces the complexity. but using these globals is far from my vision of how I want to get this job.  I want a way to I/O well defined and easily identified in my block diagram of a single block that represents the virtual BK1687B power supply (see attached figure).  I don't want the communication to do with a bit of invisible global variables, I want signals are grouped between my virtual power PSU and the part of the control program which will use power - I want a thread for this function (I could make do with separate and on the son of cluster).  The problem is that I want those signals to pass in and out of the main loop of the program and the loop program of power supply via internal cluster updated cables at each iteration of the loop of the program.

Question 1: How do you pass variables through the while loop in both directions with the updates that occur at each iteration?

Question 2: How to wrap the .vi for feeding complete with all its indicators, controls and graphics of decoration as a block (its own thread) that can be loaded and connected on another program?

In general, I would like to be able to separate from the rest of the exploitation of the virtual instrument of power supply control program.  I want the provision to have its own representation of the façade which includes all its indicators, controls and graphics of decoration pulled into the program as I load an icon representing the power supply in the block diagram.  I can't find how to make this encapsulation full virtual food.  Encapsulation is also partially inhibited by not being able to wire connect the input and output signals communication in the virtual instrument.


Tags: NI Software

Similar Questions

  • Is it possible to create stand-alone programs of java with java ME 8

    Hello

    Java ME compare to java SE, I feel that midlets are similar to applets.

    When you work with java, I generally stand-alone programs.

    Now, I wonder if it is possible to also create stand-alone programs for java ME, if classes are only using java ME API.

    I already noticed that netbeans does not build a project that does not contain a moped, but perhaps, it is possible to create a jar file

    using the command javac and jar. Or y at - it specific a reason why netbeans does not generate a project without midlets?

    The reason for the request is that I often make small tools in java that ae so called from a script of linux. I guess this could be useful on the invoice pro forma raspberry as well.

    Thanks in advance

    Jef

    Hi Jef-

    Java ME compare to java SE, I feel that midlets are similar to applets.

    Sort of - similar life cycle methods - if on a conceptual level, Yes.

    Now, I wonder if it is possible to also create stand-alone programs for java ME, if classes are only using java ME API.

    In a way, Yes. If you build a project, you will notice a file JAD and JAR files in the project's dist directory.  JAD is the descriptor to a MIDlet - in mobile devices, the JAD

    file is loaded first to determine if the MIDlet has enough privileges to load and run, before the corresponding JAR file is downloaded.

    However, the JAD file can also be included in the manifest of the JAR and copied to the device manually embedded JAR and run there.

    I already noticed that netbeans does not build a project that does not contain a moped, but perhaps, it is possible to create a jar file

    using the command javac and jar. Or y at - it specific a reason why netbeans does not generate a project without midlets?

    You can create JAR files and include them in embedded Java ME projects, but just like cmdlets, use the system (EMS) demand management IP of raspberry, you have a moped to run.

    Perhaps mean you that you do not want to launch the AMS and load a moped from the command line on the invoice proforma?

    If so, take a look at this section of the Getting Started Guide for the Raspberry Pi.

    Tom

  • need a flash stand alone player

    currently have version 7 installed that came with Flash MX problem is sometimes find is not at its height...

    essentially to put l want a more updated version of the standalone for l player can run files with newer as the stand alone player l versions currently use fails pretty badly when executing the files showing only half of their content.

    You can't get the standalone version except with Flash Professional. Believe me, I've tried for a few years. You MAY be able to download a trial version for 30 days, but I don't know if the stand-alone version works always after the trial is up, or if it will take off with Pro when uninstall you.

    https://creative.Adobe.com/products/Flash

  • Problems with MAX tasks on different stand-alone

    Hallo!

    I have problems with my MAX-tasks and my V12 Dasylab on different stand-alone.

    I have 3 devices on the first PC.

    OR USB-6009 dev1

    NEITHER USB-6210 dev2

    NEITHER USB-6501 dev3

    Now, I had programmed a file Dasylab which uses the device 2 and device 3. Everythink worked fine. I exported my MAX configuration for unit 2 and unit 3 and imported on the second PC. But that Dasylab was not able to find the right tasks for my program on the second PC, even if MAX everythink that went well. The only solution was to delete all tasks and create them again. But then I tried to open the program stored on my first PC again and I had the same problem, Dasylab was not able to find the right tasks, only solution was to remove the stains and create them again. I tried to reset the configuration of my Dasylab with the "Synchronize with MAX-configuration" option, but it wasn't succsessful. DASYLab gave an errormessage, not mentioning not what exactly is the problem.

    Can anyone help?

    Thank you very much and have a nice day.

    Hilby

    Hallo Hilby,

    I think it can be more that can be solved on the Forum of NOR. I think you should contact your local dealer and ask for help directly.

  • Stand-alone application with LabView 7.0 get error cannot find DAQmx clear task.vi

    I tried to create a stand alone vi with the Build Application or shared Library (dll) in LabVeiw 7.0

    When I put it on another PC to test it I get the error "cannot find DAQmx clear task.vi.

    the other PC also has 7.0 and 8.1 DAQmx Labview.

    I think my problem is in the source tab, where you are supposed to add dynamic vi and support, I have search the forums and database of nor and have not found a solution.

    Hi LabTech09,

    When you run the executable file on the other computer, that's when you get this error?  You have the same exact versions of DAQmx and LabVIEW on both computers?  Is the dialog box allow you to navigate to the clear task.vi DAQmx?  If so, you can find these screws in C:\Program NIUninstaller Instruments\LabVIEW 7.0\vi.lib\DAQmx\configure\task.llb.  The executable runs on the development computer (the machine, it was compiled on)?

  • Creation of stand-alone executable file with similar library files without errors of link

    I have an Executive Test that is run on two different test systems. Each stand has another card ARINC429. The old card use 429dll32.lib, while the most recent map use pci429.lib. Test Exec code only loads a single library file (using LoadExternalModule) depending on what the test bench has the card, but since there are many similar functions in both, ICB does not test Exec be built as a stand-alone executable.

    In CVI 5.0.1 I opens the "Create stand-alone executable file" and select "add files to the executable. I check the 429dll32.lib and the pci429.lib to include in the creation of executable, and then click 'OK '. When I click 'OK' to create the executable I have several link errors, one for each function both .lib files have in common.

    Is it possible for each of these .lib files to be included in the compilation without having to create two separate executables?

    eatmontr:

    If you use LoadExternalModule(), you need not include the .lib files in the Executive test project.  Refer to the CVI for LoadExternalModule help.

    Here's the info on the help:

    LoadExternalModule loads an external object module file. You need not list the file in your project or loaded as a module of an instrument.

    The file may be an object (.obj) file, a library file (.lib) or a library (.lib) import DLL.

    Here are a few articles to OR who can help.

    To access the plug-ins with CVI (with sample program) http://zone.ni.com/devzone/cda/epd/p/id/133

    How do I call dll if I have two functions with the same named in two different dll? http://digital.NI.com/public.nsf/allkb/5299ED8D43F3B5FE852563BF0056EBA6

  • stand alone application with DAQ

    Hi all

    I had a problem with my stand-alone application in the target computer.

    My program has a under that VI named Igenerator, which generates the current with the NI 9265 connected with all 4 channels.

    When the installation of the application program, I have construction included applications NOR-DAQmx development and thereby support

    target Setup that my application could be opened correctly on the computer.

    However when running the application in my computer (with the NI 9265 connected), the outcome of the program that I can

    see that there is no power out of NI 9265, so this is a problem to transfer my original computer DAQ hardware parameters where

    the project has been generated to my target computer, isn't it?

    To solve the problem, I found this link: http://www.ni.com/white-paper/5406/en, seems that the trick is in the final stage of construction

    the installer I should include a hardware configuration. But how? This link fails to clarify this for me, and I tried to "configure."

    and export all my task of current generation of MAX in the file "configdata.exe" and I clicked on 'Building', it seemed fine, but in my target

    computer after that I configured Setup, my request still has no output current of NI 9265.

    Someone got any idea how I could achieve that? And an any mistake of my procedures, I did? Thank you

    Chao


  • Problem with stand-alone application

    Hello. It's my first time here in NOR. Need for support from the masters. This is the situation.

    Main problem: image display

    When I try to do a stand-alone application, the "image display" vi will not work. I'm missing DLL here? Nothing seems wrong with the vi or the vision. I can make KING in the external window, etc.

    I also tried to make a simple program that displays a white image using the image Board, but there is still no display.

    I can also ask what dll is required to make a labview program stand alone with vision and imaq.

    Hello

    To deploy an application that uses the functions of the Vision Development Module, you need the runtime of the Vision and a license of execution for this on the deployment computer. If you use the NO-IMAQdx driver for use with firewire and GigE cameras, you also have a license for Acquisition of Vision software on desktop deployment.

    If you do not use the functions of the Vision Development Module or driver OR-IMAQdx, all you would need is the driver OR IMAQ. The Image display control began with NOR-IMAQ 2.6, so make sure that you install a version of NOR-IMAQ that supports the control of display Image and LabVIEW 7.0 on desktop deployment. Please refer to this Web page to check the compatibility of the versions of NOR-IMAQ and LabVIEW: http://digital.ni.com/public.nsf/allkb/6B55FF09D1FBD3108625719600650B7C?OpenDocument .

  • How can I control external devices using a stand-alone touchscreen with a LabVIEW app

    For my senior project my group design and created a vehicle for extended range hybrid with 90 Li + battery which is charged by a 15 kW generator and/or who is also charged by a 5 kW fuel cell. Currently, our system is able to measure the tension on batteries and display them on a laptop via LabVIEW. To process these data, we use a cRIO FPGA. What we would like to do now, is having a touch screen for the pilot to choose which loads of source of battery power so that monitor a pressure reading from the fuel tank.

    What kind of touch screens to LabVIEW to be downloaded on and used for controls?

    A cRIO has the necessary capacity to supply such a screen and handle the transfer of the data from the sensor fuel and relay (for turning on and off will deepen)?

    Do I need an additional license to create stand-alone applications and how I would go about creating a stand-alone application?

    Sorry for the question as much. Any help with the answer. Thank you!

    This looks like a very interesting project.  If you are interested, National Instruments organizes an contest of Design student where you can win cash or a trip to Austin for NIWeek.

    steve215 wrote:

    What kind of touch screens to LabVIEW to be downloaded on and used for controls?

    NEITHER sells computers touch screen that can be used to control LabVIEW applications.  You can find more information here: HMIS and industrial touch panels and here: LabVIEW Real-time and Touch Panel Deployment and replication resources. Our computers 6-inch touchscreen , run Windows CE, programming on them is a little different from the programming on a full Windows operating system.  You can find useful getting started with LabVIEW Touch Panel Module .

    You can use third-party with the LabVIEW Touch Panel Module devices, although it takes a deployment license for it.  More information can be found in the getting started guide.

    If you were able to send the information of cRIO on a network (which according to your description, seems unlikely), you can use a smartphone to control your application.  More information on our community of Smartphone group.

    steve215 wrote:

    A cRIO has the necessary capacity to supply such a screen and handle the transfer of the data from the sensor fuel and relay (for turning on and off will deepen)?

    If you use the 6-inch touchscreen panels, they need 18 to 32 VDC (the fuse becomes an open circuit if the input level exceeds 33 VDC).  The transfer of data from the switching relay can be monitored and changed with the touch screen.

    steve215 wrote:

    Do I need an additional license to create stand-alone applications and how I would go about creating a stand-alone application?

    If you have traveled the road of the touch panel, you need to purchase the LabVIEW Touch Panel Module and a touchscreen.  Touchscreens OR have a touch panel deployment license.  Guides step by step to create the stand-alone application are in the getting started with LabVIEW Touch Panel Module .

    Kind regards

    Elizabeth K.

    National Instruments | Sales engineer | www.NI.com/support

  • CSP Web registration with default stand-alone CA

    I have a stand-alone certification authority. I understand from my research I can't use templates with it, so I wonder if there is a way to force the default CSP coming to a user tries to use the web interface to request a certificate. On the advanced certificate request page, some client machines choose Microsoft Enhanced RSA and AES Cryptographic Provider by default, some choose Microsoft RSA SChannel Cryptographic Provider. They have the same (Win 7 x 64) operating system and the browser (IE9).  So far, I've been unable to determine why they choose one or the other. Can anyone help?

    Hello consult Hyperion,

    I think that TechNet for Windows Server forums would be best for your questions.
    http://social.technet.Microsoft.com/forums/en-us/category/WindowsServer

    For questions about certificates, safety category would be the place to post.
    http://social.technet.Microsoft.com/forums/en-us/winserversecurity/threads

    Thank you!

  • Please help us to solve the problem in the subject MXE3500 RN with stand-alone mode

    Dear all

    My command team MXE3500 with node resource. 5, in fact, we would use as standalone, but I can't access http://x.x.x.x/mxeui.

    Is the node of resource able to run on the standalone device? or use the resource instread Manager

    Best regards

    Boonpot

    Node resource must be associated with a resource manager.  Only resource managers can be stand-alone.

  • H - HARVEST with 1142N - stand-alone or models LWAPP

    Have a remote site with several stand-alone 1142N APs. Have to replace some old AP and wishes to standardize on the 1142N. Consider using the WPS 4400 control with REAP H rather than have them hang out there alone, but want the backup in case they lose the connection to the office. Wondering if I am better or to buy the LWAPP models continue with the stand alone?

    Wait, they can be CONVERTED to work with the controller. You just 'upgrade' the IOS to an image lwapp and boom, he joined a controller. But what I've said, is that you can have the IOS AP as is, work with a controller. You need to make lwapp first, which is just another IOS image that runs on it. (if you check in the download section of cisco.com, you will see '"IOS Software' and"IOS lwapp upgrade image").

    So to answer your question in leolahoo, simply upgrade you the IOS in the 'ios to lwapp upgrade image".

    command is "archive download-sw/f/o tftp: / /"like when you put a new IOS on it. "

    Nicolas

  • I have a subscription Adobe CC and then Adobe CS6 with a separate license. In addition, I also have a separate license for the stand-alone Adobe Lightroom version.  These were installed on separate computers, however no opf the versio of stand alone

    I have a subscription Adobe CC and then Adobe CS6 with a separate license. In addition, I also have a separate license for the stand-alone Adobe Lightroom version.  These were installed on separate computers, however no opf the stand-alone version will work now that I get a box for Creative cloud telling me that I have the software on two computers and I have to disconnect from the other computer.  How can I fix so that I mustn't keep disconnection in order to work on my laptop, etc. ? I have a subscription to the program and three separate license for each other. When he told me to update the program he changed everything to CC, which I did not intend to do.

    HI ProfWSA,

    I see that you have a subscription active creative cloud.

    I beg you sure you want to contact adobe help support:

    Contact the customer service

  • I have Lightroom 6 stand alone software and my question is should I update to Lightroom with updates to Lightroom CC?

    I have Lightroom 6 stand alone software and my question is should I update to Lightroom with updates to Lightroom CC?

    Hi jamesb,

    You can make the autonomous of the Lightroom updates.

    Go to help > check for updates or check out this link: http://blogs.adobe.com/lightroomjournal/2013/06/keeping-lightroom-up-to-date.html#lrcc2015

  • Question: With the new stand-alone converter how do you do a cold P2V? (booting from CD)

    With the new stand-alone converter how do you do a cold P2V? (booting from CD)

    Well, I see that cold Conversions are more supported.

Maybe you are looking for