I use good programming practices?

Hello.

If I can you trouble for a minute, can you please take a look at the attached VI?

It is a method I've used for a few years during the programming of LabVIEW applications.  In short, I use a sequence stacked structure to manage an initialization phase, a main and a phase of output.

But a colleague reasoned that this could cause a weird behavior when given multiple while loops inside the main window, when for example using a structure in queue event with a producer of strand and loops of many consumers.

Is this the case?  If so, if I use actually bad programming practice, what is the correct way to programming Labview stand-alone application?  Where should I put the controls on the front panel?  I think that it is a little confusing, having not orders in one place, but instead of them have spread allover the code.

Thank you for any input! :-)

ARO

Øystein Johnsen.

I can't open the code accordingly sitting on 2011 right now, but in general: by using a stacked sequence only to init and the output should not cause many problems assuming that it encapsulates all, but it's useless. It hides the code.

If you have a model producer/consumer as a main function, why not just an Init command in the menu start queue and implement an output order where you clean when you go out?

As for the command they are usually placed in their case of event or the consumer where they are updated.

/Y

Tags: NI Software

Similar Questions

  • is k9 web protection is a good program to help people with dangerous websites?

    It is a program that helps people or it's what they called k9 web protection im wundering is a good program to help people on Web sites dangerous k9 stop all websites, you mean allow you to open

    Hi Steve,.

    Please see the following compliments of Rhabdomantist:

    "Maybe what you are looking for is a reputation of the site application. The most commonly used is WOT (Web of Trust)

    Web of Trust
    http://www.MyWOT.com/en/download

    Others to be considered are BitDefender TrafficLight and GData Cloud Security.

    BitDefender TrafficLight

    http://labs.BitDefender.com/?page_id=350

    G Data CloudSecurity

    http://www.free-cloudsecurity.com/

    You can also submit URLs on Virus Total for reference.

    Virus Total

    http://www.VirusTotal.com/

    Here is some additional information Filter SmartScreen.

    SmartScreen filter
    http://Windows.Microsoft.com/en-us/Internet-Explorer/products/IE-9/features/SmartScreen-filter

    IE8 security part III: SmartScreen® filter
    http://blogs.msdn.com/b/ie/archive/2008/07/02/ie8-security-part-iii-smartscreen-filter.aspx. "

    I hope this helps.

    Good luck!

  • Make a prototype for my class of multimedia learning and back to Captivate. This idea is possible? Or should I use another program?

    Hello!

    As mentioned, I'm a bit new to Captivate. I am familiar with its basic functions - I've done a few projects already - but I like to use my homework to help guide my learning through this program.

    For my class of multimedia learning, I do a prototype for a team project that is to teach students about specific plants: how the sunlight they need space, of water, as soon as they are completely mature, etc. Using the principle of guided discovery of Mayer (for learning MM), we want to make a game for students, and this is where my work (I'm the girl who is very quick to learn a technique and has already some experience of Captivate to his credit).

    We want to do a simulation where a character receives a plant at random his MOM. She should take care of this plant based out of the student / knowledge of the player (students will have studied it that the need for plants and made a request now that knowledge in this game). He will ask questions like, "what is this plant?" based on the image. Then, "when we it put? (in the House, on the edge of the window, in the garden, etc.). "When we should he water? (Daily, weekly, never, etc..). And so on.

    I never worked with variables with Captivate and thought this would be a good opportunity to learn. I thought that I could store the responses of the student as a variable and then at the end of the game, count the numbers, and if they have reached a certain threshold, the program will say: "Congratulations!" Your plant survived! "Or... "Oh no!" Your parched plant. You don't water it enough. "Or" Oh no! " Your plant dry too much sun! »

    Another thing to keep in mind is that the plant itself will be random, and the player should hopefully get a new plant whenever they play.

    So I was wondering...

    (1) variable will help me with this project? Or am I understand the term "variables" incorrectly as it applies to Captivate? It is possible that they work differently to how I imagine - once again, I've never worked with them before.

    (2) does it be a nightmare to create in Captivate or should I learn how to use another program? (I wouldn't mind another program of learning that I can add to my repertoire of skills)

    (3) any tips for this to work? Of course, I ask you to tell me how to do this project completely.

    (4) you say that an immediate return instead of feedback delay would be perhaps better here? If that were the case, I wouldn't need to use variables at all and instead just add a slide if they got the answer 'false '.

    You're talking about how many plants for the random plant? The only way I can imagine is to use a random number generated by JS, and an advanced conditional action which shows the plant based on this number. The random number, or the name of the plant itself could then be used in conditional actions more to ask appropriate questions.

    You can create a sequence of questions for each plant and use conditional navigation to send the student to the right sequence. In this case you can use the slides default question, which will be marked and at the end assess you the total score and provide feedback based on this score. This is possible when you enable branch of knowledge, so that only the questions that have been visited by the student will take into account for the quiz score.

    It is an idea for an answer to your first question. As I have explained, you don't need really variable (perhaps a random number), but advanced authoring knowledge or share actions.

    As a new attempt, the simplest is to restart the course. Maybe I could understand an alternative approach, but not right now.

  • iMovie 10.1.2 today (June 4, 2016), all of a sudden will not let me create a new project/film.  1. I have used the program extensively in recent weeks, many small travel films. 2. once in the projects, if create a new movie and the sign is checked, the op

    1. I have used the program extensively in recent weeks, many small travel films.

    2. when in the projects, if you click on create a new movie and sign, the new movie and trailer options opens successfully.

    3. click on film, nothing goes very well but open trailer.

    4. the issue seems to be the only new film/project.

    5. I can access all my other movies and run successful projects and theatre.

    6. I tried through a previous project and clicking new project from the menu, but still nothing.

    7 mac is 27 "OS X El Capitan, Version free 10.11.5, with 327 GB to 999 GB

    iMovie is 10.1.2

    8. the computer itself did not fall down and as FAS as I know, all other programs work correctly.

    9. I rebooted several times, but that has not solved the problem.

    10A does anyone else have this problem? If so, how do fix you it?

    Thanks much for any help!

    Have you ever tried to delete the iMovie preferences?  If the elements of the user interface do not, deleting preferences frequently you contribute.

    To delete the iMovie preferences leaving iMovie, runs, and then press and hold options and command key at the same time, at the launch of iMovie. Keep now pressed the buttons firmly until you see a command prompt to remove the preference. Confirm.

    Before you do, take note of all the settings that you made in iMovie preferences panel, so you can put back them later. iMovie will then begin with the Welcome screen.

    When I had a similar problem, the only thing that helped was to create an iMovie library.  Probably a corrupted in the iMovie project current library prevented the creation.   The problem persists, if you test different library in iMovie? You can create a library for testing.

    http://help.Apple.com/iMovie/Mac/10.1/#/mov3fa25bae7

  • How can I clean my mac? Is there a good program?

    How can I clean my mac of junk? Is there a good program?

    To get rid of what junk do you want?

  • I want to record with < alt > < s > in the Exact program online. This function does not work. This is the first time I use this program with firefox.

    Question
    I want to record with < alt > < s > in the Exact program online. This function does not work. This is the first time I use this program with firefox.

    edit, escaped mod < s > in order to avoid the line through question

    A web page can be defined a "accesskey" for an item. Unlike IE/Chrome/Safari, who use the Alt key only, Firefox requires pressing Alt and Shift to activate the element. In other words, try

    ALT + SHIFT + S

    and see if it works.

    I don't know of any way to change this so that the change is not necessary. There may be an add-on?

  • What equipment I need another for the purposes of the on/off switch, adapt output voltage/current using labview program

    This is my first time to use labview, I want to use the program to control the DC power for the start/stop it or set the output to program automatically.

    Now I had the (supply) instrument, got a computer with labview. I know that I have to buy a GPIB cable, making a connection between the instrument and the computer. But I do not know what to buy? Cable GPIB or GPIB controller. Confused.

    Thank you

    A GPIB cable, by itself, will do nothing. You need a GPIB controller connected to your pc. With the NI USB-GPIB-HS controller, you can connect directly to a single instrument and no need for a separate cable. If you go with an internal controller to a pc (i.e. PCIe), you need a cable to connect the controller to the instrument.

    You can also check if the power supply has other options such as Ethernet or USB remote control.

  • is PC Cleaner Pro a good program for cleaning (fixing) my PC problems?

    PC Cleaner PRO from the East a good program of cleaning (fixing) my PC problems? An analysis by PC CLEANER PRO has detected problems 47 134.

    What problems do you have? You won't find many here who recommend a registry cleaner in good faith.

    Take a look at these links and then decide.

    http://aumha.NET/viewtopic.php?t=28099

    http://blogs.technet.com/markrussinovich/Archive/2005/10/02/registry-junk-a-Windows-fact-of-life.aspx

  • He says that I'm connected to the internet, but I can't use certain programs such as google chrome or ooVoo... Why?

    I am connected to the internet, but I do not know why I can not use some programs... someone please help me I am so frustrated!

    Hi Alejandrac_677,

    ·         What version of IE are you using?

    ·         What operating system is installed on your computer?

    ·         What happens when you try to access Internet Explorer, you receive no error message?

    ·         How long have you been faced with this problem?

    ·         You did it last changes before the show?

    Please see the following to find out about Internet Explorer, and operating system.

    Find out what version of Internet Explorer you are using

    http://Windows.Microsoft.com/en-us/Windows7/find-out-which-version-of-Internet-Explorer-youre-using

    What version of the operating system Windows am I running?

    http://Windows.Microsoft.com/en-us/Windows7/help/which-version-of-the-Windows-operating-system-am-i-running

    You can also check:

    Why can't I connect to the Internet?

    http://Windows.Microsoft.com/en-us/Windows7/why-can-t-I-connect-to-the-Internet

    Please provide us with more information about the issue so that we can help you in a better way.

  • PC cut his all when I called via Skype or use other programs

    A few months ago I bought a new desktop pc HP Envy and I'm really deal with it, but recently I'm under problems.

    A couple of weeks, my PC started all my audio muting for no reason when I got a call via Skype, at first it wasn't a problem because I could use other programs such as Teamspeak or mumble, but recently these programs get the same problems as well.

    The standard solution to make sure that the checkbox in the communication tab is set to "to do nothing" is checked as seen on this page, http://www.askvg.com/fix-windows-7-automatically-reduces-system-volume-for-games-pc-calls/

    I tried all possible combinations in the tabs in my reading and recording, but it still doesn't work.

    I added some screenshots that show what it looks like.

    Hello @Archangel52210,

    I understand that you are having problems with your new computer running Windows 8.1 where the audio is automatically inhibition. I'm you provide a document from HP support: use of the Recovery Manager to restore the software and drivers (Windows 8), which allows you to restore the original supplied with your computer drivers. As these drivers and their settings are working I think they once again and I hope when they are updated the next time Hey take better.

    Please re-post if you need extra support. Thanks for posting on the HP Forums. Have a great day!

  • I play world of warcraft and use a program called ventrilo to talk with other players. the problem I have is my game sounds can be heard

    I play world of warcraft and use a program called ventrilo to talk with other players. the problem I have is my game sounds can be heard.
    Vista makes my headphones 'speakers', so when I use a program called ventrilo to talk with other players in my game sounds are heard through ventrilo. My headset is a headset/microphone generic plug-and-play.

    When I run not WoW, I can hear my own voice through the headset speakers when I talk.

    I want my headphones to work so I can hear my friends talking and the sounds of the game, but I don't want the game sounds to be filtered on the server for voice chat

    Any help would be much appreciated. I asked the same question to Geek Squad and their response has been to try to charge me $49.99 + tax for one of their "agents" can remote in and fix it. Do not use them unless you have: P

    Hey CassiusVa,

    Welcome to the Microsoft Answers Forum!

    Since when are you facing the issue?

    Can I know the version of Ventrilo you use on your computer?

    It may be that World of Warcraft focuses on your audio hardware.  You can try to reduce the audio settings in WoW to see if this makes the use of Ventrilo better.  It may also be a driver problem.  I would check to make sure that you have the latest drivers for your audio device.

    Use the following steps to ensure that the audio drivers are up to date.

    1. connect to the Internet.

    2. click on start and enter the Device Manager in the start search field.

    3. click on the plus sign next to sound, video and game controllers.

    4. right click on the name of the sound material and select software update of the driver...

    5. click on search automatically for a driver updated and wait for Windows to update the driver software.

    6 Windows checks a remote Web site to see if the update of the driver software is available.

    * If an update is available, let Windows install the update.

    * If an update is not available, proceed to the next step.

    7. once the update is successfully installed, test the microphone.

    Please follow the steps below and check if you still have questions echo.

    Go into Ventrilo Setup and select mixer for the sound card, which will be the audio input (as determined by the "Input device" option) device. This will populate the Mux and line options. Normally it would take only a Mux. It is possible that you may have many options of the line. Go ahead and select "Microphone" or anything that is appropriate for the input line and then click OK.

    This should solve the problem.

    Please note that you select mixer, mux and line will allow the "Hardware Volume" slider This gives you the control hardware on the audio input signal and is the best way to control how strong you are. Setting the cursor to halfway better seems to work for most people, but it will be hardware and system load.

    You can also browse the links for more information on ventrilo and try to contact them if the problem persists.

    http://www.Ventrilo.com/FAQ.php

    http://www.Ventrilo.com/about.php

    http://www.Ventrilo.com/dlprod.php?id=1

    Let us know how it works.

    Kind regards
    Technical support of Microsoft-yama.
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Errro: Cannot save the Terminal Server when he tried to use the program Sony Vegas

    Original title: cannot save the Terminal Server.

    I'm having a problem using my program "Sony Vegas". It worked OK. But now gives me an error. "Cannot save the Terminal Server. I don't know if this a problem of Windows, or Sony Vegas. Please tell us how to solve this problem. Thank you.

    Hi barnstable,.

    Try these steps and check the result.
    Step 1: Check if the Terminal Services service is disabled
    a. Click Start, click Run.
    b. type services.msc, and then click ok.
    c. in the list of services, double-click Terminal Server Services.
    d. change the startup type to automatic and start the service.
    e. click ok to apply the changes.
    f. check if the problem persists.

    Step 2: If the problem persists, uninstall and reinstall the program Sony Vegas
    see How to change or remove a program in Windows XP .
    b. Once you have deleted the program, restart the computer.
    c. reinstall the program.

    For additional support, get in touch with Sony support team.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • How we use a program in need of to MSVBVM50. DDL

    my (vista) version of the Microsoft DLL components obsolete is not compatible with this version of Windows. How we use a program in need of to MSVBVM50. DDL

    You can download and install the DLL of this link to Microsoft KB: http://support.microsoft.com/kb/180071

  • I have vista and how to record a program to a usb port to another user who has xp to use the program

    I have a samsung program for my phone, I installed and I have vista, I want to know how to record the program on a USB for another user may install and use the program, because they have a netbook with no cd it must be saved to the usb, but the other user has xp so please can you me how to record the program on usb

    Hello

    You cannot save a program that is installed on a USB key or any other

    Once installed a program spreads during the operating system at various locations

    You must download it again and save it on a USB flash drive, then transfer it to their netbook via a USB flash drive

    or get them to download it themselves directly to their netbook so they are available on the net

    For more information on the program, contact samsung

    http://www.Samsung.com/us/support/contact

  • the color scheme has been changed to windows 7 Basic. What does that mean? This prevents me from using a program on my laptop. How can I fix?

    What does that mean? This prevents me from using a program on my laptop. How can I fix?

    Hi Justin_89,
    1. what changes have been made on the computer?

    Method 1
    I suggest you follow the steps in the following article and see if that helps.

    Change the colors on your computer
    http://Windows.Microsoft.com/en-us/Windows7/change-colors-on-your-computer

    Additional information:
    Change color management settings
    http://Windows.Microsoft.com/en-us/Windows7/change-color-management-settings

    Method 2
    If the steps above fail, I suggest you to run Aero troubleshooting.

    Open the Aero Troubleshooter
    http://Windows.Microsoft.com/en-GB/Windows7/open-the-Aero-Troubleshooter

    Guided Help: the problems of Aero in Windows 7
    http://support.Microsoft.com/kb/976170

    Method 3
    If the steps above fail, I suggest you to update your display adapter drivers. The following link will help you update the driver.
    http://Windows.Microsoft.com/en-us/Windows7/update-a-driver-for-hardware-that-isn ' t-work correctly

Maybe you are looking for