How to present respectively in a structure of case, a certain percentage of the iterations

I schedule a task to be used in a psychology experiment. There are two options for the stimulus, the test and captures stimuli. I would like to introduce the stimulus test on 90% of trials and the stimulus of catches on 10 percent of the tests. Currently, I have the test and catch the stimulus as two cases in a case structure and I this case structure in a loop so I can control the number of trials. I can't understand how the stimulus test run on 90% of the iterations.

Ignoring all the functions for randomizing data that exist probably in BT, here are some options:

  1. The "sort of" one - not sure how many iterations you will have and you want to choose between two options at a probability of 10% and 90%. Take the random number generator and check if the result is greater than 0.9. It will be 10% of the time (at least close enough to something involving human interaction, which probably has a limited number of tracks).
  2. You know how many iterations you and you want an exact COMP - generate an array of Booleans of size N initialized to f. divide N by 10 to get your 10% and then use a shift register to replace specific table elements. You replace the elements must be a random number multiplied by N and rounded and you must also have a while loop in the loop for to regenerate a number if there is one, you have already chosen.

Tags: NI Software

Similar Questions

  • How do I move a file/structure/components (to another hard drive) entirely, the license also

    Ive got a faulty os and need to restore the image of a bu. I need to spend some programs MANUALLY (temporarily) to another hard disk on the same motherboard / os while the image is reloaded for the reintegration of CGRP-before it erases what little damage done to the left. Unfortunately, it did not on the image. How do I feature license filed intact?

    Hello

    You can not move installed programs

    When you install a program it lies not only in the program folder files

    It spread during the operating system: registry, associations with other programs, etc, etc.

    you will need to reinstall it from the original media

  • How can transfer emails to another account, but only at certain times of the day (after that reception has left and before the start of the next working day)?

    I run a private school. The receptionist left to 1800 and begins at 0900 the following day.

    How to receive email between 1800 and 0900 to my private account, but not the e-mail during business hours?

    I guess that you have a computer with Thunderbird installed.
    I imagine that you have a profile with an e-mail account that is used for the activities of the private school and the receptionist has access to this email account, if you don't want the receptionist to see your personal emails.

    I would approach this by creating "User accounts" on the computer.
    Thunderbird would work in all user accounts.
    A standard user account could be used by the recepionist which would profile with business e-mail address account.

    The main account of the "Admin" user, accessible by entering a password, have your profile and your personal email to your personal email account.
    Then you can connect to your user account, open Thunderbird and access/download your emails whenever you want. Output of Thunderbird and your user account when you are finished. The receptionist will not have access without knowing your user account password.

    Alternatively, if you use the same user account:
    If you have created another profile and added a new existing for your personal email address, then after 1800hours e-mail account, you can leave the profile used for the account of the company and open the profile with your personal e-mail account to download emails. By offering you this profile nearby and open the profile of the company before 0900hrs, then it works as expected.
    If you use the same user account, it is possible, if the receptionist knows how to open your profile and read emails. Thunderbird password manager may be used to protect access to your e-mail account password, but not stop playback of downloaded emails.
    So why it is preferable to use "User accounts" as described in the first option.

  • How to resize an object on a layer, while a certain characteristic of the image measures a certain width?

    Hello

    I have a number of images of preparation of animals and they all must be 40mm at 300 DPI from tip of nose to their buttocks. The problem is a bunch of them have antennas, of long ears, long tail, etc. which may not be included in the measure, which prevents me to perform the entire image a certain size. How the entire image would turn so I can be sure that most of the animal measured exactly 40mm? TYIA!

    Crop the image for measurement points (do not delete the cropped pixels). Then the Image-> resize to 40 mm wide with 300 dpi. Then select reveals all and crop once again if you want.

  • How you zoom a whole video clip a certain percentage

    I shot some footage of hockey and I want to zoom in all the clips of a certain percentage of the final production... I put my clip in the source monitor and there is a drop down menu which allows to apply a different percentage and the clip is just the way I want it. I do the same thing after you put the clip on the timeline and I adjust the percentage on the monitor of the timeline as well but when I export the video it does not zoom in... it produces the clip as usual. How Zoom in a full clip and it can produce like that?

    Levels of Zoom in the Source and program monitors affects only the way monitors display video. Note that as you approach, scroll bars appear and you can scroll to see areas that are out of sight. In other words, that's all that's left.

    What you want to do is to use the scale under Motion parameter.

    If you CC2014 - and that you want to change the scaling of the master clip rather than the elements of track - then you can use the new feature Clip Master effects. Except that when a main element is loaded in the effect controls panel, the "intrinsic" effects [Motion, opacity, and time remapping] are not available. Instead, you can use the effect of the transformation, which also has the scale settings.

    If you are on an older version, then you can use the attributes of the dough or use a workflow of nesting.

  • How to create a negative feedback on a case structure to estimate changes in speed among a range of speeds

    Hi I am new in programming with LabVIEW and I try to create a program that allows to estimate gear changes based on how fast the vehicle of support falls. The speed is measured by an OBD device and the results are saved in a spreadsheet. I created a sample program that contains a loop that reads the table of speeds of line by line. I then created a case 2 structures for example 2 speed brackets each support represents a gear (3rd 35-54 km/h, 4th gear gears 55-79 km/h). My problem is I want to count how many times the speed changes of support from one to the other to symbolize a change of speed. Right now my program will count only the number of speeds within each support the entire speed range.

    So in summary I need help, trying to create an effect of negative feedback while first gear which falls within a range of speed is counted as a speed change, but none afterwards speeds are counted until a new slice of speed came.

    I attatched the logfile and VI of suggestions would be greatly appreciated!

    Thank you

    Michael

    Hi Michael,

    I made some changes to your code

    1 replaced the 2 structures dealing with one, which displays the report.

    With the help of numerical values (instead of Boolean values) as the case selector - you can use whole; I see in the file CSV that all your speeds are integers of anyway, but I added a bit of code that allows to convert an integer, rounded down. So where logic says 35-54kph inclusive, because whatever between 54 & 55 be have been rounded down, this will also take to speeds up to 54.999999 (etc.) if need be.

    I then sent this 'current gear' variable to a shift register, so each iteration of the while loop allows to compare the report with the previous train. This case structure returns 0 if the speed is out of range (35-80).

    2. I added the code that essentially says "is the new different gear to gear for the last iteration? YES - to increment the number of variable gears. NO - do not change the number of variable changes"this variable is also passed in a shift register, it's can be passed from one iteration to iteration.

    3. I've got rid of 2 shift registers that you added, to write off the table index, because it is more effective and less code to just use the terminal of the iteration. (Don't forget iterations of loops are zero indexed).

    At present, the code I've written generates the total number of changes in speed (0-3, 0-4, 3-4, 4 - 3, 4-0, 3-0). If you only want to speed changes, there are between 3 & 4, you could put a structure affair around the section of code that I added a box of decoration autour and run that code if the current/previous gear is not = 0.

    I hope that this help - at least to give you an idea of how this can be accomplished.

    Thank you

    Amy

  • How can I get a business structure group?

    I try to place a Boolean indicator in a structure of housing through LabVIEW scripting and am not having any luck.

    I started with the source code following, which creates and populates a case of a table structure:

    https://decibel.NI.com/content/docs/doc-22703

    So my code, rather than an enum inside each case, creates an arithmetic composed and a mask for each case.  It's that everything works fine.  I now want to place some Boolean flags on the Panel before which correspond to each case, and that is my problem.  I can create indicators, but when I look at the display of block diagram, all the indicators are located outside the structure of the case, rather than indicators are inside each respective case.

    I think that the reason is that a Boolean indicator is created by passing a reference to the façade.  But the problem is that the reference of the VI Panel does not indicate the Boolean value should be placed inside the case, just on the Panel structure, so when you view mode block diagram, he just threw the indicators structuring everything outside the case and wired their place via the tunnels.  I get the reference panel by accessing the my CaseSel object OwningVI field.  I feel that there must be some field case that I should be able to access which indicates that it takes to put the boolean schema inside the structure concerned case, but I can't.

    I've attached a file with 3 photos in there.  We show a picture of the code that I use to create indicators.  Watch the output type I'm looking for.  A watch the type of output that I get.

    Before connecting the wire to the Terminal, call the Move method on the terminal of the indicator and use one of the [] of diagrams of the structure of the case as the owner. This will move the Terminal in the structure.

  • How to present a project finished to a customer?

    How to present a project finished for a customer.  She insisted on having three logos of name with effects different and three logos Monogram with different effects.  The name finished logotypes are on a plan of work/file, and monogram finished logotypes are on a different level of work/file.

    Should each logo play a separate file when I packed up and sent to him?  Thank you for your help.  I am new to this.

    Peyroux,

    There is no need to create more than one document. You can name the layers in an obvious way.

    And if the three sets are its comparison and choice/work base, you can create a layer of name and a layer of Monogram logotypes logotypes, or even a layer for both sets, for easier comparison.

  • How to make a user-defined structure and creat a pointer for the same thing

    Function

    The prototype of the dll function is

    long unsigned PassThruIoctl (unsigned long A, long B unsigned, void * pvar1, void * pvar2);

    ' void * pvar1 ' and ' Sub * pvar2 ' are pointers to different Structures. The value of "unsigned" long B will determine what kind of Structure is the pointer.

    An example of structure is given below, when pvar1 is the pointer to SCONFIG_LIST.

    typedef struct

    {

    ParameterID long unsigned;    This entry of the dll

    Value of long type is unsigned;          This is a release of dll

    } SCONFIG;

    typedef struct

    {

    unsigned long NumOfParams;    the no. of elements in the array (SCONFIG)

    (entry)

    SCONFIG * ConfigPtr;           the pointer to array of SCONFIG

    (entry)

    } SCONFIG_LIST;

    The function is supposed to get the values of the configuration parameters (leave a device external interfacing).

    When I tried to run the service as shown in the attached VI, I always find myself with the error. The error I get is says something about the DLL which damages the memory of Lab View.

    Fixed mising. Can you post it again?

  • Need help on how to present evidence as a student

    How can I show proof that you are a student when you buy the kit of the student?

    Hi auggiek1099,

    Please see the link below:

    Student software discounts, eligibility student | Adobe

    Let us know if that helps.

  • How to detect a book/Document structured in structured FrameMaker FDK

    Hello world

    I watched the pillar to post on this one.

    Basically when you open a document in FrameMaker structured a warning stating exactly what you are doing.

    I use FDK and have tried this both formal and informal.

    The test for the structure of a document is to read the FP_HighestLevelElement property,

    This returns true in structured but false for a structured unstructured FrameMaker document.

    Lost with this one, but if FrameMaker can detect a document structured in informal, then I'd do it too.

    If any entry at all could be provided it would be highly appreciated.

    Yes, that's correct. F_ApiOpen() requires a list of input properties (F_PropValsT) and fills a second list after the operation that provides details on what was going on. You must configure the list of properties of entry to prohibit opening the file (FP_FileIsStructured = FV_DoCancel), then if the file does not open, ask the list of properties to return for the reason. I think the flag so that you look at is FV_CancelFileHasStructure, but I don't know about you. In any case, Rick is right... you can't find after you force, because the file is structured is no longer at that time here.

    Russ

  • I got an iphone 4 to a friend in the Canada. I want to use it here in the Philippines as a regular iPad reserved for wifi, how can I use it without sim card? It does not pass the activation page. Help please?

    I got an iphone 4 to a friend in the Canada. I want to use it here in the Philippines as a regular iPad reserved for wifi, how can I use it without sim card? It does not pass the activation page. Help please?

    You can activate it without a SIM card. If it is locked, it takes a SIM card by the carrier, for it is locked. The SIM card should not be linked to an active line of service, but it must be present to activate it.

  • RandomGen elements, case structure nothing if it's false, while the loop passes iterations, can not get the values in table outside the structure of the case

    Hello!

    I tried to build a trigger that triggers a true value each 1000 milliseconds (from the first real);

    which real command structure box to a value of the randomNrGen of the sample and place it in a table.

    but I would like to USE this table and I can't do this beacause I can not get out of the structure of the case.

    AND:

    the while loop ignores samples; If you run the vi and look at the speed at which the table fills, ypu notice it is not periodic: the first few items are inserted at 1 second interval, but then it jumps one;

    would it be because of the wait time 1ms?

    1. How can I create a structure that does this:

    If set to True, it samples a value from Genesis at random and places it in the table

    OTHERWISE, it does NOTHING, without zeros sent to the table just waiting for the next true and only the values sampled at True remain in the table?

    2. How can I stop it pop samples (multiples of 1000 in my case)?

    In conclusion: I need to be able to take samples on the sample generator and store them in an array of 3d in a zig - zag (1.jpg) way, but able to think about it, we need to go beyond these two questions.

    Please ignore the meter.

    Please help me!

    TibiG wrote:

    Thanks, Crossrulz!

    This did not omit all values and it works fine.

    Is it possible to get information in a case without making use of the large loop?

    My program will become very complex (I need to synchronize a magnetometer and a stepper motor to make a 3d map of the magnetic field of the magnet) and I want to do everything as simple as possible.

    If there is a way to get information about a case structure, other tnan using registers with shift on the big loop, and you know it, please show me.

    Thank you!

    You could also use a Feedback node, just keep it out of the structure of the case.

  • structure of cases with a string as a selector of case

    Hello everyone!
    I have little problem with the structure of matter
    location:
    I created the structure of case and case selection is made by the chain.
    According to the selection of respected cases led should light up

    the structure of the case is as follows:

    case 1 [when the string is 'abc']

    {

    LED 1 = true

    LED 2 = false

    }

    case 2 [when the string is "pqr"]

    {

    LED 1 = false

    LED 2 = true

    }

    case3 [when the string is "', by default]

    {

    LED 1 = false

    LED 2 = false

    }

    now what is happening:
    I clicked on the "continuous run"

    now when I type one chain that nothing happens!

    my observation:
    When I type abc/pqr in the entrance of the channel, it actually flashes the led for a fraction of the time that I can't see, and the value in the default case.

    what I expect of this code!
    When I put "abc' the entry in the chain,"led 1"should be lights up and stays on until I put pqr in the input string
    even when I put pqr in the input string, 2 LEDs should be lights up and remains lit until I put abc in the input string.

    Thanks in advance!


  • How can I make my PC act as a router to connect to the Internet?

    How to make my PC act as a router

    Hey Microsoft,
    How can I make my PC act as a router to connect to the Internet?
    Could you please let me know? What should I actually configure the router?

    See you soon,.
    Charel Sisouvong

    Hello

    You need Virtual WiFi:

    You may not have that unless you try to connect to other WiFi devices via your computer and
    many WiFi devices and their drivers do not correctly support the virtual pilot.

    Check with the manufacturer of system and/or support updated real manufacturer Sites and WiFi device drivers.
    (Which is also updating the driver virtual.) If no new drivers WiFi are available then re - install the present
    one.

    Control Panel - network - write down of the brand and the model of the Wifi - double click top - tab of the driver - write
    version - click the driver update (cannot do something that MS is far behind the pilots of certification). Then
    Right click on the Wifi device and UNINSTALL - Reboot - it will refresh the driver stack.

    Now in the system manufacturer (Dell, HP, Toshiba as examples) site (in a restaurant), peripheral
    Site of the manufacturer (Realtek, Intel, Nvidia, ATI, for example) and get their latest versions. (Look for
    BIOS, Chipset and software updates on the site of the manufacturer of the system here.)

    Download - SAVE - go to where you put them - right click - RUN AD ADMIN - REBOOT after
    each installation.

    Look at the sites of the manufacturer for drivers - and the manufacturer of the device manually.
    http://pcsupport.about.com/od/driverssupport/HT/driverdlmfgr.htm

    Installation and update of drivers under Windows 7 (updated drivers manually using the methods
    below is preferred so that the latest drivers from the manufacturer of system and device manufacturers are
    found)
    http://www.SevenForums.com/tutorials/43216-installing-updating-drivers-7-a.html

    Download - SAVE - go where you put it - right click – RUN AS ADMIN.

    You can download several at once however restart after the installation of each of them.

    After watching the system manufacturer, you can check the manufacturer of the device an even newer version.
    (Those become your fonts of rescue system manufacturer).

    Repeat for network card (NIC) and is a good time to get the other updated drivers as
    Windows 7 like the updated drivers.

    ==========================================================================

    More information on what WiFi devices a virtual: (as noted above, if the device or the driver is not
    support the virtual device or is not required then it can be disabled).

    The WiFi device and the driver is installed must support a Virtual WiFi configuration. Check with the system
    Manufacturer support, their documentation online and drivers and ask in their forums (if any) known
    questions. If the wireless device is supported for OEM sound drivers, visit their site for updated drivers and
    known issues (Intel, Realtek, LinkSys and others).

    Windows 7 adds native Virtual WiFi from Microsoft Research technology
    http://www.iStartedSomething.com/20090516/Windows-7-native-virtual-WiFi-technology-Microsoft-research/

    How to setup virtual Wifi in Windows 7 without any additional software
    http://www.Blogsdna.com/5506/how-to-setup-virtual-WiFi-in-Windows-7-without-any-extra-software.htm

    Connectify allows possibility virtual WiFi in Windows 7 machines
    http://www.geek.com/articles/news/Connectify-enables-virtual-WiFi-ability-in-Windows-7-machines-2009112/

    On the wireless network hosted
    http://msdn.Microsoft.com/en-us/library/dd815243 (vs.85) .aspx

    Build a Wireless Home network without router - see Windows 7 section
    http://www.labnol.org/software/wireless-network-without-router/11494/

    Transform Windows 7 into Wifi Hot Spot with Virtual Router free tool
    http://News.lehsys.com/2009/11/turn-Windows-7-into-WiFi-hot-spot-with-virtual-router-free-tool/

    =========================================

    3rd Party Solutions

    Connectify is a software easy to use for Windows 7 computers router.
    http://www.Connectify.me/

    Virtual Router - Wifi Hot Spot for Windows 7 / 2008 R2
    http://virtualrouter.codeplex.com/

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle=""><- mark="" twain="" said="" it="">

Maybe you are looking for

  • Problem in DropBox, after the last beta update

    I just updated firefox to v15 last and discovered that it shows all the files or folder to dropbox. I disabled all addons too, but no change. I hope that it is in the next update.

  • Working Internet speed

    does anyone know how to solve the very slow speed on my iMac using the internet - it's 18 months old and used to be really fast to work internet pages - this isn't slow relics. I have an internet security program installed on the machine now - which

  • Satellite 1400: Code 12 error if the PCMCIA card inserted

    I inserted a D-link dwl-650 + Wireless pcmcia network card in my laptop Satellite 1400-103. It does not work and cited the reason as being, "this device cannot find enough free resources that it can use. (Code 12) ». I don't see any way to change the

  • Help! You can load Xoom to entry USB port

    ... Left me dumb charger plugged at the airport at the beginning of travel int ' l. is possible to load a Xoom using the USB port on a laptop?

  • Downloaded games does not open

    Original title: downloads does not open. I keep trying to download games and others, but they go only in the download folder... they won't open from there? Someone knows why? Thank you