Choose between chance and control

I have 2 questions.

1. I have a random number and a control. My indicator value must be equal to the value of my control, however, when the user presses a Boolean button, a random number to be generated, the random number generator should always take precedence over the control.

2. If I want to select the [2 4 6 7] random number of these 4 numbers only, which will be the best approach, because the random number generator generates the values in the range 0 to 1, but I want a random number of only these four numbers, i.e. 2 or 4 or 6 or 7

Thank you.

ade77 wrote:

I posted the vi, the way I imagined to be, but as what you posted, when I click on the button rand, it takes on values inputing, instead of just value, up to a new pressure.

Then, use a structure of the event, for example.

Tags: NI Software

Similar Questions

  • manage requests between acquisition and control program using agilent 34970 A

    Hello
    I realized an acquisition program of data with labview and agilent 34970, real-time acquisition works very well with a time you sample of a second... There is no problem
    to complete the program and control the taps installed in a photovoltaic system, pumping system
    I realized that a second program for the controlit is functional
    but the problem is when I merge the two programs in real-time
    This error is present at the execution of two programs at the same time, that is to say that they launch two request at the same time the instrument 34970 A
    (the poster of agilent 34970A labview crashes)

    -------------------------------------------------- --------------------------------------
    what I want is to find a little thing programming to manage two outgoing REQUESTS at the same time in LabVIEW instrument and create a kind of delay between two REQUESTS

    Sorry for the bad English

    Thank you

    If you are in the same executable, semaphores works well.  You lock the semaphore before making your order and demand.  Release after you get your data.  If the lock is already taken, then the semaphore just will wait until the lock is available.  Only one process can act both in this way.

  • Choose between gtx970 and 780ti at the same price - especially for first pro (no game)

    I must choose between (new) gtx970 and 780ti (second hand a friend, he buyed it but never mounted or even he unboxed) specially for first pro / some aEffets and PShop (it's the working pc, no game... too )

    Both are at the same price-

    360 eur 970 gtx

    780ti gtx 355 euros

    Read the card (cudacores, bandwiths, etc.), it seems easy to choose the 780ti especially because this isn't for the games, but I'm not professional equipment, then maybe you could give me some advice... I'm edition 4 videos k short (10 minutes or more) almost future and im worried about the 'old' technology 780ti could have some limitation with it

    I like to work with my new baby - i7 5820 k - 32 GB ddr4 2400-128 GB ssd for the OS - ssd 256 GB for editing - 2 TB hdd 7200 RPM - and an old gt440 from nvidia... for now...

    I hope you can help me with this last choice

    Thank you very much in advance...

    A 980Ti would be the best choice, and around the same way as a black Titan on this basis.

    Eric

    ADK

  • I've conquered by a windows version of first and photoshop elements without being able to choose between windows and mac - is it possible to reverse this trend, or switch to a mac version?, sold a windows version of the software for mac

    Hi, I bought a copy in the first line and Photoshop Elements bundle earlier today, and they gave me the version of Windows. I use a Mac and he had no choice given to choose between the two operating systems. I had seen elsewhere on the site that it was possible to get it on a BONE, so is it possible of is not the product of the version of Windows has opted for the Mac version or get a refund? The order has not taken on my bank account yet, so I'd rather have done before

    Hello

    This link might help: a product for another language or version of trading platform

    Kind regards

    Sheena

  • Choose between Mac and Windows OS

    Hello-

    I have a MacBook Pro on which I have installed Windows 8. When that I start this Mac, it automatically puts me in the Windows environment.

    From the start of this machine, what are the keystrokes that will evoke the Mac OS?

    Thank you

    Thomas

    X or Option and then clicking on the Mac OS X system. The startup disk can also be changed in the pane of the system preferences Startup disk, then the startup disk Control Panel.

    (144688)

  • How to choose between A and B roll footage onto the edit screen

    Can someone tell me if there is a way to see two video tracks on display monitor programs. ? I have synced two-piece and want to just see the two videos because they play so I can score and ut on what I don't want.

    HELP PLEASE

    synchronize the two discography as a Multicam.

    The MC Angle Viewer allows to watch "tracks" simultanousely.

    FCPX have no leads...

  • Connection: Impossible to let users choose between phone and computer/microphones in the same call.

    I have an account set up with IGP. I checked and double-checked to make sure that I put in place properly, even had a guy at the tip to guide me through just to be completely safe. Yet, I can't get a universal voice to work properly. Under Audio conference settings, I'm not able to select both phones and computer for users to call through. Rather than boxes, it gives me a pair of radial buttons - I can only select one or the other.

    Is there some hidden settings in the back-end that I'm supposed to check?

    Go to Administration > account > more settings and you will see the option to put on using UV with the bridge of phone fully integrated for each provider. This enabled, you should be able to use both at the same time.

  • Choose between MySQL and Oracle - problem with MySQL text columns?

    Hello.

    New to this forum and Oracle please go easy on me.

    I'm selecting data in a MySQL database.

    This SQL works very well: -.
    Select 'Device_Label' Device"@ed_link «»
    where "Device_ID" = 6665;
    Here, the MySQL Device_Label column is of type varchar (255).

    This SQL fails with the error - ORA-00904: "Device_Tag": invalid identifier
    Select 'Device_Tag' Device"@ed_link «»
    where "Device_ID" = 6665;
    Here, the MySQL Device_Tag column is of type text.
    Column Device_Tag certainly exists and is populated.

    Is the problem related to the MySQL type text column, and is there a solution?

    Thank you.

    Hello
    The ora-997 because of the entry door is not a restriction of the Oracle. You cannot use a table defined as a long in the create table... as select statement..., you would see the problem even if it was a copy of Oracle for Oracle.
    If one of the columns of MySQL are translated as a long in Oracle you will hit this problem.
    The bypass alone is to avoid columns long or you can try to create a view in MySQL by using the cast function, which converts the columns that translate to long something and then use it in the create statement.

    Kind regards
    Mike

  • What is the difference between DV and HDV formats

    First pro lets you choose between HDV and DV before starting a project.

    Hi Isaiah:

    These are the two digital tape formats that Premiere Pro supports directly.

    If your workflow is tapeless, you can ignore it.

    If your workflow includes tape DV or HDV tape, you can choose the one that corresponds to the format that you use. However, you can change at any time according to the needs.

    DV is a standard definition tape format (480i60 if shooting NTSC) and HDV is a tape format HD (1080i60 is common, but the other parameters are supported).  Each can be recorded on a tape MiniDV cassette.

    -Warren

  • distinguish between the indicator and controls using property nodes

    How can I distinguish between controls and indicators property nodes?

    I find that the controls and lights on the Panel before all come from the same class... a digital control and a digital indicator share the same properties... I am trying to find a way to distinguish between the two.  I would like to be able to analyse a reference VI pull only the references to the "controls" or "indicators" on the front panel... but when I try this, I shoot all...

    Although I found this case a knot of property ' control value: get all ' referral of VI, I can choose between only indicator or only the values of the controls... it's close to what I want, but instead, I like to shoot only the references to the Group of the "indicators" or only the references to the groups 'controls '.

    does anyone know if there is a simple way to do this?

    Thank you very much!

    Suprisigly to search for flags search controls

  • WHERE to choose between 2.4 and 5 GHz on wnr1000v3

    Hello

    I'm trying to find:

    WHERE to choose between 2.4 and 5 GHz on a wnr1000v3...?

    There same 5 GHz option...?

    Thank you!

    Nope. It is only 2.4 GHz.

  • What is the most important difference between 3D Picture control and controlling the display of Simulator

    I want to create a simulation of 3D on the front panel, and I see that we can use a 3D image control or a display of Simulator control. It seems that each of them can be used at the same position. What is the most important difference between 3D Picture control and display of Simulator?

    Hi sfh1,

    You are right, I found examples of Robotics that use 3D photo control and display Simulator control to display a scene 3D on the front panel. After further research, it seems that control the display of Simulator adds additional features compared to the 3D picture control. The control displays Simulator allows the user to right-click control during execution and change the background color, draw fashion, draw contact, view the ID of robot, display sensor data, suspension of service Simulator and reset service Simulator.

    More in depth on these options and the display of control Simulator can be found here:

    http://zone.NI.com/reference/en-XX/help/372983D-01/lvrobogsm/robo_controls_concepts/

    If you would like more information on the picture here 3D control is another resource:

    http://www.NI.com/white-paper/3170/en/#toc2

    Kind regards

  • Why the PS and SG asking me to choose between buying the product or a 30 day trial?

    I have the annual subscription of creative cloud and I downloaded several applications like Photoshop, Premiere Pro, and SpeedGrade.

    However, when I start Photoshop and SpeedGrade, I had to choose between buying the product or sign up for a 30 day trial.

    Anyone who knows why?

    This should help: http://helpx.adobe.com/creative-suite/kb/trial--1-launch.html

  • Display satellite C50-A546 cards how to switch between NVIDIA and INTEL?

    Hello

    How can I switch between NVIDIA and INTEL graphics cards?

    PS
    I have already installed all the drivers, but I can see that INTEL the card used chart!

    * OS: Windows 8.1 x 64
    * NVIDIA driver: 340, 52-portable
    * DirectX: 11

    Hello

    The Intel graphics chip, which is part of the central unit should be used for low performance applications, because it allows you to save energy and reduce the internal temperature.

    For best performance while game, it s advisable to use the external GPU (nVidia or AMD)
    This setting can be changed in the nVidia control panel s

    Here, you should choose manage them 3D settings (can be found on the left in the nVidia control panel)

    Now in the main window, you will find two global settings and program parameters tabs
    In the program settings tab, select the (game) program that needs to use the nVIdia GPU

    If it is not listed, click the Add button
    Then choose the graphic processor preferred for this program (generally must be nVidia processor high performance)

    Last but no less, in this program-specific settings, you can assign additional features to improve performance.

  • Thinshell - choose between WindowsShell or Thinshell

    Is there an a way easy to allow users to choose between WindowsShell or Thinshell?

    We are in the process of deployment of Terminal Server in a call center. Currently, they have about 400 jobs and we convert the jobs in thin clients using Thinshell. A great solution, Bravo Quest.

    I've set up a put in place an ORGANIZATIONAL unit to deploy the relevant software and also put the registry updated and it works very well because we can control the implementation by the displacement of the pcs in the OU in a controlled manner.

    The problem is that our users hot desk and must be able to choose between TS or office without calling the helpdesk.

    We had a very brief overview of ZeroPC and is probably a more suitable solution. We welcome this release, no atmospheric pressure then not chaps.

    You could also do something like a default autologin with a user who doesn't have little or no local/network privileges and launches into the Thinshell to authenicate users 'real identity' to a desktop application / distributed via vWorkspace.  But then the user also has the ability to 'disconnect' of thin shell and connect to the local computer local explorer.exe shell.  The article refers to Rick is also very useful in this.

Maybe you are looking for

  • laptop having problem starting?

    HelloSo I kind of reboot instead of stopping windows and left in the bag for a day. Today I opened it, it was on and just, it does not boot to windowsThere is just this blue screen where I can move the arrow and that's all I get.What should I do?Mode

  • E8 printing error

    my printer m1132 mfp series shows e8 and impression can not deal everyone can help

  • No usb port works

    I uninstalled the AMD Catalyst Control Center on a 500-027c HP and lost all USB drivers.  Given that only the entries USB I can't enter the computer to a previous state.  My restore disk is on a flash drive isn't an option, the USB are not active.  T

  • Window 7 Media Center guide has ceased to update

    My Media Center guide has ceased to update. I'm with Rogers in the Toronto area. Someone knows how to fix this? Thank you.

  • (Redirected) Speed of the network card

    How can I find the "speed" of my network card?  Looking at the Device Manager I can tell that the manufacturer, Realtek, but I am trying to determine if I have a 100 mb or end adapter.  My Bill does not or it is displayed in the system configuration