With single trigger, I want to acquire two channel in sequence

I wanted to observe the sequence of  effects on more than two channels with respect to a single trigger input. And also I wanted to measure each channels with different " number of samples". For example Firstt channel with 10 samples and second with 500 samples. How I can implement this on PCI 6034 and USB 6008 DAQs 

The 6008 has only very basic functionality.
I would say to achieve the results you want you will need to add multiple channels to a single task, all at the same rate, and only extract the data you need.
That way all channels will be synchronized.
I don't think the 6008 can even do correlated digital-analog I/O or trigger off an input channel.
I don't have any experience with the PCI 6034, but if you only need 500 samples then the method I mentioned above should work regardless.
Troy
CLDEach snowflake in an avalanche pleads not guilty. - Stanislaw J. Lec
I haven't failed, I've found 10,000 ways that don't work - Thomas Edison
Beware of the man who won't be bothered with details. - William Feather
The greatest of faults is to be conscious of none. - Thomas Carlyle

Similar Messages

  • Error in sql server with a trigger (I want to display a customize message, when the user left a blank field or null) How can I do?

    How I display a customize message(with a trigger)when a user left a blank field? I want to the stop the insert statament if the user left  the status field in blank. I create a trigger but now I can't enter a row, i used an instead trigger
    too but doesn't work. I want to display a customize message when the user left the
    status field in blank or null. 
     I have the following code:
    CREATE TRIGGER [dbo].[BLANKFIELD] 
    ON [dbo].[Status] 
    FOR INSERT 
    AS 
    BEGIN 
    IF (SELECT COUNT(*) FROM inserted WHERE Status IS NULL) =1
     PRINT 'Please Fill the Status  field is required'
    Rollback;
    END 

    I agree with other comments that you should do this with specifying that the column is NOT NULL to prevent it from being NULL and a constraint if you don't want it to be blank (spaces or the empty string - note that the empty string is not the same thing
    as NULL).
    But for completeness, the reason your trigger does not ever allow you to enter a row is the code
    IF (SELECT COUNT(*) FROM inserted WHERE Status IS NULL) =1
    PRINT 'Please Fill the Status field is required'
    Rollback;
    Since you don't have a begin/end block after IF, the only conditionally executed statement is the one immediately following the IF (that is the PRINT).  So the Rollback is always executed whether or not the IF is true and so all updates are rejected.
    So if you were to do this in a trigger you could do something like the following
    CREATE TRIGGER [dbo].[BLANKFIELD]
    ON [dbo].[Status]
    FOR INSERT
    AS
    BEGIN
    IF EXISTS(SELECT * FROM inserted WHERE Status IS NULL)
    BEGIN
    PRINT 'Please Fill the Status field is required';
    Rollback;
    END
    END
    (As José noted, there can be more than one row in the inserted pseudo table, so you don't want to test whether the COUNT = 1, instead just whether one or more rows exist where the Status  is null.  If you want to prevent Status is NULL, or all
    spaces, or the empty string, then your IF statement would be
    IF EXISTS(SELECT * FROM inserted WHERE ISNULL(Status, '') = '')
    Tom

  • HELP! (how to acquire two channels via gpib?)

    Hi,
    I have the following problem:
    I have a LeCroy 4 channel OS connected via GPIB to my PC.
    I need to acquire 100ms of data from two channels simultaneously, triggering
    the event with a third channel.
    I have installed the Labview-IVI drivers for my OS, but looking at the
    application's example I find only a one-channel acquisition example, and I
    don't know how to change them in order to do a two-channel acquisition.
    (I' m able only to make sequential acquisitions....).
    How can I syncronize the read waveform blocks?
    Please help me,
    Many thanks
    Andrew

    Since you have an IVI driver for the scope, you can use the IVI Oscilloscope class driver. Do all of the initialization and configuration for acquisition, channel, and trigger (under the configuration palette). Under the measurement palette, you can do an IVI Scope Read Waveform for one channel, and then do a an IVI Scope Fetch Waveform. The read initiates an acquisition and the fetch returns a waveform for any other enabled channel without doing another acquisition. Both the read and fetch return an initial x relative to the trigger and x increment in seconds so its easy to get the data you need from the waveform arrays. Good luck.

  • What is the maximum number of samples that can be acquired with a single trigger using PCI-6036E DAQ card?

    1. My PCI-6036E card has a FIFO of 1024 bytes in AI. Maximum how many samples can be acquired with single trigger for digitizing a waveform?
    2. PCI-6036E DAQ card has got a AO with 10ks/s update rate? Can I generate a pulsed output with the AO of this card? I need a pulse of, say, 5 V and 1 kHz frequency.

    Giri,
    1.The trigger is usually for enabling the acquisition. I mean, when it is logic zero, you acquire nothing; however, when it is logic one, you start acquiring your waveform,and you can acquire continuously without having to worry about how many samples, unless you want to set your program for doing so. You can acquire continuously by implementing buffer acquisition. Finally, the FIFO that is in the board will not affect the buffer acquisition.
    2.Yes, you can do that! You can generate your 5V signal with that specific frequency, and you should not have any problems, because the freq fits in the update rate.
    I hope this information is helpful.
    L Aguila
    Applications Engineer
    National Instruments

  • The same file with the same name need to call two RFC's with the sequence

    i have to pick up the same file with the same name  and call the two RFC in sequence
    scenario.i have xxx.txt file.file should be proces first calling the first rfc .
    I created two different communication channels
    for the first sender file communication channel i should not use processing mode archive,delete,Test
    and only option is set read only.
    if i set the read only the file ..then i can not use the same file again to call second RFC.
    how we can acheive the above scenario?
    Regards,
    Hyma

    If you want to file need to be picked up twice in same folder, it seems it is hard for PI adapter to achieve it, you should look for API's that control adapters availibility.
    But if you have different folder, then it make your scenario simpler since you can process first time, then output to another folder, configure another adapter to pick up from different folder.
    Regards
    Liang

  • Unable to acquire 4 channels (2048 samples to be read).PCI 7030/6040E

    I am using the PCI 7030/6040E DaQ card (Labview 6.1, Windows 2000,Pentium).I want to acquire 4 channel data (2048 samples from each channel)at 6.5kS/s Sampling Rate.When I do this using AI Acquire Waveforms.vi the program gets stuck.When I use continuous buffered acquisition using intermediate VIs, then data over write error occurs.(I am taking FFT of the data and plotting the data as four Waterfalls using Intensity Chart.).It says that you are not reading data from the buffer as fast and so overwriting occurs.How can I solve this problem.Can I get data at this rate using this card ?If so,what should be the buffer size etc? (I want continuous acquisition).

    thanks.i am attaching the code,Buffered.vi and non_buffered_ni.vi.both does not work.the second one gets stuck and the first one gives some overwrite error.Actually what I want is the first one,buffered.vi,because I want continuous acquisition.the second one i have tried to see whether it will work.as i have told,i want a sampling rate of 6500 samples/sec and i want to take 2048 samples from each channel to take FFT and plot waterfall.hope this gives a clear picture.
    Attachments:
    Buffered.vi ‏183 KB
    non_buffered_ni.vi ‏148 KB

  • Question-DAQmx: Using multiple channels on a single device with a trigger

    The purpose of the attached VI (Switching_Controller.vi) is to wait for a trigger signal from the input and output a pulse whenever it occurs. However, at the same time I want to output and read a single sample from another input and output channel pair (behavior in Main_Controller.vi). I was planning on doing this in two parallel subvi's but I am running into the common error -50103, "specified resource is reserved". I understand that in order to address this issue I need to compress all output channels and all input channels into just two tasks. However, I am having trouble addressing the issue of the trigger, since I want the second set of inputs and outputs to happen continuously and the trigger forces the task to a certain rate of repetition. Is there any way to run a multichannel task in two parallel subvi's?
    Thanks in advance for the insight.
    Solved!
    Go to Solution.
    Attachments:
    Switching_Controller.vi ‏36 KB
    Main_Controller.vi ‏20 KB

    Hello!
    Take a look at the attached screen shot. I wrote a small (and very simple) example that I think you'll be able to modify for your needs. Basically, we can use the start task to avoid getting resources reserved and break the task apart so that we write 1 sample on n channels and then write a waveform on a another channel. 
    You will notice that I needed to enable the "autostart" function of the DAQmx write for the waveform data by writing a true constant to the vi. This way, the vi will start on its own with a start vi.
    Hope this helps!
    Regards,
    Margaret Barrett
    National Instruments
    Applications Engineer
    Digital Multimeters and LCR Meters
    Attachments:
    multi-channel.png ‏24 KB

  • Two button with single function

    I want to create two buttons for single function and one button for one function. For example, I click button1, the screen will show "clicked1"
    If I clicked button2, the screen will show "clicked2". If I click button1 and then click button2, it will show "two button are clicked". However, it does not work in two button with single function. What is the problem? Here is the code.
    import flash.display.MovieClip;
    import flash.events.MouseEvent;
    var button1:MovieClip=new Button1();
    button1.x=200;
    button1.y=200;
    addChild(button1);
    var button2:MovieClip=new Button2();
    button2.x=300;
    button2.y=250;
    addChild(button2);
    button1.addEventListener(MouseEvent.CLICK, onClick);
    button2.addEventListener(MouseEvent.CLICK, onClick2);
    var isClicked:Boolean;
    var isClicked1:Boolean;
    function onClick(evt:MouseEvent):void{
              isClicked=true;
              trace("clicked1");
    function onClick2(evt:MouseEvent):void{
              isClicked1=true;
              trace("clicked2");
    if (isClicked&&isClicked1){
              trace("two buttons are clicked");

    It works but I want the screen only shows the "isClicked" only when I click button1. But now when I click button1, "isClicked" and "two buttons are clicked" show at the same time.
    import flash.display.MovieClip;
    import flash.events.MouseEvent;
    var button1:MovieClip=new Button1();
    button1.x=200;
    button1.y=200;
    addChild(button1);
    var button2:MovieClip=new Button2();
    button2.x=300;
    button2.y=250;
    addChild(button2);
    var isClicked:Boolean;
    var isClicked1:Boolean;
    button1.addEventListener(MouseEvent.CLICK, onClick);
    button2.addEventListener(MouseEvent.CLICK, onClick2);
    button1.addEventListener(MouseEvent.CLICK, onClick3);
    button2.addEventListener(MouseEvent.CLICK, onClick3);
    function onClick(evt:MouseEvent):void{
              isClicked=true;
              trace("clicked1");
    function onClick2(evt:MouseEvent):void{
              isClicked1=true;
              trace("clicked2");
    function onClick3(evt:MouseEvent):void{
              trace("two buttons are clicked");

  • Hello , can you with a single account creative cloud , install on two computers ? (The one from home and one at work)

    Hello , can you with a single account creative cloud , install on two computers ? (The one from home and one at work)
    This will avoid me lugging around my mac, sorry for my english.
    Margaux, photographer

    Yes, this has been allowed with Adobe applications going back many years.  A program such as Photoshop can legally be installed and activated on two computers at a time for the use of the single licensed user.  You can't install legally on your own and a friend's computer for use by the two different people.  Prior to Creative Cloud, there was an unwritten limit on how many times a given application could be activated, but there is no longer such a limit under CC.  That means you could theoretically install on three or four computers, activating only two at a time, and then deactivating one or both before activating on another computer.

  • I created a form with Single Choice fields, 4 days with times listed. But, I want the user to only be able to choose one time, and the time chosen to be unavailable for other users. How do I do this?

    I created a form with Single Choice fields, 4 days with times listed. But, I want the user to only be able to choose one time, and the time chosen to be unavailable for other users. How do I do this? I have 4 blocks of Single Choice fields in order for the summary page to give me each day in the final report. But, I need the user to be able to make a selection of any day and time and that apointment to no longer be available to future users when they log in. Plus, when the user clicks on the time, they are unable to change their mind and choose another time. Here's the link if you want to see what I'm talking about: 2015-2016 Workload Apportionment Review

    I'm afraid not.    It's not rocket science but you need to do some coding. 
    You'll need to find a script (php) and save it to your local site folder.  Then reference the script in your form's action attribute like so.
         <form action="path/form-to-email-script.php" >
    The input fields in your HTML form need to exactly match the script variables. 
    I'm  assuming you're hosted on a Linux server which uses PHP code.  Linux servers are also case sensitive, so upper case names are not the same as lower case names.  It's usually best to use all lower case names in your form and script to avoid confusion.
    Related Links:
    Formm@ailer PHP from DB Masters
    http://dbmasters.net/index.php?id=4
    Tectite
    http://www.tectite.com/formmailpage.php
    If this is all a bit beyond your skill set, look at:
    Wufoo.com (on-line form service)
    http://wufoo.com/
    Nancy O.

  • Want to add multiple idoc type with single message type.

    Hi Gurus,
    I have a problem. I want to add multiple idoc type with single message type in WE20.
    How we can do this in WE20 or is there any other way to do that?
    Please help me.
    Thanks in advance.
    Srimanta.

    hi,
    basically in partner profile i.e. in we20 , we add details to the receiver / sender port that we have created using we21.
    so what exactly we do in that is that we first use the message type for those idocs that we have created.
    now based on those message type we create a process code. now this is the reason why you cannot apply several message types with the same name in we20... as process code is unque for each message type.
    so thats why you can only assign the same message name to several idocs in we82 and then in we20 define the process code for that message type.
    it will solve your problem.
    hope this will help you!!!
    Thanks & regards,
    punit raval.

  • Multiple Channels with Single Digital Edge Trigger

    I have a simple vi where two analog channels are read in and recorded simultaneously to a lvm file and plotted on a waveform graph. I need a digital edge to post trigger the data acquisition for both channels. 
    I can get this vi to work with one analog channel and the digital edge trigger just fine.
    When I remove the digital edge trigger, I can get the vi to work with both analog channels. Both signals plot on a waveform graph, and record nicely in the lvm file.
    The issue is how I am setting up the digital trigger (see attached).  The program is never entering the while loop. Where am I going wrong?
    Chassis:cDAQ-9172
    Analog Card:NI 9205 (Trigger Source PFI0)
    LabView: 8.6
    OS: Windows XP
    Solved!
    Go to Solution.
    Attachments:
    Analog Input with Digital Edge Trigger.vi ‏52 KB

    Gardma,
     I am going to take a quick guess (I'm lazy and haven't actually tested the code ), but, since it works without the trigger and given that you have it so that the read never times out (i.e. = -1), there is something going on such that the trigger is never generated on the source pin.  Just a thought.
    Cheers, Matt
    Matt Richardson
    Certified LabVIEW Developer
    MSR Consulting, LLC

  • Map two tag with single style JS[CS4]??

    I've tried to come up with solution but still fail to get anything positive if I wanted to tag two tag(consecutive) to one style e.g. see sample code
    <Art>
    <Head1>This first heading</Head1>
    <p>This is <it>first</it> para</p>
    <Head2>This <b>second</b> heading</Head2>
    <body-text>This is body <sup><it>this text should be in italic superscript</it></sup> text para</body-text></Art>
    Sample script code:-
    var myDocument = app.documents.item(0);
        var myPage = myDocument.pages.item(0);
    myDocument.xmlImportMaps.add(myDocument.xmlTags.item("Head1"), myDocument.paragraphStyles.item("Head1"));
    myDocument.xmlImportMaps.add(myDocument.xmlTags.item("Head2"), myDocument.paragraphStyles.item("Head2"));
    myDocument.xmlImportMaps.add(myDocument.xmlTags.item("p"), myDocument.paragraphStyles.item("Para"));
    myDocument.xmlImportMaps.add(myDocument.xmlTags.item("body_text"), myDocument.paragraphStyles.item("Body"));
    myDocument.xmlImportMaps.add(myDocument.xmlTags.item("sup"), myDocument.paragraphStyles.item("Sup"));
    myDocument.xmlImportMaps.add(myDocument.xmlTags.item("it"), myDocument.paragraphStyles.item("Italic"));
    myDocument.xmlImportMaps.add(myDocument.xmlTags.item("b"), myDocument.paragraphStyles.item("Bold"));
    //What else could be here kindly suggest
    myDocument.mapXMLTagsToStyles();
    My requirement is to apply "SupItalic" style at bold character tags
    Mac

    Hi Pankaj,
    This requirement will be achieved only by script, no other way.
    Thanks,
    Praveen

  • Hi, I just wanted to buy two iphones from the apple store usa with a lebanese credit card. Is it possible?

    Hi, I just wanted to buy two iphones from the apple store usa with a lebanese credit card. Is it possible?

    The US Apple Store accepts US-issued credit cards only. And they will ship only to a US address. Whether or not a physical Apple Store would accept a Lebanese credit card I don't know.
    Regards.

  • I want to control two relay, but Labview says I have something wrong with my VI

    From the picture, I have 2 relays to control, they are both toggle on/off type, I want to control them at the same time, but fail to do it.
    I already set digital>multiple channels>single sample> 1D boolean(1 line per channel) and before I run, i pick channel 0 and 1 in the front pannel
    When I run, the program doesnt give error, however, I use voltmeter to test the voltage at port 0 and port 1, they are 5V and steady....which doesnt correspond to the VI i write
    After I hit stop, Labivew says,
    pecified read or write operation failed, because the number of lines in the data for a channel does not match the number of lines in the channel.
    If you are using the Digital Waveform datatype, make sure the number of lines in the digital waveform matches the number of lines in the channel. If you are using boolean data, make sure the array dimension for lines in the data matches the number of lines in the channel.
    Number of Lines in Channel: 8
    Number of Lines in Data&colon; 1
    Task Name: _unnamedTask<4>
    What's wrong with my VI? thank you
    Solved!
    Go to Solution.
    Attachments:
    Capture.JPG ‏56 KB
    BEI Delay.vi ‏30 KB
    relay board testing 2_17_2013.vi ‏22 KB

    thank you here are the VI
    I already picked channel 0 and 1, when i hit run, no error, but volmeter show steady 5V at channel 0...
    WHen I hit stop, labview give me similar errors:
    Possible reason(s):
    Write cannot be performed, because the number of channels in the data does not match the number of channels in the task.
    When writing, supply data for all channels in the task. Alternatively, modify the task to contain the same number of channels as the data written.
    Number of Channels in Task: 1
    Number of Channels in Data&colon; 2
    Task Name: _unnamedTask<E>
    I am using USB 6008
    Attachments:
    relay board testing 2_17_2013.vi ‏22 KB
    BEI Delay.vi ‏30 KB

Maybe you are looking for

  • How to create a playlist in a apsx page

    Hi. I have an aspx page that play a swf movie. I need to automatically play several swf in loop. How can I do that? I set the name of file in this way: quote: <param name="movie" value="filename.swf" /> Can i set multiple name in this way? Thanks

  • Autocomplet selection

    Hello how to write autocomplete select in combo box/dropdown list in javascript autocomplete selction is : if the user enters characters on the keyboard, i want just the list items that match to appear bestregards jaco

  • Mime attachments

    Hello! Can anyone tell me how I can extract an attachment from a MIME message that was put into a String?

  • Iphoto Library in Finder

    For one reazon when I installed Iphoto 2008 with Ilife I deleted the iphoto library from the finder. so when I am trying to download a picture to an Email of course I can't find any picture to transfer. Can somebody help me with this? Also i tried to

  • When converted to RGB, image looks darker??

    in photoshop CS4, I use Adobe RGB (1998) as my working profile. I open a document, I change it's profile from RGB, using "view"-"mode", to anything else, say Lab, and everything is fine up to now, but then I undo the change, and what I get is a darke