SR400 while the loop does not work

Hello

I'm using LabVIEW for control SR400 through a GPIB card.

I use SR400 to count the number of signal in a second, wait 0.05 s, then again count the signal once, wait 0.05 s once again, and so on.

However, the while loop didn't iterate. When I started the program, it is only once.

In execution of highlight mode, when an iteration is finished, he waited a long period starting the next. In normal mode, it doesn't have to iterate.

Also when I clicked the stop button, it's been clicked. However when I wrote a very simple program, the stop button worked normally.

In any case the button issue is not very important. I don't care that the program iterates forever or not. I just want to iterate.

I searched the jury and had not could not any related problem.

Is it better to attach my VI? The VI is in my computer lab.

Thank you very much!

This code just feels bad.

(No real management mistakes, deep, stacked sequences FOR lines that are wired to iterate through only once, controls on the right and right to left, wiring weird code on average the last 10 items (Hint: means ptbypt with a length of 10 sample he would!).) If you want to use the wire of the error, the sequences would not even necessary)

If the stop button does not reset, it means that the iteration of the loop does not terminate. It can fill in only if the two structures of the sequence ends.

Have you tried running in execution, emphasizing fashion while looking at the diagram? Probably one of the communications is at a standstill. For example, the instrument sends really 6 bytes at the end? When you set the overall timeout and what is it?

Tags: NI Software

Similar Questions

  • While the loop does not stop when the two values are equal using equal to comparitor

    Hello world

    I have a really, really strange bug. I have a LabVIEW VI that change a chain on a power supply. I have a start and a stop voltage and use a while loop to increment the device. For example if I want to scan from 1, 2V to 2.2 V in 0.2 V incremements, the program will end when "The current tension" = "stop the tension." And it works very well!

    However, when I start - 3 V and want to stop to say-0.8 (new in 0.2 V incremements) the program does not stop when "The current tension" = "stop the tension." I checked with the probe close to what should be the end of the race and - 0.8 V goes both of the entries ' equal to ' comaprison operator, but that his can't trigger a real result.

    It's very strange for me. Espeically as if I'm going - 0.8 V to-2 V but decrement of-0.2 V, the program stops correctly!

    I am very confused!

    See you soon!

    Search on: comparison of floating-point numbers

    The second thread is particularly relevant. This discussion was 2009, but you can find that the same "bug" being reported to enter the end of the 1980s.

    Mike...

  • While the loop does not stop until 2 more clicks

    I must say that I'm really not familiar with LV, but Im learning.

    So why is that after I clicked on low stop, I had to click my OK button twice, then my program stopped. Why can't it stop immediately?

    Furthermore, if I want to do some of the dice to table, which wire do I missed?

    Thank you!

    Hi RawtoLV,

    You have a while loop in loop a while. When you run the other while the loop stops when you press the stop button, the inner circle while loop always executes. Since your OK button use latch release, what I noticed is that when you pressed the OK button, it quickly into position from true to false, which never stopped during the operation of loop (maybe because of the wait). Can I ask what are you actually doing with the structure of sequence?

    I would suggest using the event structure in place (http://zone.ni.com/reference/en-XX/help/371361K-01/glang/event_structure/):

    Here are some information about the structure of the event:

    http://www.NI.com/white-paper/3331/en/

    http://www.YouTube.com/watch?v=8eO64fo3Pho

    Warm greetings,

    Lennard.C

  • pass the loop does not work in a MIAW

    Hello

    Try to open a movie in a window (MIAW) with this code:

      wndAbout = window().new("about")
      wndAbout.open()
    

    The film about.dir has a few simple tricks, a label on the first image, and a script "go loop" at frame 10 on channel script.

    The window opens and about fine display, but the problem is that the loop go does not work. The playhead continues. I also tried with a go the frame without success. The channel of script is activated, I checked with an alert() call.

    If I try the code above in a new movie with only one button, it works.

    Tried to remove all of the original film but the script and the button, it doesn't always.

    Someone has an idea of what could be the problem?

    Thank you.

    Edit:

    Windows 7 64B, Director 11.5.

    The problem only occurs with the projector (heel). In design mode, there is no problem.

    After hours of tests, I found the solution.

    The problem was buggy text by hyperlinks members in previous versions of 11.5.

    First solution was to remove the members of text.

    Then I've upgraded all xtras (external to the latest version (11.5.9r629) projection) and all problems where gone.

  • While the loop does not stop within a structure of business

    Hi all

    I have a business structure that works an engine to a certain PWM when my metal detector does not give an amount greater than the threshold that is ' false '. The motor is controlled by a PI controller so a while loop is used inside the false state. When my metal detector exceeds the threshold I want the "true state" to perform but which does not occur. the entire program is a while loop which aims essentially to maintain the operation of the metal detector. How can I make the State of the switch works.

    Once you get the code is trapped inside the inside while loop, it will never be a Boolean wire change because change is outside. All you need is a loop that contains a structure of housing. Run your program with execution highlighting to get a better understanding of the flow of data.

  • Bluetooth remains plugged in car while the radio does not work

    When I'm in my car (after IOS10 upgrade on my 6s), Bluetooth my car (UConnect) stayed on and wouldn't let my radio not play until I'm gone in my phone and unplugged my Bluetooth. Any ideas?  I like to use the hands-free, but it would be a hassle of having to connect bluetooth whenever I answer the phone

    The same problem.

  • In the attached VI why looping force the type of data while the other does not?

    In the attached VI why looping force the type of data while the other does not?

    I'm guessing that you have created the Enum on the front panel.  If you right click and create an indicator, it corresponds to the type and be an enum.  LabVIEW represents enums as U16, but because the types are not the same (for example, your enum has 3 values, but a U16's 65 536 values), LabVIEW automatically converts value (or converts) the smallest representation (enum) in the largest value (U16).

  • using firefox 24, yahoo toolbar disappears and the keyboard does not work on some websites

    We have installed firefox 24, yahoo toolbar sometimes disappears. On some web site when trying to enter a password, the keyboard does not work until you double click of the mouse on the registration form. This on two different systems of windows 7. Each thin seemed to work fine before the update prior to the installation of 24.

    Hello

    Try Firefox Safe mode to see if the problem goes away. Safe mode is a troubleshooting mode, which disables most of the modules.

    (If you use it, switch to the default theme).

    • Under Windows, you can open Firefox 4.0 + in Safe Mode holding the key SHIFT key when you open the desktop Firefox or shortcut in the start menu.
    • On Mac, you can open Firefox 4.0 + in Safe Mode holding the key option key when starting Firefox.
    • Under Linux, you can open Firefox 4.0 + with leaving Firefox then go to your Terminal and running Safe Mode: firefox-safe-mode (you may need to specify the installation path of Firefox for example/usr/lib/firefox)
    • Or open the Help menu and click on the restart with the disabled... modules menu item while Firefox is running.

    Once you get the pop-up, simply select "" boot mode safe. "

    If the issue is not present in Firefox Safe Mode, your problem is probably caused by an extension, and you need to understand that one. To do this, please follow article Troubleshooting extensions, themes and problems of hardware acceleration to resolve common Firefox problems .

    To exit safe mode of Firefox, simply close Firefox and wait a few seconds before you open Firefox for normal use again.

    When find you what is causing your problems, please let us know. It might help others who have the same problem.

    I hope this helps!

    Curtis

  • Key on the keyboard does not work in firefox box when you type in the web site, but it works everywhere else?

    Key on the keyboard does not work in firefox box when you type in the web site, but it works everywhere else?

    Try Firefox SafeMode to see how it works there.

    A way of solving problems, which disables most of the modules.

    (If you use it, switch to the default theme).

    • You can open the mode without failure of Firefox 4.0 + by pressing the SHIFT key when you use the desktop Firefox or shortcut in the start menu.
    • Or use the Help menu option, click restart with the disabled... modules while Firefox is running.

    Do not choose anything at the moment, just use 'continue in safe mode.

    To exit safe mode of Firefox, simply close Firefox and wait a few seconds before using the shortcut of Firefox (without the Shift key) to open it again.

    If it's good in Firefox Safe mode, your problem is probably caused by an extension, and you need to understand that one.

    http://support.Mozilla.com/en-us/KB/troubleshooting+extensions+and+themes

    Can be caused by an add-on to the AVG.

    When find you what is causing that, please let us know. It might help others who have this problem.

  • The mouse does not work on my new Satellite L750/L755

    Hello world

    I bought a toshiba Satellite L750/L755 but the mouse does not work, I have no control on it that if I use an external mouse, while I have put pressure on the touchpad.
    I tried the following options:
    I updated the driver - I changed the operating system

    but nothing, still the same problem. Next laptop will be a Mac for sure.

    I look forward to hear from you

    Daniele

    Hello Daniele

    It's really strange that the touchpad does not work even if you have installed the right driver and installed the operating system again. At the first moment, we can say there is probably a hardware problem, but please be sure touchpad is listed in the Device Manager and also active correctly (FN keys).

    Check it please all the properties of the mouse.

  • MacBook pro a key on the keyboard does not work

    Hello

    Last day I was cleaning my keyboard (I do not used any water or liquid), and when I handed the keys, I found that my 'enter' key does not work.

    I think it's because that material because the key does not work even without the key cover. Is it possible that I have demaged some buses on the baseboard of the keyboard?

    In addition, I can not open Apple Diagnostics, and while I turn on my macbook it produces sounds like that I am button constantly some.

    -Make an appointment at the Genius Bar to an Apple store to discuss your options.

    Shop Apple Store - Genius Bar

    This is the Office Mac Pro forum. I asked that your post be moved to the MacBook Pro laptop forum.

  • ATL-TAB within the APPLICATION does not work

    I'm a convert from windows and love the mac but Alt - Tab within the application does not work - very annoying. I often have multiple windows in the same application, and if the only way to go is to use 4 fingers Mission control, it's terrible because Mission control lists all windows in a small size and pain to know that you want to go. While with alt - tab, I can quickly cycle or just go to the last which is often I want to go to.

    It is one of the major issues Mac usability for me.

    Any tips? or addons?

    Thank you.

    Cmd -'

    Curiously, this document has the wrong shortcut. Keyboard shortcuts in Mac - Apple Support

    They have to move to the next application window is to go to the previous application window.

  • I have laptop (hp probook 4520 s), the touchpad does not work. How can I turn it back on it?

    I have laptop (hp probook 4520 s), the touchpad does not work. How can I turn it back on it?

    This is a question which would probably respond by HP support, because it isn't really a Windows problem.

    Are you sure that the touchpad is not just turned off? Many laptops have switches, power switch, so you can rest your palm while typing one is not worry by pressing the key.

    Sometimes, there is a button above the key, a key on the Ko, or some have a stain on the pavement you waiting/tap/double tap/etc. to toggle the pad.

    If not, you could try to go on the site of HP and DOWNLOAD/reinstall assistance the SW for the touch pad.

  • The sound does not work on my XP system

    Hi the sound does not work on my Windows XP Pro system, while they were inspecting it stipulates that at least one of the following services does not work, Windows Audio and Windows Audio Endpoint Builder. How can I solve this problem?
    Thank you

    Hi GeraldSaurin,

    ·         How long have you been faced with this problem?

    ·         You did it last changes before the show?

    I suggest you to start the following services and check that it works.

    a. click on Start menu and enter service.msc and press enter.

    b. in the next window you will see the list of services.

    (c) in the list, locate the service and try to Start the services.

    Also run the fixit available in the link below and check if it helps.

    No sound in Windows

    http://Windows.Microsoft.com/en-us/Windows/help/no-sound-in-Windows

    I hope this information helps!

  • Windows Update cannot currently check the update, because the service does not work, you may need to restart your computer

    My computer stops the update via WIndows Update Component

    Whenever a try to do the manual update using this component I get the message;   * Windows Update cannot currently check the update, because the service does not work, you may need to restart your computer *...

    My computer has a few updates, but can not run these update

    Whenever I try to run computer shotdown/updates remain frozen for a while and stops without updating

    He starts to run updates 1 of 13... and stops

    If I shutdown normal e, computer stay likehanging 1 hour without stopping.

    I would like to know how to solve this problem

    Thank you

    Concerning

    Gladmar.

    Hello

    Were there any changes made on the computer before the show?

    Perform the following methods and check:

    Method 1:

    I suggest you to check if you are able to access Windows Update service and ensure that the following services are started. If it is not started, follow these steps:

    a. click Start, type services.msc and press enter.
    b. search Windows Update.
    c. right-click on the service and select Properties.
    d. in type of startup, select enable.
    e. click Start under the Service status.
    f. click OK.
    g. Repeat steps c to f for the following services:

    Background Intelligent Transfer Service
    Cryptographic services

    If the steps do not help to solve the problem, you can go ahead with the methods mentioned below and check.

    Method 2:

    How to reset the Windows Update components?
    http://support.Microsoft.com/kb/971058

    Method 3:

    Your anti-virus software is in conflict with Windows updates. You can test this by temporarily disabling your antivirus:

    Disable the antivirus software
    http://Windows.Microsoft.com/en-us/Windows-Vista/disable-antivirus-software

    Note: Antivirus software can help protect your computer against viruses and other security threats. In most cases, you should not disable your antivirus software. If you need to disable temporarily to install other software, you must reactivate as soon as you are finished. If you are connected to the Internet or a network, while your antivirus software is disabled, your computer is vulnerable to attacks.

    Method 4:

    The problem with Microsoft Windows Update is not working

    http://support.Microsoft.com/mats/windows_update/

    See also:

    Troubleshoot problems with installing updates
    http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-problems-with-installing-updates

    Updates: frequently asked questions


    http://Windows.Microsoft.com/en-us/Windows-Vista/updates-frequently-asked-questions

    I hope this helps.

Maybe you are looking for

  • Can not view the image url on Firefox I can on Chrome

    I am trying to copy a set of images that have urls such as the following: http://www.Halldis.com/resources/apt_resource_1564_1272014118921.1 These images will display well on Chrome, but not Firefox, where I get a lot of funny characters. The site is

  • adjustment of curve with the equation

    I have a program in which I receive a response signal which is of the form A * cos (w * t) * exp(-t/T2), where A is the amplitude, w is frequency, t is time, and T2 is the spin relaxation time. Is it possible to adjust a curve in this graph and outpu

  • Evil indivcation of the status of the battery

    The President complied, I use the computer E-015tx hp pavillion laptop and bought another two months. I have problem about the State of the battery. Earlier, the laptop gave the warnig of battery indication if the battery was remaning 15%. But today

  • Recovery disk does not work now I have installed a new hard drive.

    I replaced my hard drive on my laptop HP - computer pavilion dv7 notebook. My recovery disks do not seem to work now, I get to 62% completion and then the error message "Recovery Manager is unable to restore your computer by using the original image.

  • Installation Photosmart C5250 on Windows 7

    I tried to install my Photosmart C5250 on my new Windows 7 system.  The result is that it cannot be installed on this operating system.  Without the center of HPSolution, I can't scan to a PDF file.  Is there a cd to load this printer on Windows 7?