Multiple input channels with following start task VIs

Hello everybody
I have this Vi, trying to acquire two input signals. I get the error 50103 which is because of "Concurrently running two or more analog input or analog output tasks".
obviously, I should combine them into one task but here is the problem:
first: I want one of them to be started after the other one. I dont want them to be started atr the same time.. i dont know how to start them sequently on one task..
second: I want to send the pulse from the analog comparison event of the first input signal to the second one. but i dont know how i can do that when im having both channels in one task.
thanks..

Dear  RavensFan
thank you for your responce
about the second question:
once the trigger condition set up has been met an analog comparison event pulse is output from the analog trigger circuitry and is then available to the AI, AO and Counter Circuitry.
then I need this pulse signal as the source of triggering for acquiring another input singnal I will add to my Vi later . if you look at my VI, i have connected a analog comprison event to the second input channel samle clock,,, i'm not sure if i'm doing the right thing here or not..
what i was trying to do is that i want this vi to show me the output signal of the analog comparison event which carries the information about the times that my trigger settings has occured..
actually, in the second inut channel, i wanted to make a graph that shows me the times that my first signal has crossed zero points. (which is obvious in my trigger setting)
Is there any way i dont have to combine my input signals in one task and get rid of the error?
 

Similar Messages

  • How to do register-level programming for NI6025E when I want to acquire single scan incuding multiple input channels?

    How to do register-level programming for NI6025E when I want to acquire single scan incuding multiple input channels?

    Thanks, Alan, I think I indeed need to combine aiex1.cpp and aiex2.cpp. I made a change to Configure_Board of aiex1.cpp  as follows:
    //Call this function to configure board options.
    void Configure_Board(tSTC *theSTC,tESeries *board)
     //Clear configuration memory
     theSTC->Write_Strobe_0.writeRegister(0x0001);
     //Clear ADC FIFO
     theSTC->Write_Strobe_1.writeRegister(0x0001);
     //Writing to Config_Memory_High_Register for channel 1 settings
     board->ConfigFifoHigh.setChannel(0);
     board->ConfigFifoHigh.setBank(0);
     board->ConfigFifoHigh.setChannelType(board->ConfigFifoHigh.kChannelTypeRSE);
     board->ConfigFifoHigh.flush();
     //Writing to Config_Memory_Low_Register for following channel 1 settings
     board->ConfigFifoLow.setLastChannel(0);
     board->ConfigFifoLow.setGeneralTrigger(0);
     board->ConfigFifoLow.setGain(board->ConfigFifoLow.kGain001_0);
     board->ConfigFifoLow.setPolarity(board->ConfigFifoLow.kPolarityBipolar);
     board->ConfigFifoLow.setDither(0);
     board->ConfigFifoLow.flush();
     //Writing to Config_Memory_High_Register for following channel 0 settings
     board->ConfigFifoHigh.setChannel(1);
     board->ConfigFifoHigh.setBank(0);
     board->ConfigFifoHigh.setChannelType(board->ConfigFifoHigh.kChannelTypeRSE);//RSE mode
     board->ConfigFifoHigh.flush();
     //Writing to Config_Memory_Low_Register for following channel 0 settings
     board->ConfigFifoLow.setLastChannel(1);
     board->ConfigFifoLow.setGeneralTrigger(0);
     board->ConfigFifoLow.setGain(board->ConfigFifoLow.kGain001_0);
     board->ConfigFifoLow.setPolarity(board->ConfigFifoLow.kPolarityBipolar);//BIPOLAR
     board->ConfigFifoLow.setDither(0);
     board->ConfigFifoLow.flush(); 
     return;
     and a change to test(iBus *bus):
    do
      uStatus = theSTC->AI_Status_1.readRegister();
      if (!((uStatus & 0x1000) == 0x1000))
        uValue[i] = board->AIFifoData.readRegister();
       i++;
     } while(i<1);
     printf("Value %d is %6.2f\n",0,FindADDouble(uValue[0]));
     printf("Value %d is %6.2f\n",1,FindADDouble(uValue[1]));
    but it doesn't work, why?
    How shoud I do?

  • Multiple Wireless Clients with packetloss - started on Patch Tuesday

    We have a 4402 WLC that has been running 7.0.230.0 code for 90+ days without issue.  There is a mixture of 3502 and 1142 AP's on a campus style complex.  Starting May 15 2012 we have had an influx of calls from the wireless users having major packetloss when on wireless.  The odd thing is that it is not all users and it is only occuring on one of our SSID's  (the most important one).
    So far TAC says there are no know bugs that match this issue in the code.  We dont think it is code either since for months we have been stable.  We have upgraded the wirless drivers on several of the machines running W7 and those seem to be more stable.
    The big question is WTH caused all of these clients to have driver issues when they were fine last week?

    Sean,
    why do you say that it´s a packet loss situation?
    DS

  • Several DAQmx Channels with Start and Clear Task VI's

    Hi,
    I'm trying to read in several DAQmx channels in a while loop. When I just place the channels within the while loop and connect them directly to the read VI's, everything is fine. But I read in the help, that this will slow down my system, because it's opening and closing the task each cycle. So I used Start Task and Clear Task VI's to open and clear them before and after the loop. But now it's only reading one of my channels in, although I wired all of them in exactly the same manner. Anyone has an idea, what I did wrong?
    Thanks,
    Miclas
    Attachments:
    Save&Stop DAQ.JPG ‏87 KB

    You would have seen the error if you had wired up and error indicator.
    You cannot run multiple tasks of the same type (i.e. an analog input) at the same time. What you read about stopping and closing tasks is correct but it was the only way your program could work. What you don't realize is that you can have multiple channels with a single task. If you used a physical channel constant, it would be something like 'dev1/ai0:2' if you had consecutive channels or 'dev1/ai0, dev1/ai2' for non-consecutive. Global channels are done in a similar fashion. You would have 'FSR1, FSR2, Knee Angle', etc.

  • Multiple inputs and outputs using DAQmx VIs

    Hello,
    I am fairly new with the LabView programming language.  I have a few training books that I have been reading, and I have been following online tutorials and reading the forums.  However, I have come to a problem where I don’t see a clear solution.  I am using LabView 2009 (9.0f3) and DAQmx VIs.
    I am using a NI 9172 chassis PLC, with two 9201 AI cards, 9217 AI RTD card, 9472 DO card, 9263 AO card, and two 9237 AI Bridge cards.
    I am reading eight analog inputs with the 9201 cards, two analog RTD inputs with the 9217 card, three digital outputs with the 9472 card, three analog outputs with the 9263, and eight analog inputs with the 9237 cards.
    I wrote a simple program to test one digital output task, two of the analog output tasks, and a single analog input task.  I put all of them in the same while loop, and it worked perfectly.  However, when I add analog input tasks to the same loop, I get an error 200022.    So I tested each sensor individually by changing the channel before each run.  I searched error 200022 and found that this is because I cannot start another analog input task until the previous one ends.  With this said, I don’t know how to acquire an analog voltage in the same task as an analog RTD voltage.  Both inputs take different constants in the start task DAQmx icon.
    Attached is my test program.  It is titled “Test All”. This is the program I used to test the various sensors.  I tested the input sensors one at a time, and it worked fine.  A few tasks are written just to test functionality, and will be added to later.  The data is only displayed on the screen.  I will add triggers and data write to disk functions later.  This program works now, but if I add more analog inputs, it will generate the 200022 error.
    Can someone show me how to correctly write the code for multiple inputs and outputs using DAQmx?  All training materials and tutorials I can find all show a single input or single output, not multiples of each.  Thanks for looking.
    -Randy
    Attachments:
    TestAll-NI.vi ‏32 KB

    Hi RandyC,
    The Knowledge Base article Using Different Types of DAQmx Global Channels in the Same Task goes into a little more depth of what Bryan is talking about, and it also includes some example code to help show what to do.
    Hope that helps,

  • Problems with adding voltage ai channel to an existing task - LabVIEW

    I am using the Cont Acq Strain Samples (with Calibration).vi which ships with LV as the basis for a vi I need to monitor n channels of strain gauges (1/4 bridge type I) combined with another channel of a user defined voltage channel (pressure, temperature etc).  Everything works fine when I use the strain null option but I am having problems when I include the shunt cal option.  I am defining the strain channels then building the strain task using DAQmx Create Virtual channel.vi followed by the strain null opton then the shunt cal option (so far just like the example).  I then have the option to add a user defined voltage input, again using the DAQmx Create Virtual Channel.vi, (selected from a list of predefined configurations).  Everything is fine so far.  I then send the task to the sample clock vi (continuous samples) and then to the DAQmx Start Task.vi then into a while loop where the DAQmx Read (Analog 1D Wfm Nchan Nsamp) resides.  I then display (and record) the acquired waveform signals at a fairly low rate.  If I am only doing the strain null on the strain channels everything is fine but if I have included the shunt cal on the strain channels, the data becomes mixed up or is in some way corrupted that I have not put my finger on yet.  I get no error messages.  Additionally, if I don't include the additional voltage input task and only use strain channels everything is fine.  I have looked at the shunt cal vi's and cannot see any way that adding another channel to the task list can cause this problem.  I am emphasizing that the strain null and shunt cal are done prior to including the voltage ai channel to the task.  I am using an SCXI-1520 (for strain gages) and an SCXI-1121 (oher signals) with a SCXI-1600.   I have also attached the .llb for this.  I am probably missing something basic but sometimes those basic misconceptions can be the hardest to find.  Any ideas?
    Attachments:
    EJL_Cont Acq Strain Samples (with Calibration).llb ‏769 KB

    Yep, something basic.  Apparently in the Shunt Cal subvi the task is executed to acquire a set of actual strain readings which are then used to calculate a percent of theoretical strain values.  Anyway, the task is started and then stopped (not deleted).  Apparently it is taboo to add a channel to a task that has already been executed, which I think makes sense.  I'm just not sure why I didn't get an error message istead of the thing going along its merry way while spitting out garbage.  To correct this I simply broke the shunt cal vi up and executed the part that ran the task after adding the non-strain channel to the task.  Works fine now.

  • Multiple input limit range from multiple channels

    Hallo I´m kinda new to LabView and need some information,
    I use a Multifunction DAQ 16 Bit with the following specifications:
    1. M-Series
    2. NI PCI 6250
    3. Operated by Microsoft XP
    My problem:
    * I would like to use 4 analog input channels from my M-Device to measure 4 diffrenttypes of voltage. The resolution from each channels varying from +/-10, +/-5, +/-1, etc (those are the possible range if i dont misunderstood the Data sheet from NI). I have tried to use a daqmx create task in a For-Loop so that vi runs only 1 input limit for 4 times and then put all the signals in the daqmx create channels.
    The vi does execute the measurement but I dont get the right scale that I want.
    Thanx for the info
    Message Edited by Piiwee on 11-29-2005 08:40 AM

    Hi Piiwee,
    You are doing just great with your English.
    I got an idea as to what your problem is.
    Just Have a look at attached VI.
    it should solve your problem.
    I have used chart instead of graph
    I have stacked the 4 plots one over other and auto scaled each(  you can also set scale of each graph by going to properties)
    Hope this helps
    Regards
    Dev
    Attachments:
    DAQ channel acq_chart.vi ‏85 KB

  • Does multiple instances of DAQmx start task result in error?

    I am trying to read voltages from pressure transducers and LVDTs in two separate While Loops. But when running the program there is an error regarding DAQmx Start Task.vi. So I was wondering if multiple instances of DAQmx Start task results in error. I have attached the vi.
    Thanks
    Attachments:
    IsoConsolidationDAQMAX02.vi ‏140 KB

    Thank you for the reply. New to Labview so I didn't know that we had to search using the error code, I tried searching using text though. Will do that from the next time, thanks.
    I do not have the problem with the write tasks but only with the read tasks. Right now I have one start task for all the input from the pressure transducers and LVDTs and three start tasks for the three analogue outputs and the program seems to run fine.

  • How do I create an xControl with multiple inputs and outputs?

    Hello,
    i am trying to write a new Xcontrol Element. In the data model I can create data types using the cluster to create compound types, eg an int and an int array. But how do I create an xcontrol which has multiple data inputs and outputs?
    Kind Regards

    Limping_Twerp wrote:
    Alright: I see: An xcontrol is either an input OR an output. How do I achieve an output? Secondly: So you are saying the only Elements that can have multiple inputs and outputs are VIs?
    Can you take a few steps back and explain what you are actually trying to do. SubVIs and Xcontrols have nothing in common and it is not clear why you even try to compare them side by side (e.g. in terms of the number of connectors).
    Your questions about input or output tell us that you seems to have some misconceptions about xcontrols. Xcontrols are like regular controls, except they have some built-in intelligence that you can program. Most front panel object can be either controls or indicators and the same is true for Xcontrol. You create an Xcontrol, and after placing it on the front panel you can decide if it should be a control (where the code reads the value) or an indicator (were the code writes values to it). When you define the xcontrol facade, you also need to program how the visuals change if it is changed from control to indicator or vice versa.
    As a first step, you should opend the example finder and look at some xcontrol examples.
    Again, what are you actually trying to do? 
    LabVIEW Champion . Do more with less code and in less time .

  • Firefox will not re-start without "ending process" with Windows Vista Task Manager.

    Error Message:
    “Firefox is already running, but is not responding. To open a new window, you must first close the existing Firefox process, or restart your system.”
    Have to start Task Manager and then end firefox.exe process.
    Thanks all.

    The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
    Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
    To Reset Firefox do the following:
    #Go to Firefox > Help > Troubleshooting Information.
    #Click the "Reset Firefox" button.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
    Did this fix your problems? Please report back to us!

  • What's the best way to sample multiple AI's with different sampling rates under one task?

    I'm using a PCI-6221 card and CVI 7.1.
    I have a tri-axis vibration sensor and two other pressure transducers.
    I want to take 10k samples from each vibration axis at 80 kHz. This is
    possible by configuring the scan rate of the "vibration task" to 240
    kHz. (The card maximum is 250 kHz).
    I want to take 1k samples from each pressure transducer at 250 kHz. This happens very infrequently.
    Each measurement is required by a separate task.
    I thought I could do this by setting up three finite tasks (1
    vibration, 2 pressure), but DAQmx won't let me run more than one AI
    task at a time. I've read other posts here, and I realize I have to
    add/remove physical channels on-demand.
    What is the best way to optimize this setup so that I'm not hogging up system resources?
    Should I do the following?
    1. Stop the task
    2. Remove the vibration channels from the task
    3. Add in a pressure channel
    4. Configure the pressure channel
    5. Start the task
    6. Take the pressure samples
    7. Stop the task
    8. Remove the pressure channel from the task
    9. Add in the vibration channels
    10. Configure the vibration channels
    11. Start the task
    Also, the vibration portion is running in finite mode, but I'm looping
    it. Should I switch it to continuous and run the "DAQmxReadAnalogF64"
    to sample the latest 10k samples. (If the task is continuous, would I
    pull the latest 10k samples, or would I pull some old buffered samples
    instead?)
    Thank you,
    Nobody

    Hello Nobody,
    If you configure your task timing to acquire a finite number of
    samples, then you can only read the number of samples that you
    specified in your configuration.  Once you try to read more
    samples, you will receive the error you are seeing.
    If you configure your task timing for continuous acquisition,k then you
    can read samples indefinitely.  Any given DAQmx Read will read the
    oldest unread samples in the buffer.
    If you are going to be switching between different tasks, you will definitely need to stop one before you start the other one.
    I hope this helps!
    Eric
    DE For Life!

  • New ATA channel with an exclamation point appear in the device manager at each start (when no new device has been installed)

    Good morning,
    My desktop, (Win7 64, AMD cpu/ Gigabyte mother board) , started to generate strange problems such as my laser usb printer not reachable even after disinstal/reinstall.
    I took a look in the device manager, and found 2 ATA channel with an exclamation point, "drivers not found'. I also found a USB universal controller with the same exclamation point and the same error.
    I changed nothing in terms of Bios since the machine was built (AHCI, Raid not active). The main drive is a SSD on primary SATA port, classic drive on the second port.
    I deleted the 3 items, the printer started to work again.  They reappeared after the next reboot.
    Weird thing: it looks like the problems appeared after connecting/disconnecting a Nikon camera to one of the usb port (identified as a mass storage device).
    I ran multiple scans (root) in case a virus would have generated the problem, negative.
    Last point (can't tell if it's related or not), my browsers started crashing randomly.
    Thank you

    Hi,
    I'd ask your question in the Windows forums here:
    http://answers.microsoft.com/en-us/windows
    Or perhaps over in the Win7 IT Pro forum here, since you seem fairly comfortable:
    http://social.technet.microsoft.com/Forums/en-us/home?category=w7itpro&filter=alltypes&sort=lastpostdesc
    This forum is meant for reporting issues with the forums themselves, not product support.
    Good luck.
    Don't retire TechNet! -
    (Don't give up yet - 12,950+ strong and growing)

  • Problem with Set/Get volume of input device with single channel

    from Symadept <[email protected]>
    to Cocoa Developers <[email protected]>,
    coreaudio-api <[email protected]>
    date Thu, Dec 10, 2009 at 2:45 PM
    subject Problem with Set/Get volume of input device with single channel
    mailed-by gmail.com
    hide details 2:45 PM (2 hours ago)
    Hi,
    I am trying to Set/Get Volume level of Input device which has only single channel but no master channel, then it fails to retrieve the kAudioDevicePropertyPreferredChannelsForStereo and intermittently kAudioDevicePropertyVolumeScalar for each channel. But this works well for Output device.
    So is there any difference in setting/getting the volume of input channels?
    I am pasting the downloadable link to sample.
    http://www.4shared.com/file/169494513/f53ed27/VolumeManagerTest.html
    Thanks in advance.
    Regards
    Mustafa
    Tags: MacOSX, CoreAudio, Objective C.

    That works but the the game will not be in full screen, it will have an empty strip at the bottom.
    I actually found out what's the problem. I traced the stageWidth and stageHeight during resizing event. I found out that when it first resized, the stage width and height were the size with the notification bar. So when I pass the stage into startling, myStarling = new Starling(Game,stage), the stage is in the wrong size. For some reason, I can only get the correct stage width and height after the third resizing event.
    So now I need to restart Starling everytime a resizing event happened. It gives me the right result but I am not sure it is a good idea to do that.
    And thanks a lot for your time kglad~I really appriciate your help.

  • LSMW datamigration material master with multiple distribution channels

    Hi,
    We plan on using the LSMW to migrate our customer's material master to a ECC 6.0 system.
    Currently we use the BMM00 and BMMH1 structures, but there I can specify only one distribution channel.
    Does anyone know how to include multiple distribution channels in LSMW material master migration?
    Thanks in advance for your support.
    Edited by: Mohammed Qasim Malik on Jan 21, 2008 10:01 AM

    you need an extra record in your source per distibution channel.
    Alternative you can create the extra record with a small Abap  code in LSMW in section __END_OF_RECORD__
    There you habe in standard the code:
    transfer_record.
    just add after this statement a statement that gets the additional wanted distribution channel into the  distribution channel field.
    BMM00-VTWEG =  'xx'.
    transfer_record.

  • When I close Firefox, then later want to start up again, I get I message that Firefox is still running. With "START TASK MANAGER", I need to close Firefox in order to start again.

    When I close Firefox, then later want to start up again, I get I message that Firefox is still running. With "START TASK MANAGER", I need to close Firefox in order to start again.

    I have the same problem. Firefox won't unload regardless of how long I wait. Literally hours ... I must go in and 'end the process'. This has been a real hassle for a while now. Even considered giving up on firefox. Please look into this! An additional problem; I have to run firefox to get the updates, but I can't get the updates to take because I can't get firefox to unload so I can restart it.

Maybe you are looking for

  • Setting control bar to resume auto-play (Captivate 6)

    Hi, I am currently using Captivate 6 to create an eLearning course.  We have decided to display the bottom control bar to allow flexibility for the student to move between screens in each lesson.  Currently if the student uses the progress arrow in t

  • Cost Oracle BI Apps

    Hallo, I'm doing my graduation project about TCO for Oracle BI Apps. I need to know all the cost items. Think about technical maintenance, license and that kind of things. not the amount but the parameters. Does anybody know more of this? I have for

  • Does Apple TV output audio via both HDMI and Toslink at the same time?

    I would like to know if Apple TV outputs audio via both the HDMI and Toslink ports AT THE SAME TIME...  Ideally, I want to use it in my main zone connected to my TV via HDMI and convert the Toslink signal to analog to be exported to Zone 2 on my rece

  • WCS license AP count

    Hi guys, I have one question regarding licensing on WCS. We have a license for 100 AP-s, and our WCS in on 99% of capacity. What would happened if we add 1 more AP to WCS (101 total) ? Will the WCS generate an error, will it delete old added AP-s to

  • How to edit or delete app.mgr. installation log

    Hi, all can i edit or remove the installation log file in my n85, how?? Thank