Trigger and Gate Only Returns One Channel

Hello all,
I am trying to write a VI that will run in the background and start writing some data to a file when it detects a signal. For detecting the signal, the VI uses the "Trigger and Gate" express VI to see when the input voltage goes above a treshhold. Then I plan to write whatever data comes out of the "Triggered Signal" output.
There are 8 channels, with the 6th one being the channel that is being checked for a signal. I have configured the "Trigger and Gate" express VI to trigger when that channel reaches 0.01 V and it does trigger when that happens. However the problem is that the "Triggered Signal" output only contains data for the first channel, and I want it to contain all of the channels.
I don't have access to the device that will be sending the data right now, so I am testing the VI using the "Read From Measurements File" express VI. It reads from a file that contains data that I saved from the device previously. When I set the the "Retrieve segments of specified size" for the express VI, so I can see how it progresses, I get the error I mentioned above. When I set it to "Retrieve segments of original size" (the file contains only 1 segment, so it reads all data), everything works as expected.
Any ideas as to what I am doing wrong?
I attached the VI with some sample data.
Attachments:
data.csv ‏4834 KB
trigger-and-gate.vi ‏112 KB

Hi krizka,
There are two really good examples that can be found using the NI Example Finder (help -> find examples). These are under Hardware Input and Output -> Analog Measurements -> Voltage  
Cont Acq&Graph Voltage-Int Clk-Analog Start.vi
Cont Acq&Graph Voltage-Write Data to File (TDMS).vi 
These will give you a good start point. Please feel free to ask if you have any questions
Joe Daily
National Instruments
Applications Engineer
may the G be with you ....

Similar Messages

  • How come Java methods can only return one variable?

    Hi,
    I am just curious, how come C/C++/Java methods/functions can only return one argument but can accept many parameters.
    I know that the workaround is to return an object, but sometimes creating a class is just too much overhead.
    Thank you in advance.

    Hello,
    It's an interesting discussion. To get the full answer to your question, you'd have to consult the library and find books on programming language design and implementation.
    I believe the tradition goes all the way back to the first programming languages having subroutines/procedures/functions/methods in them: you can return nothing at all (void i Java) or a single value. The need for returning a single value, I guess, comes from the wish to embed calls in arithmetic expressions:
      res = 2 * someObject.foo(x) - anotherObj.bar(a,b);To my knowledge, few languages allow you to return more values. One that does is BETA (see www.daimi.au.dk/~beta/). Though not indispensable, it's convenient sometimes. I don't know why it's not more widespread.
    Yours,
    Ole

  • Computer only plays one channel of audio

    I use an HP Sleekbook 14 PC and recently it stopped playing out both channels of audio. I only get one channel. Any easy fixes?

    Hello, @festerdude 
    Welcome to the HP Forums.
    It appears you've lost audio. I will try to help you with this.
    No Sound from the Speakers (Windows 7)
    No Sound from Speakers (Windows 8)
    Follow the document for the version of Windows installed on your notebook.
    Make sure that you've updated the drivers, use the HP Support Assistant for this.
    Please let me know the results and if you run into any issues.
    Thank you for posting on the HP Forums.
    I worked on behalf of HP.

  • Sequence only has one channel of sound

    I have a few sequences that I have added to a master sequence and only have one channel of sound in the master sequence.
    In the actual sequence of each sequence that was added I have 2 channels of sound.
    What would correct this issue?
    Or does cut and paste everything in each sequence into my master sequence work better?
    David

    re: the decklink comment - that was directed to the thread jacker ... lol.
    re: cloned system drives. Updating does not create a clone automatically. It is something you have to do. In the interest of locking the barn door after the paddle has been lost upstream - get a firewire drive as large as your system drive. Download a copy of Carbon Copy Cloner (shareware) and when your system gets working again, Clone the working drive to the firewire drive. This is your insurance when you update the OS, QT and/or any of the FCS pro apps.
    Once you have a clone, if your update goes wrong, you can copy the clone back over the bunged installation and be back up and running within an hour or so.
    Regarding FCP 6.0.4, perhaps someone archived a version (or you can find it on the FCP updates page). If you use Software update, it will want to install the most recent version.
    x

  • FCP only capturing one channel. what's up with that!?

    in FCP 7 while i am logging and capturing HDV footage off of my canon XLH1, only one channel of audio is captured. originally the audio was shot using 2 separate channels, in fact, i can hear both channels playing back (each on their own sound level/they are not mixed) while the capture is happening.. but when i'm done, FCP has only captured one of the channels.
    how can i resolve this problem?

    in my capture bin, after i've captured the clip, it shows that only one audio clip was captured. when i drag it into the timeline, only one audio channel is present.
    my lost channel was on a wireless mic, as was the saved channel.
    fcp is only capturing one channel even when i log other tapes that did not have separated audio channels.
    i'm guessing there is some setting that is now off while i capture, because it used to capture audio just fine last week.

  • Only getting one channel of audio with mic HELP

    I had been using Garageband with the built in mic to do my podcasts. I just got some real gear.
    Here is what I got... M Audio USB fast track, MXL V63MBP running on 10.3.9
    I am only getting one channel of audio through the mic. I have the settings on the mixer right and I have gone in the sound preferences and made sure it was right.
    On the track in garageband, I made sure that the real instrument settings were set to Stereo. I have been messing around with this thing for an HOUR and I am still only getting one channel of audio. I've done everything I've been able to come up with in google and still nothing works. If anyone has any ideas ,that would be swell because I'm beginning to think that the crappy built in mic on my mac is looking really good about now.

    You're welcome.
    The common confusion is that 'Stereo" means two speakers and "mono" means one. Stereo actually means two different signals going to the two speakers. Since a Mic is a mono input device, you set the track to mono so that the same sound comes out of both speakers. Enjoy --Hang

  • I am trying to restore my old Macbook Pro data using Time Machine on a new Mackbook Air from external hard drive, but when I install I get two different loggin accounts and I only want one loggin account

    I am trying to restore my old Macbook Pro data using Time Machine to a new Macbook Air from an external hard drive, but when I restore I get two diferrent loggin accounts and I only wnat one loggin account to access all my data/files?

    This web site might answer all of your Time machine questions:
    http://pondini.org/OSX/Home.html
    Ciao.

  • Apple IDI am trying to update my IPAD and it gives me a message when I put my email address in:The apple ID is already being used?? I set my Iphone up yeasterday and I only have one email address and one account how do I use it for all my devices?

    I need some help I set my IPhone up yesterday and now I am trying to set up my IPad but I only have one Itunes account and one email but the IPad error message states "The apple ID is already being used" I dont know how to get passed this and my family and I only have one account and we all have IPhones now I dont want them to update if we cant all use the same account. Please help with ideas!!!

    Try here:
    http://support.apple.com/kb/HT4895
    Apple IDs and iCloud)

  • I recently got a iphone and i gave my daughter my ipod and we only have one apple id, is there a way to manage this so I don't see all my daughters imessages?

    I recntly got a iphone and i gave my daughter my ipod and we only have one apple id, is there a way to seperate the two so I don't see her instant messages? or do we have to have seperate apple IDs?

    Create a second Apple ID for a separate iCloud account. You can still share the Apple ID for iTunes purchases, but separate for the cloud.

  • Database 'TEST' is already open and can only have one user at a time.

    Hi all,
    Could some help on this issue as per urgency!
    Database 'TEST' is already open and can only have one user at a time.
    I also tried this command but having the same error, please let me know how to troubleshoot this issue
    Use Master
    GO
    Select * from master.sys.sysprocesses
    Where spid > 50
                And dbid=DB_ID (‘StuckDB’))  -- replace with your database name
    Thanks

    Hi Tony,
    sorry got the same error again, it can't allow me sp_who2 as well
    I tried above command got the following error
    Changes
    to the state or options of database ‘TEST’ cannot be made at this time. The database is in single-user mode, and a user is currently connected to it.Msg 5069, Level 16, State 1, 

  • Purchased CC for business and can only assign one user. How can I assign more users to have it on all 4 computers in the office?

    Purchased CC for business and can only assign one user. How can I assign more users to have it on all 4 computers in the office?

    Hi there
    You would need to purchase a seat for each user.
    What you currently have is 1 seat = 1 user.
    Kind regards
    Bev

  • TS2988 I had to reset my phone and I only have one of my ringtones I had 4.. Why'd it delete 3 and not the last one and now I can't get em back without paying for them again!!! What the **** is up with that??

    I had to reset my phone and I only have one of my ringtones I had 4.. Why'd it delete 3 and not the last one and now I can't get em back without paying for them again!!! What the **** is up with that??

    Yup, your question and Diane's answer helped me also. Tho' I had had problems before getting into the iTunes store I always managed to find a way. Today they had me blocked cold with the "Update to 10" advert no matter what I did. Other questioners are being told, incorrectly as it turns out, that they have to update their OS to accomodate iTunes 10 and upgrade to iTunes 10. I did the download which did not take up much more room on my crowded old hard drive and now I'm back in business.

  • HT5622 Is there any way to delete my apple id because i currently have 3 and i only need one. please help

    is there any way to delete my apple id because i currently have 3 and i only need one. please help. thanks

    No. Apple IDs can't be merged or deleted.
    (87219)

  • HT5517 I cannot see my Apple TV.  I have 2 of them and can only see one.  Ideas?

    I cannot see my Apple TV with airplay.  I have 2 of them and can only see one.  Ideas?

    Welcome to the Apple Community.
    Try the following steps, check whether things are working after each step where appropriate, before trying the next.
    Check AirPlay is turned on on the Apple TV (turn it off and on if it already is)
    Check that both devices are on the same network (Settings > Wifi, on the mobile device and Settings > General > Network, on the Apple TV).
    Restart the Apple TV (Settings > General > Restart).
    Restart the Apple TV by removing ALL the cables for 30 seconds.
    Restart your router.
    Restart your mobile device.

  • Airplay mirroring is taking very long to load and is only showing one static view then it crashes

    airplay mirroring is taking very long to load and is only showing one static view then it crashes.
    I am tring to mirror ipad2. I just upgraded to IOS5. Is it an apple TV problem or an Ipad2 problem?
    What should I try to fix the problem?

    I think i found the solution.  I got mine working. 
    Reboot the iPad by holding down the Home button and power button at the same time for 6 seconds.  The screen will turn black, apple logo will appear, and it will restart. 
    Then restart the Apple TV.  (I just unplugged the power)
    Then restart your wireless router.  (again, I just pulled the plug on it)
    After doing that, i tried the mirroring again, and it worked great.  As soon as I turned it on, it appeared on my TV and is working very quickly.  (well, everything I do on the iPad is delayed on the TV by half a second)

Maybe you are looking for

  • Some basic NW questions?

    Hi All,          I have a few elementary doubts in SAP NW could you please help me solve it? 1) Where is SAP NW installed? Is it installed on WEB AS which inturn is on Application layer of R/3? 2) Where is WEB AS installed? 3) WHere are all the modul

  • No poster frame displayed on music videos

    Hi all, I have a 60 GB iPod video with cover art enabled and can see cover art when playing music. When playing music videos from the music side, I get no cover art. I understand that you're supposed to see the "poster frame" that you can change in i

  • Best Location for dll's

    In a plugin type app, where would be the best place to put dll's + other resource files that the plugins may depend on? I know in order to use System.loadLibrary("somefile.dll"), somefile.dll would need to exist in java.library.path but there are sev

  • My apps don't run any more, they just launch and close

    I have a 3gs, and about 10 days ago I upgraded to 4.3.3. On Saturday, 5/13/11, I was able to use all of my apps. On Sunday when I run any of my non - default apps stopped working. They would launch then close within 1/4 second. This occured for all o

  • USB Stick Extremely Slow

    I installed and setup Developer edition of Solaris. Everything works wonderfully, except the USB drive. It is extremely slow. It worked fine under Linux on the same machine before and it is a USB 2.0 stick and port. Any ideas? Thanks