Why is the trigger of the DAQ signal works not as I expect?

Using the DAQ Assistant, I have received a signal at a rate of 100 k Hz and number of samples of 75 k. I would like a light every time that the amplitude of the signal falls below 1. As you can see from my attached graph, the amplitude becomes less than 1. However, the light does not turn. Any suggestions on what I'm doing wrong or misunderstanding, that I might have? This is my first project with the DAQ Assistant, then perhaps there is something simple that I'm missing.

Hello

The problem in your VI is that you gain 75 k samples, but you check if the second sample is less than 1V.

This is because the Index Array node, it will give you only a single element of the array, which means a single sample.

You should take just a sample at a time, or send the table going into a tunnel of indexing. But that could slow things down when you have so many samples.

Tags: NI Software

Similar Questions

  • order a fan with USB6251 and the Daq signal accessory

    Hello

    I have a school using Labview project and the USB6251 connected to the Daq signal accessory card.

    The Labview program must read continuous temperature (Ia 4 channel, internally) temperature probe connected to the accessory of Daq Board signals. When the temperature reaches an established value, then a led on the front panel should be lit and a singal output data acquisition should start a fan connected to the acquisition of data which cools down the sensor, then stops.

    Would it not be possible to do something like that? Even if I generate a square signal and the fan only works on the State of the signal. The fan requires at least 120 mV DC current. I'm afraid that if I take these courses for the acquisition of data, I could damage the unit.

    Thank you.

    I guess you mean 120 current my DC . If you look at your spec of daq card, you will find that the current max are far below 120 my. This applies to the two analog out and digital out. Take a look at this site, it may be useful to some. site nice http://www.me.umn.edu/courses/me2011/robot/TechNotes/motorcontrol/motorcontrol.html . If you want the speed controller, you have two options PWM or voltage of the motor regulation.

    Good luck

  • Why did the last updated do not and give me U44M1P7 this_?

    See above. Why did the last updated do not and give me U44M1P7 this_?

    Hi cfosofart,

    Please go follow the mentioned kb: http://helpx.adobe.com/creative-suite/kb/error-u44m1p7-installing-updates-ccm.html .

    Kind regards

    Romit Sinha

  • iTunes update errors with the following message appears: there is a problem with this Windows Installer package. A program run as part of the set up did not complete as expected.

    iTunes error update

    I am trying to install an update to iTunes on my laptop and find the folowing part-way through the installation error:

    "There is a problem with this Windows Installer package. A program run as part of the set up did not complete as expected. Contact your provider to support personal or package. »

    I got iTunes for 3-4 years now and have always been able to install updates successfully, so don't not sure what is the problem.

    I tried msconfig and changed the boot process, so it includes all of the non-Windows elements, as suggested on the Microsoft Web site, but that has not worked.

    Can anyone help?

    Thank you

    The instructions were to contact the vendor of the package. This isn't iTunes, Microsoft.

    Ask the question in the Apple Forums:
    https://discussions.Apple.com/index.jspa

  • Windows Installer error there is a problem with this windows package install. a program run as part of the set up did not complete as expected "during the installation of Itunes

    Original title: problem WIndows Installer to install the latest version of i tunes

    When I try to install the latest I tunes version 10, I get a message "there is a problem with this windows package installer. a program run as part of the set up did not complete as expected "the downloads version, but will not be installed."  How can I fix?  I have an earlier version, but I need to update to use my i pad.

    Hello

    You can try the steps of troubleshooting provided in the link below and check if the problem persists.

    Problem installing iTunes or QuickTime for Windows

    http://support.Apple.com/kb/HT1926

    To get help on the issue, you can get in touch with support for ITunes.

    http://www.Apple.com/support/iTunes/

  • DELL C2665dnf - the touch screen works not.

    DELL C2665dnf - the touch screen works not.

    How can I get a quote for the replacement of the touch screen?
    Am in need for a screen. Can help me

    Hi Rickellv2,

    You must call Dell technical support or use the chat for your country for information.

  • Why is the synchronization statistics are not Performand and memory profiler?

    Hello

    I have a Subvi, which I have timed with a stopwatch to 88 seconds, and the Profiler is telling me that the total time is 20 seconds.  The Subvi is activated by a button, contains a loop for, and is the last action in the program.  Everything is always changing as expected - if I reduce the number of iterations inside the Subvi loop for by a factor of 10, I can measure and 9 seconds with my stopwatch and the Profiler tells me 2 seconds.  What is going on?  Why is the Profiler to offshore?

    Ken

    Ken,

    AVI playback has a period included widening due to the framerate of the video that you read. If the fps (frames per second) of the video is for example 30, you have to wait between two images 1/30 s = 33.3 Ms during this time of waiting, the Profiler does not show the appellant as active VI. The caterpillars needed time by calling contains only the loop and the call to IMAQ AVI reading Frame.vi. No time the Subvi takes.

    If you look in the time taken by IMAQ AVI frame of reading, you won't see the "wait time", as it is once again a function called by this VI...

    hope this helps,

    Norbert

  • Why is the Sony EyeToy: play not compatible?

    Precisely why is the toy of the eye not compatible with Windows7?

    The eyetoy is circa 2003 and the software has not can't be updated to work.

  • Why is the hitTest function works only with attachmovie?

    Hello.

    I need help. I can't get the hitTest to work for my script below.

    I tested using movieclips created on stage at design-time and collided during execution. hitTest, works very well in this situation.

    But if I use the attachmovie command and create a movie on stage during the performance, the video cannot hitTest with other clips. The hitTest just doesn't work.

    Please help me by recommending changes. I don't know what to do. It is not that difficult.

    Thank you.

    -Aslan

    """"""""""""""""""""

    The script below is essentially to create instances of enemymc, and he will fall vertically, hitting a movieclip target_mc which is set at design time. Please help, out of ideas.

    """""""""""""""""""""

    var enemyTime:Number = 0;

    var enemyLimit:Number = 20;

    onEnterFrame = Function)

    {

    enemyTime ++;

    trace (enemyTime);

    if(enemyTime == enemyLimit)

    {

    var enID: Number = Math.Random ();

    enemy_mc = _root.attachMovie ('enemymc', 'en' + enID, _root.getNextHighestDepth ());

    ["fr" + enID] _root ._x = int (Math.random () * Stage.width);

    _root ["fr" + enID] ._y = - 5;

    _root ["fr" + enID] .onEnterFrame = function()

    {

    var chk:Boolean = false;

    var currMov:MovieClip;

    ce ._y += 5 ;

    currMov = this;

    if (this.hitTest (_root.target_mc, true))

    {

    trace ("the enemy detected a success.");

    }

    if (this ._y > (Stage.height - 10))

    {

    this.removeMovieClip ();

    }

    }

    enemyTime = 0;

    }

    }

    If you have two targets mc then they must have different instance names and you must hitTest for each of them.

    If (this.) HitTest (target_mc1) | this.hitTest (target_mc2))
    {
    trace ("the enemy detected a success.");
    }

    And if you need to deal with them in different ways depending on who gets the success, just use two separate tests.

    As far as why my way and not your way, I have to be honest and say that I spent time trying to get your way to work and by trial and error, I ended up with, that's what you see.  I thought that the biggest change took place (which means he started work) when I changed the hitTest to not include the "true" setting, which I think is applicable to the use of corrdinates, and not an object.  But when I started your code and changed only this line, it still does not work, so something else in my revised code also applies.

    I didn't like using the random calculation for falling objects, which may have been part of the problem.  That will produce a fractional value with a point decimal, and names of the instance with dots in them are probably an accident waiting to happen (ex: en0.27365514)

    If you want to know what changes were absolutely necessary for its work, start with your code and the hitTest change first and then see what must be done to get things working properly.  I was tempted, but I had other things I wanted to do, so I got what I got the job.

  • Some keys on the keyboard does work not after the suspect virus on Tecra

    Apostrophe, delete, semicolon and the end of the keys no longer work after a suspected virus attack. I found the same problem on the net record but apparently this guy fixes his problem after stop scroll or NumLock on found him.

    This isn't the case here, but it's something with numlock - registry Watch 2 and not 0. switch to 0 but when reboot 2 times.
    Suspect has changed through the bios. I thought that I couldn't get to the bios because DEL key does not but found ESC works.
    Tried to reset the values default to the bios but then can't save and exit it in accordance with the EndKey to work.

    I was running XP at the time of the (alleged) attack and could not correct the problem so to put the computer OEM as I hoped would help - there no, same problem, so instead of installing all the software on the computer with XP I upgraded to Windows7 - charge install.

    Keys still don't work - it was a real pain first as my computer was created for ctl + alt + delete to log on and I had to do with the keyboard of the screen - XP - it showed also that numlock performed before and after windows starts.

    The reason why I suspect a virus - my wife was watching an of its tv shows on the line of the country of origin (an another toshiba laptop) and I needed to use this laptop for something else, so I asked to use mine - then we turned off laptops and the morning turned tham back on again once , the other laptop with virus protection AVG reported several hits and this one with Norton (FAMOUS and completely up-to-date) flagged nothing - once I got the screen keyboard.

    Problems with this computer were found after scanning with different antivirus.
    Anyway - I find myself with 4 keys that don't work not on my keyboard (in fact they work after I have connected to the computer for the first time, but I had to hold them in place for a long time - and then the next time I rebooted, not at all and did not since)

    Here, any help would be greatly appreciated, I'm working on this all weekend with no joy at all.

    Thanks in advance.

    Having a virus attack, the Windows files will be destroyed. Try the scan with kaspersky on Nod 32. If not help, reinstall os because it is the best solution in your case.

  • Out of the object, it is not what I expected.

    I am rewriting a script and I'm having some problems with the release, the partial script is below.

    1. something function {}

    2 $ESXiVersion = $AllESXiHost | Foreach {Select @{N = 'Version of vSphere';} E={ $_. Name}}, @{N = 'Count'; E={ $_. County}}}
    3. $ESXiModel = $AllESXiHost | Model group | Select @{N = 'Server model'; E={ $_. Name}}, County
    $ESXiInfo = new-Object - TypeName PSObject
    $ESXiInfo | Add-Member - MemberType NoteProperty-name ESXihostCount-value ($AllESXiHost) .count
    7. $ESXiInfo | Add-Member - MemberType NoteProperty-name ESXiVersion-value $ESXiVersion
    8. $ESXiInfo | Add-Member - MemberType NoteProperty-name 'Model' - value $ESXiModel
    Write $ESXiInfo. FL

    }

    I tried some things, so the line 2 (goes to line 7) is an experience and does not produce anything, but when I write it as line 3 (goes to line 8), I get the same results.

    When I call the function, line 2 (line 7 out) and 3 (output line 8) show similar to information

    {@{Model server = server;}} Count = 7}, @{model = Proliant Server;} Count = 1}}

    I'm guessing that the output is a hash table, but of course I want the "@ {" removed from the script, but I don't know how.  A colleague suggested I use a foreach statement, but I don't know that I did it incorrectly.  If I register, say line 3 as below:

    $iHost = get-VMHost | model group | Select @{N = 'Server model'; E={ $_. Name}}, County then the output seems well

    I see it's a GroupInfo object... ok, I can go on and on for something simple.  How can I remove the {@{}} my script, so it looks better when released?  Thanks in advance.

    HI: DZ1,

    Sorry for the confusion between you. Please forget this GetEnumerator, you don't have to use it at all. It was my mistake. I don't know why but I thought that's a hash table and you use getenumerator to split large hashtable of unique items... I don't know what I was thinking then. Ah sorry this one.

    Your line

    1. $ESXiVersion = $AllESXiHost | Select @{N = 'Version of vSphere'; E={ $_. Name}}, @{N = 'Count'; E={ $_. County}}

    is wrong, I guess. If you want to get the esxiVersion you should not query the property 'name '. Name is the name of your host esxi as, esx123.local.biz, but it does she hold the version name. To get esxi version you must use the property named 'version' of the vmhost object.

    I don't know what you want to count by this line because:

    $AllESXiHost | Select @{N = 'Version of vSphere'; E={ $_. Name}}, @{N = 'Count'; E={ $_. County}}

    first of all it will not count anything because you're the count() on vmhost object method that isn't a table or something like that type, which could be counted.

    It must be remembered that, in your infrastructure there may be several versions. If you have to do that many heads of charge esxi as many versions as you have in your VC.

    This is why I have proposed to put as many version properties as they are.

    If this MAIN BIG object for statistics will hold a property for counting version 3, version 4 and version 5 for example. In order to count the individual versions, you have to divide your esxi by these versions boxes

    Then

    $AllESXiHost | Group-object - property

    consolidate all hosts of esxi by their version number, you will receive as many objects as it has versions

    You should see something similar to this

    Name of County
    ----- ----
    1 3.5.0
    2 4.0.0
    3 4.1.0

    So, we have identified 1 host with version 3.5, 2 guests with version 4 and 3 guests with version 4.1

    So everything depends now how you wish to put this information inside your statistics collection of $esxiinfo objects

    I have proposed to put 3 different properties, or having 1 House containing an arry.

    IF you want to have the simple text, and you do not want to calculate it later anyway, you can just make 1 chain and join these chains in a big 1.

    $versions = $AllESXiHost | Group-object - property Version | Select Count, name
    $versions

    Name of County
    ----- ----
    3 4.0.0
    7 3.5.0
    6 4.1.0'

    I don't know how many versions you will receive. But since you can have mulitple versions I guess you want to distinguish them.

    So I thought you want to learn to add as many properties of the versions in the newly created object.

    2. $ESXiInfo = New-Object - TypeName PSObject

    It's ok

    3. $ESXiInfo | Add-Member - MemberType NoteProperty-name of the Version value ($ESXiVersion |) Group - Version) .getEnumerator (of property). Select Count, 'vSphere Version' 0

    We will add properties to ESXiInfo now, we will add AS MANY PROPERTIES as NEEDED.

    Therefore, add 3 properties

    property Version4.0.0,

    property Version4.10.0,

    Version3.5.0 property

    So instead of the line that we should use

    $versionss | % {Add-Member - InputObject $ESXiInfo - MemberType NoteProperty-Name "Version$ ($_.)"} Name)"- value of $_. County}

    For each version, that we found, we will add new Member to our object of $ESXiInfo. This command will automatically add as many versions they are.

    Your ESXiInfo object will now have new properties

    # 23:01:55 > $ESXiInfo | GM

    TypeName: System.Management.Automation.PSCustomObject

    Name MemberType definition
    ----         ----------   ----------
    Equals method Boolean Equals (System.Object, obj)
    GetHashCode method int GetHashCode()
    Type of the method GetType GetType()
    String the ToString ToString() method
    Version3.5.0 NoteProperty System.Int32 Version3.5.0 = 7
    Version4.0.0 NoteProperty System.Int32 Version4.0.0 = 3
    Version4.1.0 NoteProperty System.Int32 Version4.1.0 = 2

    So you can get

    # 23:02:55 > $ESXiInfo. 'Version3.5.0 '.
    7

    I think that I have explained your 3 lines.

    Now if you really want to have an additional property only 1 for versions, you can do it like that.

    line 1

    $AllESXiHost | Group-object - property Version | select count, name | % {[table] $versionss2 += 'Version $($_.)} (Name) = $($_.) County)"}

    This line will create the variable $versionss2, which will be used to maintain information about the versions of esxi.

    Lets first get the versions and their count but store this information in a simple table.

    I # 23:05:20 > $versionss2
    Version 4.0.0 = 3
    Version 3.5.0 = 7
    Version 4.1.0 = 2

    OK, we have 3 rows in our table, but you want to have only 1 property for versions so join us just these lines.

    So we call add-member only ONCE, this time:

    Add-Member - InputObject $ESXiInfo - MemberType NoteProperty-Name 'Esxi Versions' - value [string]: join(',',$versionss2)

    We are joinng all loose our table with versions with comma.

    Take a look how your object will now look like:

    # 23:10:55 > $ESXiInfo | FT - AutoSize

    Version4.0.0 Version3.5.0 Version4.1.0 Esxi versions
    ------------ ------------ ------------ -------------
    3 7 122 version 4.0.0 = 3, Version 3.5.0 = 7, Version 4.1.0 = 2

    first 3 columns were the first method, fourth colum is the new approach. So if we would not include even the former approach, it would look like this

    ESXi versions
    -------------
    Version 4.0.0 = 3, Version 3.5.0 = 7, Version 4.1.0 = 2

    And for the model, you do exactly the same thing, but instead measure the version property, you need to measure the model.

    I hope that is more clear.

    Greg

  • Response to the Mail function works not

    When I try to reply to an email in Mail, opens the window of response but the response address does not appear in the address box and the cursor flash, but I can't type the address under. By clicking on the button close the answer window will not close and I can only get rid of it by quitting mail altogether.

    Suggestions anyone?

    Rob

    Exit the Mail.

    In the Finder, select go, then navigate to the folder. Copy and paste the path below and click GO:

    ~/Library/containers/com. Apple.mail

    Move the entire folder com.apple.mail to the Recycle Bin, open Mail and test. If all goes well, you can empty the trash. You may need to re create your user settings.

  • ASA 5520 8.0 (4) port depending on the ACLs vpn works not

    Hi all

    I have a problem with an ASA (5520 8.0 (4)) for lack of working with a port based acl for remote clients. I have a simple acl from a single line to split traffic, if I allowed the tunnel IP works fine, if I lock it up to TCP 3389 rdp will not work. I don't see anything in the logs and debug output, I did have a problem with a similar configuration (5510 8.0 (4) and I'm at a loss to explain it.)

    Everyone knows about this problem before? I have nat exclusions etc and as I said, the tunnel only works if the acl permits all IP traffic between client and server.

    THX in advance

    Split-tunnel list cannot IP, if you want to restrict which ports are are sent via the tunnel vpn for your clients vpn, you need to use VPN filters under Group Policy:

    http://www.Cisco.com/en/us/products/HW/vpndevc/ps2030/products_configuration_example09186a00808c9a87.shtml

  • Captivate 8 - video integration problems. Video won't play Web server when published under the title of HTML5. When to play the video it works not embedded.

    Captivate 8 - video integration problems. Video won't play Web server when published under the title of course HTML5 and video is selected to play in the same screen. Play video it works only in a new window. The problem is the customer's requested integrated video and it shows as an option in Captivate 8. In addition, the video screen is not at the same place on the screen, the image moves to the top of the browser window in Internet Explorer. Graphics problems appear ONLY in IE and Chrome for PC. We have updated browsers, installed all updates to Captivate 8 etc.

    The issue seems to be with internet explore. The url is *.mp4, if IE browser opens Media player in a new window to read the files.

    Workaround solution:

    Instead of using the interaction of the Web object, you can use a Web object (objects-> Web) site in the menu object.

    After insertion, select the code incorporated in the style of the real property section. (Screenshot below)

    Encapsulate the url in an HTML video tag and use it as input.

    Input samples:

    https://{website-Address}/VIDEO1. MP4 type = "video/mp4" >

  • Programmatically trigger a structure of the event with the value (signaling) is not responding

    Hey, in my attached program I check if the two steps of translation are in a specific position. If Yes, I want my code to execute a sequence of movements. If this isn't the case, I'm asking the user if he wants contributed from this position anyway. It has three options: Yes, go to load (the specific position) and cancel. If he hits Yes, I am using a property of signal value which should update the controls Boolean true, allowing the sequence. Cancellation and work "to load" perfectly fine, but 'Yes' does not work. I think I need a structure of the event to ahndle the value of the Boolean control 'x' change event, however, the addition of this structure of the event for some reason any even do not allow me to click on the Start button of the procedure.
    Thanks for any help in advance.
    Doug

    Really, you should look into using a State Machine.  You should have really not what happens inside a structure of the event.

    In addition, I would like to use a shift register to store this value instead of a front panel control.

Maybe you are looking for