Script for random switch between different waveforms


How correctly to write the script to switch between different waveforms when generating?

For example:
We use the niFgen allocate named Waveform VI to allocate three waveforms. When you run the generator, the first forms of wave of work. Then the generator is activated and used in the following waveforms only second and third.

Or, we have configured 10 waveformsand by train to spend no fixed cyclically between everyone, but only between 2 and 5 waveforms.

If it is possible to achieve?

Max O.

Developer of software and engineering,


Hi Max,.

Each stage needs, too.  End ifs should take place at the end.  For example:

If scriptTrigger0
generate a myWfm0
on the other
If scriptTrigger1
generate a myWfm1
on the other
If scriptTrigger2
generate a myWfm2
on the other
/ etc...
end if
end if
end if

Of course, it must all be encapsulated in a repeated structure to continue checking for triggers.

Kind regards

Tags: NI Products

Similar Questions

  • Satellite L855 - 14K - random switching between power settings

    My Satellite L855 - 14K is used when it is plugged. The screen changes every seconds bright for dim - at the same time the logo in the taskbar switches to [plugged, load] to [xx % remaining] and the plug is removed from the logo. I changed the setting to [high-power] power and changed the setting to never reduce or turn off the screen and the brightness of the screen has been set to the maximum. There is always an obvious difference and it makes me crazy.

    The computer running Windows 7 Ultimate and has a 750 GB SSD, 16 GB of RAM, and software and BIOS are up-to-date. Battery and power have been exchanged with good known and the power supply is interrupted.

    Someone at - it ideas?


    According to the specifications of the laptop your machine was delivered with Win8 64 bit. Have you noticed the same behavior with preinstalled OS original?
    Since when did you notice this strange "switching" between the power supply and the battery?

    To be honest, it's not easy to say with certainty what the problem is here, but I think that it cannot be software related issue. I can hardly imagine that software gets a sort of 'signal' of electronic power supply.

    The warranty is still valid?

  • Configuration of Nexus 5 k for SAN switching between UCS 6100 s and NetApp storage

    We strive to get our configuration of the UCS environment make start SAN LUN on our NetApp storage. We have a pair of Nexus 5Ks with the company / SAN license on them and the 6-port FC module. What to do to configure Nexus 5000 to operate as the SAN switch between the target storage and environment of the UCS?

    You see the 6120 WWPN on the N5Ks? What is the result of 'show flogi database' and 'show int br '.

    You have mapped the FC ports on the 6120 for the proper VSAN?

    NPIV is enabled?

  • How can disable switch between different input languages (= keyboard languages) by pressing the Alt + Shift keys? __

    Although I can now perform steps

    1. On the start menu, choose Control Panel.

    2. In Control Panel, select regional and Language Options.

    3. In the Regional And Language Options dialog box tab, under Text Services and input languages, click details.

    4. In the text Services and input, in the Preferences section languages, dialog box click on the key parameters.

    5. In the dialog box advanced key settings, click Change Key Sequence.

    6. In the change Key Sequence dialog box, clear the switch input languages check box, and click OK.

    7. In the advanced key settings dialog box, click OK.

    8. In the text Services and input languages dialog box, click OK.

    9. In the Regional And Language Options dialog box, click OK.

      But I need some settings registry keys to do the trick above to me, because it is difficult to do it on the number of PCs that requires users to restrict the swith between input languages.
      No idea or help is greatly appreciated.

      Thank you in advance.

    I found the place where exactly this may be small :).

    [HKEY_CURRENT_USER\Keyboard Layout\Toggle]
    "Hotkey" = "1".
    'Language Hotkey' = '3 '.
    'Shortcut page layout' = '2 '.

    Change the value of "Language Hotkey" accordingly.

    1 sequence of button enabled; Use Left ALT + SHIFT to switch between locales.
    2 key activated sequence; Use CTRL + SHIFT to switch between locales.
    3 invalid key sequences.
    4 If the default locale is Thai, the grave accent key activates / deactivates the input locale. otherwise the keystrokes are disabled.

    Another problem is that it sits under HKCU as well, same as if I pack this setting with MSI, it won't have a any use to me. Since then, installation is done using MSI localadmin account and HKCU is associated with the current session. If a new user who connects to this settting does not apply, and even if it rises "access denied" :(

    Hope this helps anyone with the same problem.
    Thank you.

  • There at - it a keyboard shortcut for: a) switch between tab groups? (b) pass a correspondent of Panorama search results?

    (a) between tab groups would improve my workflow. Like Alt + (shift +) Tab to move to the next/previous Cmd + shift + W/R tab would be another possible option next to the Cmd + Shift + E to Panorama.

    (b) when the research in Panorama tab between results would be great.


    CTRL + '

    I had to search for a good while to find it on a web page of non-mozilla. Don't know why mozilla is not properly document this on this page of keyboard shortcuts:

  • How to switch between multiple windows in the same application?


    I use OS X Capitan version 10.11.13 and I'm trying to find an easy way to switch between multiple windows in the same application by using CTRL + alt or different keys.

    Here is what I feel...

    Let's say I have Outlook, Google Chrome, Safari, iTunes and apps 'about this Mac' open.

    I open the new message window in Outlook and another Chrome window. I have therefore 2 separate windows in Outlook and Chrome.

    With that, I'm unable to move the composition and the window main outlook which is so annoying. Let's say I want to read the emails by the prospect main window and transfer of the content of the compose window! The command + tab doesn't take me to the main window of Microsoft outlook! Even if there were the last visited / applications window. This constraint is not intuitive, unless it can be configured in the settings?

    Strangely, I can't switch to the "about this Mac" window.

    The work around is to use the function (F3) mission button and click on the window, that I want to use or click the "Outlook" application on the dock icon and choose the window in the list.

    Does anyone know how switch between different windows in the same application by using a key combination or one another method other than listed above?

    Thank you


    In general, an Application that can open multiple windows provides a "Windows menu" you can choose the window you want.

  • Switching between microphone and line-in in the Realltek Sound Manager

    Now I know where the Realtek Sound Manager, and I can control the parameters of the microphone and speakers.
    But how can I switch between microphone and line-in?
    At the moment I don't see a line of component option snap at all. Is it because it's a kind of auto detect and the opportunity every time I connect something?
    Everyone knows this, or has some experience in this regard?
    Cordially in advance

    Sorry but I don't understand what exactly you want.
    You have built in mic or you can use the external microphone connected to the mic-in port.
    When the external microphone is connected a resident will be disabled.

    The question is: what do you want exactly and for what purposes? Please explain what is the reason for this switching between mic and line-in port?

  • Version 5.0 on a MAC doesn't let me switch between tabs. Can I open a new tab, but when I try to go in a different tab, it shows me just the content of the tab opened most recently. Help!

    Version 5.0 on a MAC doesn't let me switch between tabs. Can I open a new tab, but when I try to go in a different tab, it shows me just the content of the tab opened most recently. Help!

    In addition, pop up blocker works for a while and then stops working. I have to close and restart Firefox to make it work again. Help!

    I had the same problem, but with Firefox 4.0. My first thought was last updated to Firefox (after of course restarting FF), but it did not help and I had the same problem.

    Among others, I had an extension installed and enabled called tile tabs 4.10 I thought could easily create this problem. I went in my Add-ons Manager and disabled, restarted Firefox and tabs worked properly again. Unfortunately, the extension of the tile tabs is my favorite Firefox Add-on and I use it almost every day to manage my web tasks. I went to the page Add on for tile tabs and saw that there was a notice that version 4.10 did not work properly on Mac OS and install version 4.9 of the extension. I saw that they had a new is not-yet-seen version 4.11 who has tackled the problem of Mac OS, installed, and everything seems to work properly.

    I have no idea why all of a sudden I had this problem as I don't had not updated Firefox or the extension of the tile tabs recently. Also, obviously this could not solve your problem, especially if you have the module installed and active. But our problem started at the same time for both of us it seems based on your post time, so its probably not a coincidence.

    But its worth a quick glance and you can check other extensions if you don't have the legs of tile that might be the cause of the problem.

  • Why gesture to turn on my trackpad behaves not as before for switching between tabs when it works the same with all other programs besides Firefox?

    Why gesture to turn on my trackpad behaves not as before for switching between tabs when it works the same with all other programs besides Firefox?

    I changed the subject: config to make the rotation gesture to move between tabs and it worked great for well over a year. It now behaves properly, as described here:

    It used to be very controllable move a tab on, now it is erratic and moves quickly and the unexpected tabs regardless of the slowness, I do the gesture of rotation. It's the main reason I use Firefox on Chrome and I will continue to do so unless there is no solution for this.

    Just put the browser.gesture.twist.threshold to something around 15-25.

  • It takes up to 4 minutes for the player switch between library and Rip, and vice versa.

    I run Media Player 11 on my XP machine with spare 120G on the C: memory and 3G - recently, it takes up to 4 minutes for the player switch between library and Rip, and vice versa. I have re-installed twice but no change. No new software has been installed before this time.

    Hello Absno69,

    Thank you for your message.  You mentioned that there were no new software installed before that happens.  Were there any hardware changes or updates?  If this isn't the case, we will perform a system restore to a point that you know that your system is working effectively.  Click HERE for the system restore instructions.
    Please let us know if it did or did not help to solve your problem.
    See you soon

    Engineer Jason Microsoft Support answers visit our Microsoft answers feedback Forum and let us know what you think.

  • Switch keyboard blackBerry 10 between different languages

    Does anyone know if the keyboard BB10 will feature an easy switch between the different languages that will preserve the anticipation of the frequently used words / etc?

    nouaspe wrote:

    It is very good - thank you very much. What is a basic characteristic? Is there a list of the languages (if you seek one with less traffic)?

    in the input languages, there is a list of language to activate, and then it will work immediately

  • How warns we reconnect when switching in demand between different module in

    How warns we reconnect when switching in demand between different module in

    Please, help me to understand this or fix it?

    Be sure to check that your containing remote access service is running. If it's not, restart the service and if it breaks down again, check the event logs.

    Ensure that the AuthenticationBridgeService is enabled in your EnvironmentSettings.config, and the user to remote access container is configured by using the SetupAssistant.


    If the remote container Service fails, please contact Support with precision since the event logs.

  • How can I get the lines for the date between 2 different days

    Hi all,

    How can I get the lines for the date between 2 different days.

    Sample data:
    Table name: Articles
    Title start_date end_date
    Heading1 08-22-2011 2011-09-11
    2011-08-01-2011-09-01 Title2
    Title 3 2011-08-21 08-21-2011
    title4 2011-08-28 2011-09-11

    Result will be:
    Title start_date end_date
    Heading1 08-22-2011 2011-09-11
    2011-08-01-2011-09-01 Title2
    title4 2011-08-28 2011-09-11

    This is my example query:
    SELECT * FROM items WHERE trunc (es.date_start) > = TO_DATE('2011-08-22', 'YYYY-MM-DD') AND trunc (es.date_end) < = TO_DATE ('2011-08-28', 'YYYY-MM-DD')

    but I can not get the expected results. Any help would be much appreciated.

    Thanks in advance

    not read your question properly before...

    Please try this

    Select * FROM items
    WHERE (TO_DATE ('2011-08-22', 'YYYY-MM-DD') between TRUNC (es.date_start))
    AND TRUNC (es.date_end)) OR
    (TO_DATE ('2011-08-28', 'YYYY-MM-DD') between TRUNC (es.date_start))
    AND TRUNC (es.date_end))

  • How to structure the DMA buffer for SMU 6341 DAQ card for analog output with different frequencies on each channel

    I use the outgoing/incoming analog DDK with the DAQ 6341 SMU map.

    The examples, for example aoex5, show a single timer (method outTimerHelper::loadUI), but the example shows the DMA loaded with same size of vector data.

    There is a comment in the outTimerHelper:call rogramUpdateCount, which implies that memory sizes different pad per channel can be used.

    (the comment is: switching between the sizes of the various buffers is not used)

    Nobody knows what should be the format the DMA buffer for data from multiple channels with different frequencies?

    For example, we want a0 with a sinusoid at 1 kHz and a1 with a sine wave of 1.5 Khz.  What looks like the DMA buffer?

    With the same frequency for each channel, the data are interleaved, for example (ao0 #0, ao1 #0; ao0 ao1 #1, #1,...), but when the frequencies for each channel is different, what the stamp looks like?

    Hello Kenstern,

    Data are always intertwined since each card has only a single timing for each subsystem engine.

    To AO, you must specify the number of samples that will be released to the AO. You also specify the number of channels. Because he didn't is that a single engine timing for AO, each AO will be channel will be updated at the same time to update clock tick. Data will be interlaced exactly as shown in the example because each channel AO needs output at each tick of the clock to update. The data itself can change depending on the frequency you want to copy.

    kenstern wrote:

    For example, we want a0 with a sinusoid at 1 kHz and a1 with a sine wave of 1.5 Khz.  What looks like the DMA buffer?

    With the same frequency for each channel, the data are interleaved, for example (ao0 #0, ao1 #0; ao0 ao1 #1, #1,...), but when the frequencies for each channel is different, what the stamp looks like?

    In your example, you must come with an update rate that works for the two waveforms (sine waves of 1 and 1.5 KHz). To get a good representation of a sine wave, you need to update more than 10 x faster than your fastest frequency... I would recommend x 100 if possible.

    Update frequency: 150 KHz

    Channels: 2

    Then create you stamps that include complete cycles of each wave you want to produce based on the frequency of update. These buffers must also be of the same size.

    Buffer 1: Contains data for the sine wave of 1 KHz, 300 points 2 cycles of sine wave

    Buffer 2: Contains data for the sine wave of 1.5 KHz, 300 points, 3 cycles of sine wave

    You can Interleave them as before. When the data are performed through the ADC, they are out different sine waves, even if the AO channels are updated at the same speed.

  • Trails of the icon when switching between desktops in the Sierra

    I noticed some display problems since the update for Sierra. I see some trails icon when switching between desktop computers as well as a line of 1px of random colors on the right side of the screen seems to be leftover pixels for the desktop switch as well.

    Here is a screenshot:

    Here is a video showing the paths of the icon:

    Any other light this or know how to fix? It's rather annoying.

    Thanks in advance,


    Hello Brent Spore.

    Thank you for reaching out to the Community Support from Apple. I know how it is important to keep your Mac running properly, and I want to help him.  Whenever we see the behavior as what you described, it is a good idea to test the symptoms in a separate user in safe mode. This will help us determine if the remanence of the icon is linked to a problem with the user account or if it's a question broad system. The articles below will guide you through these steps.

    How to test a question in another account on your Mac.

    Try safe mode if your Mac does not end commissioning

    If the ghost still occurs in safe mode, then we know it is a question broad system and I would recommend backup your Mac and Mac OS re-install using recovery, as described in the articles below:

    Use Time Machine to back up or restore your Mac

    How do I reinstall macOS

    If the behaviour continues or if you encounter difficulties, the entire community is here to help.

    Best regards.

Maybe you are looking for