To build vi or not to build a vi

Hi,
Just got a question in general here.  I have about 30 while loops in parallel.  Most of them are just "waiting on notifier" to be executed every once in a while, say, once per hour.  Some of them might only get used once a month or a year.
What difference does it make to replace those loops with vi's?  Does it save my processor time or the other way?
Thanks.
hellolv

Simply replacing them with vi's with the same code in it doesn't add much. If you named the while loop (show label, and put a comprehensive text in it) you don't gain anything.
I usually end up with parallel loops that need a bit more. I use a structure with user event, where messages are posted, and dynamic vi's can register to them. For instance, a view of the data might register to the "new data" event, send by the DAQ routine. All dynamic vi's respond to the "quit application" event. This structure enables me to do very advanced UI stuff, like complicated resizing of subvi's in sub panels.
The benifit of this (above parallel while loops) is that you can easily reuse vi's in new applications. Although I admit it's also easy to delete or copy some whileloops. Also, I can change the DAQ loop with any other vi (for instance a daq simulation), or change the data viewer for a debug view. This can be done even at runtime. Simply stop the daq vi and start the simultation vi. I can even develop any debug vi, and start it in my running application. We even do this with executables. Parts of the executable can be replaced without stopping the application. For instance, we can add or update a dynamic view, without stopping the daq and log parts.
If you have an application, I wouldn't change it. We have quit a few lagacy application (LV4 or 5, much less options for advanced architecture). We just keep them like they are.
Making an applcation with parallel loops does force you to think a bit more about the internal data structure. In one vi, you can use locals to communicate between loops. You could use globals when you put the loops in sub vi's, but you really shouldn't. You should use a buffer, or ini file or something. If you do this properly, you think about this before building. If you have a finished applcation, you might as well keep it like that. Unless you have to support it for a long time, have to add a lot to it, or if it's not working properly.
Regards,
Wiebe.

Similar Messages

  • Office deploy to users in Building (A) but not in Building (B)!

    We're trying to deploy Office to 60 users, some are in building
    A and some are in building B, both are on our network (One Domain) and they can access all of our share folders and our Group
    Policy is applied for both, they can ping each other, when we deploy office all of the Users/Computers in building
    A gets the upgrade which is uninstalling old version of Office and install Office 2010 32bit, but none in building B gets
    the upgrade, already checked building B Users/Computers they can see the Office_Deployment
    share and they can read and write, already checked the Resultant Set of Policy
    on some Computers in building B,
    I can see that the Policy is applied and the
    office.bat file is in the startup folder,
    but still nothing is installing for all users in building B?
    The building B is connected to Building A by a Fiber
    Optic and they have very fast internet. 
    Both building have same Subnet, Gateway.
    Any idea why?

    I did run the Script manually .. Not running,
    I started the setup.exe manually ..  installed fine!
    FYI ..  I was wrong .. some computers in building B got the upgrade fine.
    Maybe a Firewall Rules?, I verified that the Firewall is OFF .. but maybe I need to change someting in the Inbound or Outbound Rules? 

  • Build.xml does not exist!

    Hi ,
    I'm doing the converter program (EJB) from J2EE1.4 Tutorial. I installed J2EE1.4 already. I copied converter programs to different directory, not the same dir like tutorial. When I type-- c:\sun\appserver\bin> asant build.xml, it shows build.xml does not exist. I copied build.xml to the same dir of converter programs.
    (1) Do I need to install ANT ??
    (2) What else I need to do?
    Thanks
    Emily

    Yes you need ANT installed to use it, but it would seem you have it installed. Make sure you are running ANT in the same directory as the build.xml file. At least, that's the way I've always done/seen it.

  • Error by compiling yacy: Target "build-jar" does not exist

    Hello
    I am trying to compile yacy by using this PKGBUILD (based in this one: http://aur.archlinux.org/packages.php?ID=14464):
    pkgname=yacy-svn
    pkgver=7387
    pkgrel=1
    pkgdesc="Peer to peer searchengine"
    arch=(i686 x86_64)
    url="http://yacy.net/"
    license="GPL"
    depends=('java-runtime' 'sudo')
    #depends=('jre' 'sudo')
    #makedepends=('jdk' 'apache-ant' 'subversion')
    makedepends=('apache-ant' 'java-environment')
    conflicts=(yacy)
    replaces=()
    provoids=(yacy)
    install=yacy.install
    source=()
    md5sum=()
    _svntrunk=svn://svn.berlios.de/yacy/trunk/
    _svnmod=yacy
    build() {
    cd $startdir/src/
    msg "Checking out svn-tree..."
    svn co -r $pkgver $_svntrunk $_svnmod || return 1
    cd $startdir/src/yacy/
    msg "Create working directory"
    cp -r $startdir/src/yacy $startdir/src/yacy-work
    rm -rf $(find "$startdir/src/yacy-work" -type d -name ".svn" -print)
    # svn-file, that buildscript can determine revision
    mkdir -p $startdir/src/yacy-work/.svn/
    cp $startdir/src/yacy/.svn/entries $startdir/src/yacy-work/.svn/entries
    cd $startdir/src/yacy-work/
    msg "compile and copy files..."
    ant build-jar installonlinux -DDESTDIR=$startdir/pkg || return 1
    mkdir -p $startdir/pkg/usr/share/java/yacy/
    cp lib/*.jar $startdir/pkg/usr/share/java/yacy/
    cp libx/*.jar $startdir/pkg/usr/share/java/yacy/
    mkdir -p $startdir/pkg/etc/rc.d
    m4 -DArchLinux $startdir/src/yacy/addon/yacyInit.m4 >yacy.init || return 1
    install -Dm755 yacy.init $startdir/pkg/etc/rc.d/yacy
    msg "Delete working directory"
    rm -rf $startdir/src/yacy-work
    But in the process I get this error:
    Buildfile: ~/yacy/src/yacy-work/build.xml
    BUILD FAILED
    Target "build-jar" does not exist in the project "YaCy".
    I have searched information related using google but I don't find one solution.
    I think it is a java related problem. I have installed Oracle's Java Runtime Environment jre-6u23-1
    I use Archlinux x86 2.6.36-2.
    Can anyone help me please?
    Thanks in advance

    OK
    Still I can't install yacy, but I was reading the file readme.txt included in the program's tarball.
    There, says to start yacy run:
    ./startYACY.sh
    I get this terminal output:
    ****************** YaCy Web Crawler/Indexer & Search Engine *******************
    **** (C) by Michael Peter Christen, usage granted under the GPL Version 2 ****
    **** USE AT YOUR OWN RISK! Project home and releases: http://yacy.net/ ****
    ** LOG of YaCy: DATA/LOG/yacy00.log (and yacy<xx>.log) **
    ** STOP YaCy: execute stopYACY.sh and wait some seconds **
    ** GET HELP for YaCy: see http://wiki.yacy.net and http://forum.yacy.de **
    >> YaCy started as daemon process. Administration at http://localhost:8080 <<
    When I have tried to access to localhost, I get the following message:
    Error connecting to localhost. Connection refused.
    But from terminal I can ping to localhost
    Can anybody help me with any of this troubles please?
    Last edited by zuargo (2011-01-08 15:55:48)

  • The selected Flex SDK does not support building mobile projects

    I am unable to create a new Actionscript Mobile project.  The new project dialogue gives the error: "The selected Flex SDK does not support building mobile projects."  I tried seting the default Flec SDK both to the SDK included with Flash Builder 4.7, and also to a version of the 4.6.0 SDK (build 23201) with AIR 3.3 SDK overlayed on it, which already existed on my computer.  Both resulted in the same error.  Any ideas?

    Hi ,
    Actionscript Mobile projects use AIR SDK by default in Flash Builder 4.7 . Flex SDK won't be used for Actionscript projects.
    Could you please try creating an Actionscript project in fresh workspace and let me know if the issue still exists.
    Also attach screenshot and error log if any.
    Thanks,
    Sanjay

  • Window 10 build 10041 does not work with Intel 82579V Gigabit Ethernet on ASUS motherboard

          
    I originally posted this question here:
    answers.microsoft.com/en-us/insider/forum/insider_wintp-insider_update/window-10-build-10041-does-not-work-with-intel/6729892f-83aa-4822-b20a-ea84f4fd06c7
    and was asked to post it on this forum...
    I updated a computer I have which is a quad core i7 that I built and includes an ASUS motherboard with Intel 82579V Gigabit Ethernet built in. Windows 10 preview 9926 worked fine with this network adapter. Window 10 build 10041 does not, and I have tried
    it twice so far. I even went as far as buying a Thunderbolt-Gigabit Ethernet Adapter (Broadcom, sold by Apple)... and while it installed the driver automatically, it did not work either. Each time you try to view the properties of either of them, it locks
    up or give an error. In fact, doing much of anything with the Intel adapter icon assures you of not being able to do a clean reboot... have to kill power.  I have finally gone back the previous version 9926, which has its issues but no where near as bad
    as not having any network connectivity!  Does anyone have this issue and a workaround? 
    Note, there are two images on the windows 10 preview forum that I posted this question on. I could not post the full link as I was getting a message here that links and graphics are not allowed.

    Thanks Roger, I posted the following yesterday in the other thread (thinking it was this thread - confusing after they moved it here)... It may be that the new driver fixes the issue that 10041 has with it, but I have not tried that yet. If I do I will update
    this... Thanks!
    I have more information about this, which basically exonerates any issue with the Intel 82579V Gigabit Ethernet hardware or software. I have 3 computers with Windows 10 preview so I have multiple angles to see issues from. With this I have found a culprit
    (but I suspect not just the only culprit) in this above mentioned problem...
    10041 build combined with installing (or attempting to install) CISCO VPN Windows 7 64bit 5.0.07.0440-k9 client causes the issue mentioned above. I confirmed this on a completely different machine with a totally different Ethernet adapter. First machine
    is an ASUS motherboard in a tower system I built, with the Intel 82579V Gigabit Ethernet hardware built in. Second machine is a Gateway Laptop from 2008 which has a Marvell Yukon 88E8057 PCI-E Gigabit adapter built in. Build 10041 will work fine with my 2008
    laptop, including the MS VPN client (which I have tested). However, if you attempt to install or even uninstall the Cisco client you will have to do a recovery to a restore point (as I have done twice) in order to get your network working again. Installing
    or attempting to install (because it never even does install properly and times out), CISCO VPN client will render your entire network unusable. Going back to a restore point saved me and I am still running 10041 but I can't use CISCO VPN client any longer.
    I could with build 9926, including on all 3 machines. I now have 9926 on two machines and 10041 on only the 2008 laptop. 
    Hopefully this above information helps someone resolve the issue. I will also mention, even though my network is working on the 2008 laptop, I still can't go into the Control Panel\Network and Internet\Network Connections and right mouse click on the Marvell
    Yukon 88E8057 PCI-E Gigabit adapter icon. I get an error when clicking on Properties menu popup : "An unexpected error has occurred". So something is still up with my network adapter driver or windows software, but it could be a side effect of all
    that has happened with the Cisco software install attempts under 10041.
    Another note: CISCO Anyconnect also has the issue.

  • Acrobat plugin Build with SDK6 not Showing in Acrobat X and XI

    I'm working on an old Plugin build for Acrobat (not reader) using SDK v6.
    This plugin worked fine, upto Acobat 9. (it is only used in Windows)
    Now some users tell me it is not showing in Acrobat X.
    So I installed a trial verison of Acrobat XI.
    After reading some threads, I removed all the references to ADM.
    Recompiled it (VisualStudio 2010), and put the debug version in the PLUG-INS folder of Acrobat
    But there in no Menu added...
    In the General System Information, it is listed under Installed Plug-ins.
    But when running in VisualStudio, none of the callbacks is hit. (this worked fine when I was using Acrobat9)
    Some of my users are using the plugin in Acrobat7 so I prefer still using SDK6.
    Are there any other things that could be incompatible.
    What is the first Callback that Acrobat uses to talk to the Plugin.
    Can Acrobat give me any info on what is wrong with my Plugin.
    Johan

    If the plug-in is not even loaded, chances are that something goes wrong
    when the OS tries to link the plug-in to dynamic libraries. Verify that you
    have all the libraries installed that are required to run the plug-in.
    Karl Heinz Kremer
    PDF Acrobatics Without a Net
    PDF Software Development, Training and More...
    [email protected]
    http://www.khkonsulting.com

  • EJB Jar not getting Build

    Hi All,
    I created a DC EJB and a DC EAR. I was able to create Projects successfully. Suddently when i create a new DC EJB, the jar is not getting generated when i build the ejb and because of which i cannot deploy the ejb. Also i am unable to build a DC Webdynpro Project too. But i am not getting any error on build of the project.
    What could be the problem. Y suddenly i am unable to build DC Components? Request you to provide me with solution in this regard.
    Thanks and Regards,
    Divya.

    Hi sunaina,
    I have done the same. But still when i build the webdynpro dc or ejb dc, it is not getting build.
    Regards,
    Divya

  • Flash Builder 4.6 Not Recognizing Valid CS 5.5 Premium Serial Number

    I have downloaded and attempted to install Flash Builder 4.6 over the install of FB 4.5 that came with Web Premium 5.5
    The serial number from my original install is not recognized as a valid serial number for FB 4.6
    I am hesitant to uninstall FB 4.5 first and attempt the install of 4.6 since I am running Windows 7 64 bit and others in this forum are saying they have had install issues on that platform.
    Come on Adobe !  You are better than this !
    Anyone have a solution?

    in another thread jleydig has mentioned very precisely how to serialize FB 4.6. Please follow it for serializing FB 4.6
    1) Deactivated CS 5.5 by going into Flash Builder clicking Help > Deactivate Flash Builder...and clicking "Deactivate Permanently" (which deactivated the entire suite)
    2) Uninstalled only Flash Builder 4.5 and the iOS Component through the Control Panel (I'm sure you know how to do but just in case... go to Control Panel > Programs and Features (terminology may vary based on your OS) and click on your CS and click Uninstall. This will launch the Adobe uninstaller. From there deselect everything and only select (check) Flash Builder 4.5 and the iOS Component and then uninstall them - uninstalling the iOS Component might not be necessary, but I did it anyway)
    3) Restarted after those uninstalled
    4) Launched Photoshop and entered my CS Serial Number (you should be able to launch any CS program thats still installed to do this)
    5) Once it opened, closed it
    6) Installed Flash Builder 4.6 in Trial Mode making sure to select the same language used when CS was installed (that's IMPORTANT)
    7) Launched Flash Builder 4.6 in 60-Day (or however many days it was) Trail Mode
    8) Once it opened, closed it
    9) Launched Flash Builder 4.6 again, but this time I entered the Serial Number from my CS (at that point it accepted the SN and opened like normal and has everytime since)
    10) I then installed my iOS Component from my original CS

  • BPM DC: Build Plugin IS NOT DEFINED, broken DC, dependencies

    Hi,
    I'am trying to create BPM component in NWDS 7.2 SP04 and there are some problems.
    I've created SC like described in SAP Note 1463541. It said that I need to define required SCs for BPM dc: COMP_BUILDT, BPEM-BUILDT, BPEM-CONTENT, CU-BASE-JAVA, CU-BASE-WD, DATA-MAPPING, ECM-CORE, ENGFACADE, ESCONF_BUILDT, FP-INFRA, FRAMEWORK, MOIN_BUILDT, SAP_BUILDT, SERVICE-COMP, THL-CORE, WD-RUNTIME.
    Next I've created track, imported required archives, imported this track in NWDS, and finaly I've created DC of type "Process Composer".
    After that I see next problems with my DC:
    1. DC cannot be built without another two required DC (ESMP_BUILDT, BPEM-MM).
    Is it an error in sap note or something esle?
    2. In CBS I can see that some of used DC are bbroken (total DC 430; broken DC 20).
    Is it normal or not?
    3. I can build my DC in NWDS but when I try to activate it in NWDI I got an error in activation request:
    ''company.ru/bpm1'' variant ''default'' cannot be built. ACTIVATION will fail.
    Build Plugin IS NOT DEFINED for this component or the defined Build Plugin is INVALID.
    I think that this is because of broken status of "tc/bpem/bi/bp/buildtool" DC, which is declared as build plugin for my DC.
    How to resolve this issue?

    Hi IIya,
    You are absolutely right. The problem is due to the broken DC in CBS.
    Please perform the following steps to resolve the issue.
    1) Goto the Landscape Configurator link.
    2) Chose your track inside the table on the left side.
    3) goto the Domain Data option, Click on the "Change" button, and then click on "Update CMS" button (This may take some time)
    4) once the CMS Update is finished, open the "Track Data" link that is beside "Domain Data"
    5) Now click on the "Change" button, from the software component (SCs) table remove the WebDynpro SC, and add it back once again.
    6) Save the Track Data.
    7) Now goto Transport Studio, make sure your track is selected in the table
    8) In the Check-In Tab select all the components displayed in the "Check-In" button.
    9) Once the Check-In operation is completed all those component will now be queued up in the Development Tab,
    10) In the Development Tab select all the components & click on "Import"
    11) Once the Import operation is completed all those component will now be queued up in the Consolidation Tab,
    12) In the Consolidation Tab select all the components & click on "Import"
    13) Now come back to your NWDS and remove the configuration that you have imported previously and then again load the same configuration once again from the SLD.
    This should resolve your problem...
    If the issue still persists even after performing the above steps, then I am afraid to say that the .SCA files present in ...CMS/Inbox folder might have got corrupted.
    Please ask your basis team to copy all the standard .SCA files from the path /usr/sap/<SID>/SYS/EPS/buildarchives/ to the CMS transport directory (<specified in the domain tab>\CMS\inbox) in order to make these dependencies available for your tracks.
    Then again perform the above mentioned 13 steps.
    Let me know about your findings.
    Regards,
    Shreyas Pandya

  • The preview build section is not available in normal PC Settings. How can i get it?

    the preview build section is not available in normal PC Settings. How can i get it?
    How do i update to new build HELP Please

    Thanks Jerry’s suggestion, I extract this update link here:
    This update includes improvements to Windows 10 Technical Preview Build 9879 that will let members of the Windows Insider Program continue to receive future released builds of Technical Preview.
    http://support2.microsoft.com/kb/3025380/en-us
    Alex Zhao
    TechNet Community Support

  • Build.vi does not output Generated files list for installer

    In LV 2011, Build.vi does not output a "Generated files" list when used on an installer. Example attached. When run on my system, "Generated files" is an empty array and "error out" shows no errors or warnings. The built installer can be found on disk, so I know the build succeeded.
    I critically need to know the target folder for my built installer so I can use it in an automated build tool. Assuming this is a real bug, can someone help me with a workaround that doesn't require an operator to point the VI to the target path?
    Attachments:
    build_vi_bug.zip ‏10 KB

    Hi David,
    You may find the solution in the following two links
    Creating Builds Programmatically
    Build executable and installer programmatically
    In the second link, there is an example code posted by Suse to find the destination path programmatically, hope it helps answer your question.
    Yupeng J.

  • Automatic Selected Item of List Builder Component Does not work (anymore)

    Hi all,
    Í'm working with Xcelsius Engage 2008 (version 5.3.2.0) and the automatic selection of an item at runtime of the list builder component does not work anymore. In a previous version it worked very well.
    Here's the case: at runtime I want that the list builder component automatically puts the first item in the list to the destination section and selects it, so that a graph can show the underlying pushed data. In the previous version it worked o.k., but now at runtime the destination section remains empty at startup. If I interactively select an item from the source section to the destination section and update the list builder, the data is shown correctly, but it must done automatically, which worked o.k. in an earlier version of Xcelsius 2008...
    This are my settings of the list builder component (which was running correctly earlier..):
    -at the general tab I defined a range of labels
    -at the general tab I defined 2 data column insertion series
    -at the behaviour-common tab I defined selected items: position mode; items: the first item of the label list; insert items at runtime
    -all of the data comes from an external xml data source
    You can find an example of the visualisation at: http://onderzoek2.evinet.nl/projecten/10169/dynarap.htm. You will see that at start-up there is no item visible and selected in the destination section of the list builder....
    I've tried every combinations of settings, build up the component from scratch, but its not working (anymore).
    Greetings Erik-Jan Vriens

    Hi njnits,
    Print view button is a standard component of Xcelsius: look at it in the IDE
    Exporting to Powerpoint is also a standard functionality, so yes. For this particular dashboard/report all data resides in an external xml-file which have to be accessible for Powerpoint
    All visualisations, not only the table,  in this/report fetch their data from an external xml-file, but a QaaWS-connection will also do the trick. You will have to write this dedicated service. In our case the xml-data is also generated automatically.
    The external data is best defined as a sort of matrix, consisting of approx. 100 columns by 1000 rows. I agree it takes a lot of Xcelsius but it does the job....
    Hopes this info helps....

  • Hosted Build Controller does not build test project when using GitContinuousDeploymentTemplate.12.xaml

    So basically my unittest project using mspec is not even built and copied to the outputfolder even though I build the sln file. This happens only if I put in a azure deployment environment in the build. It works with exactly the same parameters if I just
    remove the azure deployment parameter in the same template. I really don't get why it's impossible to run unit tests and fail the build before deploying to staging. Is it supposed to be like this?

    Hi Espen,
    I would like to know what you mean when you say "put in a Azure deployment environment in the build", and whether you have run a post script during the build process. Please give out more details about your scenario, or share you build log here. You can
    check whether it's build fine locally by using MSBuild or build directly with Visual Studio.
    Maybe you can check whether the Azure environment has the right version of mspec test adapter. Or use Nuget package restore feature to include the needed files in your solution before building. If the build related to hosted build controller, you can configure
    an on-premise build controller for VSO. See this
    thread for more information.
    Best regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.
    By Azure deployment variable I mean "Windows Azure Deployment Environment" variable which you can configure under the Process tab after rightclicking the build definition and clicked "Edit build definition" in Visual Studio.
    I actually figured out what was wrong though. When "Windows Azure Deployment Environment" is set, the build target is set to <your_azure_project>:Publish. This target probably only builds the projects useful for that particular project, hence the unittest
    project is not built. I fixed the issue by adding a msbuild argument under 2.Build->5.Advanced->MSBuild arguments. I had to set it to "/t <your_azure_project>:Publish;Build" and all worked well. Notice the order of the targets though. If I used
    Build first, the whole build failed with some error trying to some virtual web folder. Also, <your_azure_project> is not entirely correct. At least for me it's named like My.Azure.Project, but the build target is My_Azure_Project.
    I don't really know if it's supposed to be this way, but it looks to me like a small bug in the template at least.

  • Conditional Build Topics Do Not Display as Expected

    I created a conditional build tag and selected specific
    topics to build for my first version, but all of the topics keep
    showing up. Has anyone had trouble getting specific topics to
    display when creating conditional build tags? I need a resolution.
    Your help is appreciated!

    Hi there
    Your thread seems as if you are using Conditional tagging to
    ensure topics appear. While it's possible to accomplish, it's a bit
    on the tricksy side. You will likely have much better luck if you
    use tagging to *EXCLUDE* topics.
    Keep in mind that any topic with no tag associated is
    automatically included by default.
    For example, lets say you have two topics. One aimed at a US
    target and one aimed at a UK target. You would use two tags.
    Perhaps naming one UK and the other US. You then apply the US tag
    to any topic with a US target and the UK tag to any topic with a UK
    target. Then you choose to exclude one or the other. So if your
    output is intended for a UK audience, the build expression is NOT
    US. Likewise, for a US audience, the build expression is NOT UK.
    Cheers... Rick

Maybe you are looking for

  • How I recover a deleted image in Elements 5.0

    I have Images the have been disconnected and I need to reconnect them or recover deleted images for a catalogue in elements 5.0 and suggestions?

  • Why isn't my iphone 4 showing up in itunes once i plug it into the computer?

    I tried to plug my Iphone 4 into my laptop to download some photos to my phone and when I opened Itunes my phone wasn't showing up. I tried re downloading Itune but it didn't help and my Itune is fully up to date.

  • Adobe plugin freezes screen

    I have the Adobe Reader plugin, but every time I view a PDF, my screen freezes. I'm not able to do anything until I close the PDF. is this a common problem? Is there another PDF reader plugin that is better and doesn't have this problem? As a writer,

  • Pdf en secuencias de impresión

    Hola amigos!! Tengo una orden de venta con una secuencia de impresión predefinida. ¿Cómo puedo hacer para exportar los documentos a PDF? Encontré esta nota actualizada en abril de 2013...  1711169 - Export to PDF with print sequences https://websmp13

  • Accessing application server

    Hi all I want to access the Application Server(10g)(9.0.4) from the client machine.To access the server i entered URL.But,there is no error and no application out put.Can you suggest me what the reason is? URL is http://system16:8891/forms90/f90servl