SubVIs and code efficiency
Hello
I would like to know which is better (when you think about the speed of the program), to make a huge VI or many subvis divided into several levels.
I imagine that this relationship (many sub screw efficiency and program) will have something to do with the way I pass values between the screws
So my second question is which is better, to pass values using global variables, to spend control references and use a large number of nodes of property or in another way.
I tried to find info on this issue, but I had little success,
I hope someone can help me!
Best regards
Gabriel
I found the answer to my question on the following webcasts:
Best practices for managing the development of applications with the LabVIEW project
Tips and tricks to improve the performance of LabVIEW applications
Design of software in LabVIEW architectures
Design rates multiple Applications with LabVIEW timed loop
Tags: NI Software
Similar Questions
-
on the use of LLB, Subvi and project
Hi all
I have heaps of subroutines will necessary for all projects of development on the same computer. For a long time, I wrap each of these subprogrammes as a separate Subvi and call the Subvi when necessary. But I just saw that someone will build a LLB in contains all these Subvi. It will be the same to build the LLB or separate from the Subvi? So, what's the advantage of using LLB? I have seen that the builtin functions are all grouped together in a LLB. So if I create my LLB, where should I put this LLB so it will appear in the main palette?
The second question I have is what is a project concerns in labview 2013? I've been using labview 7 long and I create my project in a folder. But LV2013, I can creae a project and link everything in there. So what's the advantage of using a project?
Thank you.
It's really no use for an llb. It was mainly used to store screws with long names - names that were not supported in the early days of the transition from the BACK. Storing files in a Bachelor's degree in labor law is a bit risky because a single corrupt VI will make everything unreadable llb. A Bachelor's degree in law is not appropriate for source code control. Source code control is able to follow the Bachelor of law and not individual files. The only time a law degree should be used must distribute released code. Better and this which is used is now the lvlib or packed library. One of the biggest hassles of older versions of LabVIEW is the inability to load different screw with the same name. Placed in separate vilibs, you can now do.
The advantage of the project is what you said - all linking together regardless of the actual location of the file. The project may contain files other than screws - word and excel for example files. A project is also required to create an exe file. The project contains the specifications of construction for the exe and Setup. A project can also contain DAQmx tasks. Even if you do not create an exe file, a project is always a useful organizing tool.
-
I bought a new 5s of Iphone of Snapdeal in India, but when I created an account in the App store and next step his asking me to specify the details of credit card and the iTunes gift cards and codes I don't have an option to select none I just an options to select Master card, Visa and Amex. So what should I do to continue without entering a those sections.
This step must be completed before you can go to the next step in creating an App Store account. It is only for the purpose of verification and just incase accidentally make you an in - app purchase.
You cannot create an App Store account without card number.
I hope this helps.
AppleMan
-
Keep a clean, safe and very efficient machine...
Keeping a clean and safe system is equivalent to good performance. How do you do that? There are several things you should do to ensure the best possibility to keep a clean, safe and very efficient machine:
(1) install anti-malware software
- There are a few very good available 'Free' programs that are fully automated and will help keep your system protected against malicious software. Some of them are listed here... .click on the link "Free Security Software links Index", then click on the link "Anti-virus".
(2) safe online practice
- "" Safe surfing"you really thinking very little. Using common sense can help here. Avoid unscrupulous websites. The "Web Of Trust" help you identify many of those if you CAN avoid the.
(3) maintenance
- Maintain your system by performing a disk cleanup and defragmentation on a regular basis.
Maintenance requires some planning. Your system accumulates debris on the web. "Debris", in the sense that many of these files are not necessary keep.
Get rid of this debris is a simple process. Microsoft Windows users will find the free utilities provided by Microsoft, in all "platforms", are very useful in helping users keep their systems. Those who are, disk cleanup and Disk Defragmenter. "You can find these tools by going to.
All Programs--> Accessories--> System Tools.. the are friendly and easy to use. However, I would like to clear up some confusion regarding the utility "Defragmenter". Many users will neglect a defragmentation of the system according to the results of analysis. I would like to address the:
"You don't need to defragment this volume."
.. .message referring to analysis of defragmentation.You see, when Microsoft wrote that the utility for the Windows platform, there are two targets to consider. Those who are home and business users. Two very large markets, with very different "needs". Effort and the goal was to reach a middle ground by estimating the thresholds which would continue to work well for both customer bases without causing performance issues significant for no more, if one or the other duty live of these thresholds.
If I explained that well, then you might understand that the 'threshold' Microsoft chose for defragmentation utility will report either customer when fragmentation reached... Let's say it's about 20% (I don't really know WHAT it is, but I don't know it's wide enough) and anything under that will be reported as:
"You don't need to defragment this volume."All this means, really, is that you can delay a defragmentation when an analysis of the analysis returns such a message... but that certainly does not mean that you shouldn't defrag.
As a general rule, I perform a full system defrag when my file fragmentation is over 3%. For me, it's about twice a week. For you, let's say they occur once a month. I don't know, only you, but you have to keep an eye on her (make ita habit) and see how long it takes to know your fragmentation at this level. It can vary greatly, because it depends on the number of files you create or delete and what type of applications that you run in a "normal" user session
E-mail, for example, is an application (if native or not) that causes the creation and deletion of files on the hard drive. If you use an online email client, think to "from the browser's cache" with regard to the number of emails downloaded and deleted. These are all files that are fragmented, they are on the hard disk, or make up the garbage in the browser cache, makes no difference... it's all the disk space again regardless of how you think of it.
Remember, even if you have your browser empty the temporary files when you close the value, the size of this file "dump" can waver, in order to clear the cache at the closing, the browser did perform better than the next browser session but does nothing to appease the disk fragmentation.
You see, if you do this, the system works well on each of its sessions.
In summary, install anti-virus software, surf safe practice and maintain your computer. Don't forget to clean the disc first, then perform the defragmentation otherwise you will sort the waste so that the free space fragmented and files.
Keep in mind these principles and your system will perform well give you years of enjoyable computing.
Great tips! Thanks for sharing.
-
Stopping Subvi and returns a value of Subvi to MainVi
Hi all
I have a MainVI that calls a Subvi. The call in sub - VI of the MainVI is done inside a while loop. If the necessary calculation in Subvi time exceeds say 1 second I want to stop the Subvi and at the same time I want to feed a default value to the MainVI which is supposed to given by the Subvi. With the next iteration, I must call the Subvi again to accomplish my task. Please let me know how this is possible thanks in advance.
Kind regards
Magi
Magi,
The Subvi terminals will always have a value when the Subvi back. If you do not set any other value, the value will be the default value. Add a Boolean result to the Subvi to indicate if it has expired or it terminates normally. That test boolean in primary VI to see if the data value is valid or not.
The questions you are asking are quite fundamental to how LabVIEW. I suggest you sepnd online some time with the tutorials on getting started with LabVIEW. What you learn, it will be over for the time spent to ask fundamental questions.
Lynn
-
Open a Subvi and run automatically
Hello everyone,
I ve a structure of the event in which a Subvi is called by server of VI. I Don t want the main VI to freeze I turned forward until it is turned off.
But the Subvi is called and in edit mode. How can I call the Subvi and run automatically?
Kind regards
Wilbur
Hi Wilbur,
Good afternoon and I hope that your well today.
Thanks for the post.
The VI property Exec.RunOnOpen is not necessary - if you are using Server VI, this property is ignored - and your using the method run a VI in any case.
I think that your problem is with the configuration of your reference open VI. If you set the entry to zero (0) options it works? It does for me. And if I said that admission to 8, it load in edit mode.
The problem that I believe is in the detail of the reference open Help content. When the reference is destroyed in the server called VI VI VI is shorter.
For example, I have a small delay between my RunVI (wait that fact - false) and the reference close VI. After the period of my called VI stops.
What results you want to achieve? You try to call a reentrant VI? If so, please take a look at the following example
Load and call several Copies of a Subvi using VI Server
http://zone.NI.com/DevZone/CDA/EPD/p/ID/4192
Please let me know how found you this information.
-
Windows 7 - updates errors - Code A 80071, 91 and Code 80070643
Windows 7 - updates errors - Code A 80071, 91 and Code 80070643
happysail,
see if this sugesstion can help you:
Please let us know if that helps.
hope this helps, if it's waiting for more answers, please.
-
Windows update fails - the file specifies some updates not installed - 9 updates failed, code 80073712 and code 78(f).
The update runs, and then told me that updates failed to install update automatik research, I had more failed updates that havew installed correctly.Hi Ben Dean,
Use the (SFC.exe) System File Checker tool to determine which file is causing the problem and then replace the file.
To run the System File Checker, follow these steps:
1. Click Start and type cmd in the box start the search.
2. in the area of results, right-click cmd.exe, and then click Run as administrator. You will be asked to type the password for an administrator account. If you are the administrator or type the administrator password, click on continue. Then click on continue.
3. at the command prompt, type Sfc/scannow, and then press ENTER.
For more information, see the following Microsoft article:
This article describes how to use the tool (SFC.exe) System File Checker to fix the system files missing or corrupted on Windows Vista or Windows 7.
How to use the System File Checker tool to fix the system files missing or corrupted on Windows Vista or Windows 7
http://support.Microsoft.com/kb/929833I hope this helps!
Thank you, and in what concerns:
Shalini Surana - Microsoft technical support.
Visit our Microsoft answers feedback Forumand let us know what you think. -
I have a few subVIs in use which take the server references to graphics and images and add sliders, establish the limits and the pixel values min/max value. Sometimes a couple of sliders don't prepare you, or one of the limits will be bad, etc. If I open the Subvi and place probes or preserve values to see what numbers are passed, everything is running and all of the sliders are defined. I also had this problem outside a Subvi with a property node affecting 16-bit values min and max of pixels. I checked, and the same / correct are passed to all the nodes property, as are the correct references. The Subvi always run correctly by operating later in the calling VI, only during initialization do they sometimes fail.
Thank you
Brendan
So I tried to unifying the property node, but that has no effect. It turns out be related to writing data in the chart before you set the sliders and the mini/maxi. Even if the chart has not been set on autoscale, it seems that it is be re-scheduled somewhat when the data has been written.
Thank you!
-
UserEvents to communicate between subVIs and a main VI
Follow-up to http://forums.ni.com/t5/LabVIEW/2-parallel-state-machine/m-p/3247857#M946309
You want to start 2 parallel state machines. It was suggested to use UserEvents
Mainvi:
Subvi:
I have 2 questions:
1)
Am I right in when is to say that I can place my machine of the State in the Subvi instead of the random generator and waveform table?
2)
How to start Subvi with arguments?
Michael.Koppelgaard wrote:
Follow-up to http://forums.ni.com/t5/LabVIEW/2-parallel-state-machine/m-p/3247857#M946309
You want to start 2 parallel state machines. It was suggested to use UserEvents
I have 2 questions:
1)
Am I right in when is to say that I can place my machine of the State in the Subvi instead of the random generator and waveform table?
Yes, a way if you create your state machine using a shift register (with Enum or string) located on the while loop around the structure of the event. Note that the time-out period of the structure of the event that creates random numbers at certain intervals. You may have your DAQ here. Of course, there are other options, such as the use of two parallel loops in the Subvi, the top loop only for the GUI and dynamic events, and lower node would make data acquisition and even hold the state machine logic...
2)
How to start Subvi with arguments?
Also have a look at how I did in my example project: I call the Subvi with two arguments: an ID (digital U32) and the cluster typdef holding the UserEvents references. Easy to create another entry point for this sub - VI, as a cluster that could contain several parameters (as parameters DAQ, ports COM, device ID, etc...). After you change this Subvi, remember to update 'Type specifier VI refnum (for type only). You can right click on this object and browse your set up-to-date the Subvi, so the new input terminal "appears" on the icon 'start the asynchronous call.
EDIT: start designing your state machine in the Subvi and later, after your VI in order to comment and you help if you need.
-
Error code 641 and code 80070641?
When you try to download updates, I get an error message that indicates the code 641 and code 80070641? What does that mean?
Hello
I use Vista Business Service Pack 2. I also use System Mechanic Pro for registry cleaning and other repairs. Sorry, don't know what button I need to uncheck-can you let me know?
Thank you!
One very high. Assuming that you wrote the answer before, and then click the cancel the Green MARKING to clean it (first).
Windows Update exception code 0 x 00000641 / 0 x 80070641 usually indicates a problem with the Windows Installer service.
Sometimes it's because of a difficulty to access; Sometimes, that means he is absent or inactive (disabled) for a reason any.
If you have used Iolo System Mechanic to the series automatic (auto-fix) and these exception codes, the cause is an overagressive difficulty of this app.
First proposal is to cancel these final corrections by S M, then make sure it is not set to autorun or Auto setting.
Do NOT continue to use System Mechanic until there is a permanent fix of Iolo.Contact Iolo (iolo.com) support
and request a permanent solution.
System Mechanic "cleaning the registry" has put a double whammy on your system in having abducted two registry keys.
The following will set things in order for the registry {at least for service setup}, so that you can then move on to redo the update of Windows.
These are for VISTA systems<>
Download this file from Ramesh S http://www.winhelponline.com/fileasso/regfix_vista.zip
Save it to your DESKTOP.
Extract the contents to your DESKTOP.
Click Start, type
REGEDIT and press ENTER key
from the main menu, select file
then Select IMPORT
Access the dialog box (click the icon on the DESKTOP on the left to select)
type regfix_vista.reg in the file name text box and click on the Open button.
Once the merger is completed, you will see a confirmation message.
Click OK when finished.
Then download this second registry-fix
Download and SAVE on your system (on the desktop or in a single folder) following the registry-fix file
http://download.bleepingcomputer.com/win-services/Vista/msiserver.regRight click on the msiserver.reg file and select MERGE
Allow him to merge into registry.
If you are prompted by User Account Control UAC, allow to go forward.
If and only if the Merge option is not available, and then double-click the file and allow it to merge into the registry.
IF and file '.reg' appears in REGEDIT, when you are prompted whether to merge answer Yes.
When finished with two registry patches, leave / close REGEDIT.
then the costs of closing of session and restart Windows.
Now try Windows Update again in a new race.
Only a custom scan.
Simply select the critical or important updates. (non - select all those in option).
Let me know if it helps. and if so, please click the Green YES (useful) icon to the left.
If it solves your problem, kindly click on the green icon to MARK It on the right.
-
Original title: update Windows problem on Vista 64-bit
My Windows Update repeat me that there are 11 important to install updates. It fails whenever I have try running with 80070490, Code and Code 80073712 error.
I tried the Windows analysis tool, the difficulty it tool Microsoft and the web site Microsoft Fix It I have have also run a registry cleaner and that he would follow the instructions of Microsoft to solve the problem of Windows Update by editing the registry, but I get 'Access denied' when ordering fast, even though I checked all permissions.
The updates are:
Update for Windows Vista for x 64-based systems (KB972145)
Update for Windows Vista for x 64-based systems (KB2633952)
Security Update for Microsoft .NET Framework 2.0 SP2 on Windows Vista SP2 and Windows Server 2008 SP2 for x 64 (KB2572075)
Update security for Windows Vista for x 64-based systems (KB2564958)
Update for Windows Vista for x 64-based systems (KB970430)
Update security for Windows Vista for x 64-based systems (KB2378111)
Windows PowerShell 2.0 and WinRM 2.0 for Windows Vista for x 64-based systems (KB968930)
Update for Windows Vista for x 64-based systems (KB2345886)
Update security for Windows Vista for x 64-based systems (KB967723)
A security update for .NET Framework 3.5 SP1, Windows Vista SP2 and Windows Server 2008 SP2 for x 64 systems (KB2518866)
Security Update for Microsoft .NET Framework 2.0 SP2 on Windows Vista SP2 and Windows Server 2008 SP2 for x 64 (KB2633874)I realize that these are not critical updates, but am concerned that, if there is a problem with the update, it will not refresh the critical updates either.
Any help would be greatly appreciated. Thank you.
Etherlass
Hello again,
Thought I would let you know that I've finally sorted this! :)
In another forum I read a post from someone who had a similar problem and solved it by uninstalling the "failures" updated, restart the PC and then re-run the update. It worked! It had not occurred to me to try what I've assumed that 'impossible' meant that they had not installed at all, not that they didn't had simply not installed correctly and must have become corrupt.
I hope this will help someone else who has the same problem, I've had!
Best wishes
Etherlass
-
Could you please see that attached error window copy is not genuine and code 7601
Hello
I just downloaded the Windows 7 ultimate diagnostic tool is not authentic and code 7601. I got the result. Take a look and give advise me it what should I do? I would like to explain in my situation. When I got this message. I check You Tube and run 3 times slmgr command and then I updated my window 7 three times each time for 3 months. then after that I try again that it does not work. so I checked into your tube. some educated United Nations see the person in videos
I followed these steps and then finally I deleted my slmgr my computer folder and then try to run the same command slmgr, but his party is this pancake show in You Tube video.
Please give me better advice to slove this problem.
Thank you
Ali
Diagnostic report (1.9.0027.0):
-----------------------------------------
Validation of Windows data-->Validation code: 50
Validation caching Code online: n/a, hr = 0xc004f012
Windows product key: *-* - GJY49 - VJBQ7-HYRR2
Windows product key hash: W5/6nm6F2UPXrCkY5xUhXb / + 21 = g
Windows product ID: 00426-OEM-8992662-00006
Windows product ID type: 2
Windows license Type: OEM SLP
The Windows OS version: 6.1.7601.2.00010100.1.0.001
ID: {8165B58B-0752-4C8D-9EC1-CAA13D0B148B} (1)
Admin: Yes
TestCab: 0x0
LegitcheckControl ActiveX: N/a, hr = 0 x 80070002
Signed by: n/a, hr = 0 x 80070002
Product name: Windows 7 Ultimate
Architecture: 0x00000000
Build lab: 7601.win7sp1_ldr.160408 - 2045
TTS error:
Validation of diagnosis:
Resolution state: n/aGiven Vista WgaER-->
ThreatID (s): n/a, hr = 0 x 80070002
Version: N/a, hr = 0 x 80070002Windows XP Notifications data-->
Cached result: n/a, hr = 0 x 80070002
File: No.
Version: N/a, hr = 0 x 80070002
WgaTray.exe signed by: n/a, hr = 0 x 80070002
WgaLogon.dll signed by: n/a, hr = 0 x 80070002OGA Notifications data-->
Cached result: n/a, hr = 0 x 80070002
Version: N/a, hr = 0 x 80070002
OGAExec.exe signed by: n/a, hr = 0 x 80070002
OGAAddin.dll signed by: n/a, hr = 0 x 80070002OGA data-->
Office status: 100 authentic
Microsoft Office Enterprise 2007 - 100 authentic
OGA Version: N/a, 0 x 80070002
Signed by: n/a, hr = 0 x 80070002
Office Diagnostics: 025D1FF3-364-80041010_025D1FF3-229-80041010_025D1FF3-230-1_025D1FF3-517-80040154_025D1FF3-237-80040154_025D1FF3-238-2_025D1FF3-244-80070002_025D1FF3-258-3_E2AD56EA-765-d003_E2AD56EA-766-0_E2AD56EA-134-80004005_E2AD56EA-765-8009_E2AD56EA-766-2efd_E2AD56EA-148-80004005_16E0B333-89-80004005_B4D0AA8B-1029-80004005Data browser-->
Proxy settings: N/A
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Win32)
Default browser: C:\Program Files\Google\Chrome\Application\chrome.exe
Download signed ActiveX controls: fast
Download unsigned ActiveX controls: disabled
Run ActiveX controls and plug-ins: allowed
Initialize and script ActiveX controls not marked as safe: disabled
Allow the Internet Explorer Webbrowser control scripts: allowed
Active scripting: allowed
Recognized ActiveX controls safe for scripting: allowedAnalysis of file data-->
Other data-->
Office details:{8165B58B-0752-4C8D-9EC1-CAA13D0B148B} 1.9.0027.0 6.1.7601.2.00010100.1.0.001 x 32 *-*-*-*-HYRR2 00426-OEM-8992662-00006 2 S-1-5-21-428800116-2803802802-3556007744 TOSHIBA Satellite L305 INSYDE 1.80 20090320000000.000000 + 000D4FF3D07018400F8 0409 0409 Time(GMT-05:00) Standard is 0 3 TOSINV TOSINV00 100 100 Microsoft Office Enterprise 2007 12 64BC76978749586 GW6PzcEVEDTVKeO5Ym5UUm41dBk = 89388-707-0441865-65260 14 Content Spsys.log: 0 x 80070002
License data-->
C:\Windows\system32\slmgr.vbs(22, 1) Microsoft VBScript runtime error: component ActiveX can't create object: 'Scripting.Dictionary '.Windows Activation Technologies-->
HrOffline: 0x00000000
HrOnline: n/a
Beyond: 0 x 0000000000000000
Event time stamp: n/a
ActiveX: Registered, Version: 7.1.7600.16395
The admin service: recorded, Version: 7.1.7600.16395
Output beyond bitmask:--> HWID data
Current Hash HWID: NAAAAAEAAgABAAIAAAABAAAABAABAAEAeqj8XIzKen9Gbjw9qtKgcvZMKjBKBprJVApGyg ==Activation 1.0 data OEM-->
N/AActivation 2.0 data OEM-->
BIOS valid for OA 2.0: Yes
Windows marker version: 0x0
OEMID and OEMTableID consistent: Yes
BIOS information:
ACPI Table name OEMID value OEMTableID value
APIC TOSINV TOSINV00
FACP TOSINV TOSINV00
HPET TOSINV TOSINV00
START TOSINV TOSINV00
MCFG TOSINV TOSINV00
ASF! TOSINV TOSINV00
SLIC TOSINV TOSINV00
SSDT PmRef CpuPmYou have quite a mess on your hands, and I think that the best course of action is to restore your computer to factory settings. Consult your computer documentation or contact the manufacturer.
-
How to make a jad file and cod file to a single file for hosting on the web server
Hello
I want to make the jad file and cod file is a single file, which must be installed in the blackberry.
When I load the jad without cod file file, it loads the app
but when I load the jad file cod file, it loads the application on the blackberry device.
I only want a single file to be uplaoded to the server for the installation of the application.
Help, please
I want it to install the web server to the BlackBerry smartphone.
Thanks and greetings
Anthony singh
This is not possible, that both jad and cod is necessary to install an OTA application. the jad file contains a description of the application, the cod is the real application.
-
Why sometimes Eclipse do not generate alx file and cod?
Hello everyone, I have a strange question, sometimes, when I'm programming and to run my applications in the Simulator, everything seems fine, but sometimes after making some changes in my source (add new classes) and running againg the application simply don't change absolutely nothing, I saw my files and I have notice that when this happens because the alx file and cod are not generated by eclipse why this, happen is because of the way of programming?
Thanks for your time!
See the link below:
And also check out the link in my signature for some basic tips on the installation program.
Maybe you are looking for
-
Videos minimizing and deselecting windows/programs
I've always had this random problem where random window/tab/program/text field etc I use will be suddenly is more selected.At first, I thought I was hitting the touchpad, but I noticed that I could have open fullscreen and be hit and suddenly Word wo
-
Cannot set screen saver returns to 'none '.
Screensaver lost. Attempts to reset the results in windows returning to 'none '. Tried several times and once rebooted. Worked correctly until there days. Help!
-
Explorer.exe does not start with error 142
Explorer.exe opens in safe mode but not in normal mode. When I force it to start using the task (from the Task Manager) I get the error "the application could not start correctly (0xc0000142). Click OK to close the application. " What is the cause of
-
Change the display format of date / time when using Xpath
How /process_data/@create_time in Xpath can be formatted to display in the form of 30-08-2016 T 22: 50:50Z instead of 2016-08-30 T 22: 50:50Z?
-
vCenter 4.1 to 5.5 upgrade
HelloI'm relatively new to virtualization and therefore ask for basic assistance. We have a vSphere 4.1 system installed at the customer. All guests are on ESXi 4.1 and vCenter 4.1 is located on one of the virtual machines on a host. We will add five