PXI question: four analog ouput cards to start-trigger simultaneously

Hi all,
Here's the situation:
We have built a system that ouputs 24 analog signals using a PXIE-1073 chassis.  It has 5 slots:
Slot 1:          Internal
Slot 2:          Empty
Slot 3:          Empty
Slot 4 (Hybrid): PXI-6733
Slot 5 (Hybrid): PXI-6733
Slot 6 (Hybrid): PXI-6733
As you can see, it has three analog output cards, which occupy all three of the hybrid slots.  And we have two empty slots. 
Our LabVIEW code is designed to output analog signals on all three cards (at the same rate) using three DAQmx tasks which start-trigger simultaneously.  To do the triggering, we setup two of the tasks to start-trigger off of the first task (master-slaves style).  In this manner, we can get all outputs to start at the same time.  Its actually quite simple.
My question:  I want to add another output card.  But I am fairly I can only use hybrid slots for my application.  I remember working with NI and they told me I had to use the hybrid slots to be able to get the triggers routed automatically along the backplane.  Our code actually failed (error) when we used the non-hybrid slots (I forgot the error code).
Is there any way to add another PXI-6733 and have it trigger with the other cards?

I can't speak to the chassis, but I'd warn you that if you want your tasks sync'ed, you'd better share a sample clock too and not just a start trigger.  The onboard clocks will have a tolerance (often ~50 ppm, dunno for your 6733's)  and their sampling instants will drift apart from one another over time.  In fact, I rarely both with triggers at all for syncing tasks & boards.  I'll usually *only* share a sample clock, and then make sure I start all the slave tasks before the master whose sample clock is being shared.
Good luck on your real question though...
-Kevin P

Similar Messages

  • Analog comparison/start trigger

    Is it possible to use the analog comparison (typ under start trigger) with a continous task that I want to start immediately?  I want to take samples from the get go, but then generate the analogcomparisonevent pulse when the values leave an analog window.  The way it seems so far is that it will only work if I use that as the start trigger, but then I don't recieve samples until that trigger is reached.
    Any help is appreciated.

    Hi again Michael,
    Here's what I'd do in your case:
    1.  Set up the analog input task to be continuous.
    2.  Set up the quadrature position encoder to be hardware timed as well, but use the AI Sample Clock for the clock source.  This way, you will still have one counter left and your AI and CI tasks will be synchronized.
    3.  Set up a "dummy" Counter Output task to generate a single pulse that will be retriggerable.  You should be able to use the analog trigger from the AI channel or you can route the signal externally to the APFI line and use that to do the triggering.  You can use either the analog comparison event or the pulse generated on the Ctr1InternalOutput terminal as you are generating a retriggerable pulse anyway.  Either one should work.
    Let me know if you have questions about this.
    Regards,
    John Bongaarts
    AE Specialist - Test Products

  • Analog start trigger for x series card gives an error?

    Hi everyone,
    I am having some trouble setting up an analog start trigger for DAQ using an x series PCIe card (6351)... Attached is my configuration... After reading the manual (http://digital.ni.com/manuals.nsf/websearch/08B4B2E1B5373B94862579BA006E6BAB), my understanding is that AFPI0 is a compatable analog trigger for the device; however, the vi will not run and I get an error... Although if I change the soruce to "Force" (which is ai0) it works..
    Also, the device document says (pg 11-8):
    "To improve trigger accuracy, do the following:
    • Use an AI channel (with a small input range) instead of APFI <0,1> as your trigger source. The DAQ device does not amplify the APFI <0, 1> signals. When using an AI channel, the NI-PGIA amplifies the AI channel signal before driving the analog trigger circuitry. If you configure the AI channel to have a small input range,"
    To me, this implies that I probably should use "Force" as the trigger soruce anyway (note that the instrunment is used to acquire data load cell data generated from human muscle contractions; so slew rates are relatively low compared to signals acquired from industrial tests).
    Could someone please comment on these issues for me?
    Regards,
    Jack
    LV2010
    Attachments:
    Untitled 1.vi ‏22 KB

    Ok... I think I have answered by own question... APFI0 needs a low impedence signal to drive the terminal... I mistakenly thought this was an internal terminal or trigger...
    So I should stick with using the first analog signal acquired in my DAQ device (e.g. ai0) as the trigger source?
    Regards,
    Jack
    LV2010

  • HT1379 A flashing question mark appears when I re/start my MacBook Air 2013. At first, I pressed Power & Option button and it recovered from Internet. Then, four options appeared but none of them are helpful. Could u please help me to solve it asap?

    Hello,
    A flashing question mark appears when I re/start my MacBook Air 2013. Then, I pressed POWER & OPTOIN buttons and internet options appeared for internet recovery. After internet recovery, the OS X utilities appears with four options (Restore from Time machine, Reinstall OS X, Get help online and Disk utility). But none of them seemed helpful. On the last option Disk utility, the icon created only with 33KB and other disk 1 Mac Os X Base system. On First Aid, the icon Repair disk is disabled. So I could not click on repair disk. Could you please suggest me how to solve this problem asap? Thank you so much for your help in advance!

    You can try the following:
    Install or Reinstall Lion/Mountain Lion from Scratch
    Be sure you backup your files to an external drive or second internal drive because the following procedure will remove everything from the hard drive.
    Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    Erase the hard drive:
      1. Select Disk Utility from the main menu and click on the Continue button.
      2. After DU loads select your startup volume (usually Macintosh HD) from the
          left side list. Click on the Erase tab in the DU main window.
      3. Set the format type to Mac OS Extended (Journaled.) Optionally, click on
            the Security button and set the Zero Data option to one-pass. Click on
          the Erase button and wait until the process has completed.
      4. Quit DU and return to the main menu.
    Reinstall Lion/Mountain Lion: Select Reinstall Lion/Mountain Lion and click on the Install button.
    Note: You will need an active Internet connection. I suggest using Ethernet if possible
                because it is three times faster than wireless.

  • Analog output digital start trigger c api

    Hi, I am attempting to start analog output based off a digital trigger (either PFIO, or a PXI line)  I can do this easy in LabVIEW.  However with the C API (through Python wrappers), the problem isthat when I call DAQmxBaseWriteAnalogF64, the write will always timeout as the acquisition has not been triggered.   However, I cannot call this after the trigger occurs, as obviously that will be too late.
    I cannot find any C API examples where analog output is triggered off a digital trigger.  I can find them for analog input, but that is fundamentally different as you can performan read anytime after the trigger occurs.
    Python code as follows (the functions are equivalent ot C API, though you do not need ot pass the task handle as it maintained as part of the Task object)
    # create analog output task
    analog_output = Task()
    analog_output.CreateAOVoltageChan("Dev1/ao0","",-10.0,10.0, DAQmx_Val_Volts, None)
    analog_output.CfgSampClkTiming("",outputRate, DAQmx_Val_Rising, DAQmx_Val_FiniteSamps, numSamples)
    analog_output.CfgDigEdgeStartTrig("/Dev1/PFI0", DAQmx_Val_Rising)
    analog_output.StartTask()
    analog_output.WriteAnalogF64(numSampsPerChan=numSamples, autoStart=False,timeout=1.0, dataLayout=DAQmx_Val_GroupByChannel, writeArray=data, reserved=None, sampsPerChanWritten=byref(samplesWritten))
    print("Analog output: Wrote %d samples" % samplesWritten.value)
    # create digital trigger
    dig_out = Task()
    dig_out.CreateDOChan("Dev1/port0", "", DAQmx_Val_ChanForAllLines)
    # create digital trigger function
    highSamples = 1000
    numpts = 3 * highSamples
    doData = np.zeros((numpts,), dtype=np.uint32)
    doData[highSamples:2*highSamples] = 2**32 - 1
    # send digital trigger
    doSamplesWritten = c_int32()
    dig_out.WriteDigitalU32(numSampsPerChan=numpts, autoStart=True, timeout=1.0, dataLayout=DAQmx_Val_GroupByChannel, writeArray=doData, reserved=None, sampsPerChanWritten=byref(doSamplesWritten))
    print("Digital output: Wrote %d samples" % doSamplesWritten.value)
     

    Hi PatrickR,
    You can review some of the text based NI DAQmx (ANSI C) code examples on generating an analog output using a digital start trigger. If you included/checked text-based support dusing your NI DAQmx driver installation, you can navigate to Windows Start>All Programs>National Instruments>NI DAQ>Teaxt-Based Code Support>ANSI C Examples>Analog Out>Generate Voltage>Mult Volt Updates-Int Clk-Dig Start. If you have any questions/concerns regarding the NI hardware.

  • Data acquisition from analog start trigger to analog stop trigger

    Hi,
    I'm trying to start and to stop a data aquisition by using an analog input trigger. I'm using NI-USB-6251. At input channel ai0 is a sin-signal connected. At input channel apfi0 is an analog trigger signal connected. I can start the trigger signal by pushing a button on my frequency generator. Here's a part of my code:
    Hi,
    ich versuche eine Messung mit einem analogen Eingangssignal zu starten und zu beenden. Ich benutze die Messkarte NI-USB-6251. An Eingang ai0 ist ein Sinus-Signal angeschlossen. An Eingang apfi0 ist der Triggereingang angeschlossen. Das Triggersignal löse ich immer per Tastendruck auf dem Funktionsgenerator aus. Hier ist ein Teil des Quellcodes:
    TaskHandle taskHandle = 0;
    int32 read;
    float64 *data;
    float64 sampleRate = 1000; //Samples per Channel per Second
    uInt64 sampsPerChan = 4000; //Samples per Channel to read
    int sumOfChan = 1;
    double triggerLevel = 2.0;
    double min = -0.2;
    double max = 0.2;
    double timeOutReadAnalog = 10.0;
    void calculate()
    DAQmxCreateTask("", &taskHandle);
    DAQmxCreateAIVoltageChan(taskHandle, "/dev1/ai0", "", DAQmx_Val_Cfg_Default, min, max, DAQmx_Val_Volts, NULL);
    DAQmxCfgSampClkTiming(taskHandle, "", sampleRate, DAQmx_Val_Rising, DAQmx_Val_FiniteSamps, sampsPerChan);
    DAQmxCfgAnlgEdgeStartTrig (taskHandle, "/dev1/apfi0", DAQmx_Val_RisingSlope, triggerLevel);
    DAQmxCfgAnlgEdgeRefTrig (taskHandle, "/dev1/apfi0", DAQmx_Val_RisingSlope, triggerLevel, 3000);
    DAQmxStartTask(taskHandle);
    if( (data=malloc(sampsPerChan*sumOfChan*sizeof(float64)))==NULL )
    MessagePopup("Error","Not enough memory");
    //set start and stop trigger
    //set breakpoint here
    DAQmxReadAnalogF64 (taskHandle, -1, timeOutReadAnalog, DAQmx_Val_GroupByChannel, data, (sampsPerChan * sumOfChan), &read, NULL);
    I've choosen the sample rate (1000/s) and the samples per channel (4000), that the aquisition needs 4 seconds to be complete. I can start the aquisition by Start-Trigger, but I think I have a problem with the function DAQmxCfgAnlgEdgeRefTrig. Actually the array will always be filled with 4000 values. I thought I can start the aquisition by triggering once and e.g. after two seconds triggering again for stopping aquisition with result of 2000 values in the array. I hope you can help me with this problem.
    Ich habe die Sample Rate (1000/s) und die Samples pro Kanal (4000) so gewählt, dass die Aufzeichnung 4 Sekunden dauert. Ich schaffe es auch die Aufzeichnung über den Trigger zu starten, jedoch funktioniert das Stoppen mit der Funktion DAQmxCfgAnlgEdgeRefTrig nicht. Aktuell ist es so, dass das Array immer mit 4000 Werten gefüllt wird.
    Ich hatte mir erhofft, dass ich durch einmalige Triggerung die Messung starten kann und beispielsweise nach zwei Sekunden erneut triggere und die Messung damit stoppe und dann nur 2000 Werte eingelesen habe.
    Ich hoffe, ihr könnt mir dabei helfen.

    Hi Martin,
    I looked over your code and noticed that you called the function without checking the returnvalue.
    Try to change the line to the following:
    First: define a new int32 value and call it for example: errorcode
    Second: The function returns a status code, wich if it fails, includes an error code so save this code in the new generated value
    errorcode = DAQmxCfgAnlgEdgeRefTrig (taskHandle, "/dev1/apfi0", DAQmx_Val_RisingSlope, triggerLevel, 3000);
    and try to run the programm and read out this value.
    If you got this value, please post it here and I will try to help you if I can.
    Regards
    Philipp

  • The SIM card In my iPhone 5 has been giving me occasional messages that there has been a SIM Failure, there is NO SIM, or that there is an INVALID SIM.  Until today, I was able to restart it with no problem and the SIM card would start up.

    The SIM card In my iPhone 5 has been giving me occasional messages that there has been a SIM Failure, there is NO SIM, or that there is an INVALID SIM.  Until today, I was able to restart it with no problem and the SIM card would start up.  This afternoon the NO SIM message came up and I cannot fix it. What is my next step?  I am traveling in Canada now and it is not convenient to come back to the States just to get a SIM card.
    Thanks,
    Lou

    Hi,
    Thanks for getting back to me.  How can I initiate Verizon sending me a new SIM card?  I will be here  long enough to receive it if they can send it to me.
    I have been trying to call Verizon Wireless, but they won’t take my call from my Skype account and I don’t have my phone.
    Thanks again,
    Lou

  • Labview driver for Analog Device cards RTI 800 series

    Hello,
    I'm Mathieu Meisser, from EPFL Lausanne - microtechnique.
    I'm working for a company, that produces
    laboratory PC-controlled analysers, sold all over the world.
    we are searching for the Labview drivers for the I/O analog Device
    cards RTI 815/817 in order to developp a new intrumentation control
    with Labview 5.0.
    It's very important to know if any kind of these drivers are
    still avaible and work properly.
    please let me know as soon as possible if you know
    something about this !
    thank you for your cooperation !
    Mathieu Meisser
    Sent via Deja.com http://www.deja.com/
    Share what you know. Learn what you don't.

    Hi Mohan,
    Unfortunately there isn't a instrument driver specific to that device.  What you could do though is use our NI-VISA driver and try to communicate with the instrument over serial (I assume it uses serial for communication)  There are examples in the Example Finder (Help>>Find Examples) that ships with LabVIEW that will demonstrate some functions you can use.  I hope this helps out.
    Regards,
    Michael
    Applications Engineering
    National Instruments

  • Every time i start my MacBook Air i get the spinning wheel and have to soft boot (shift, control, option, power) it three or four time s before it starts

    Every time i start my MacBook Air i get the spinning wheel and have to soft boot (shift, control, option, power) it three or four time s before it starts. It has only been over the last week or so I also found Safari will not load up and tyou have too open then shut from the drop down then restart it to get a page, any help pleas?

    Do this:
    Reinstall Lion, Mountain Lion, or Mavericks
         Boot to the Recovery HD: Restart the computer and after the chime press and hold down the
         COMMAND and R keys until the Utilities menu screen appears. Alternatively, restart the computer and
         after the chime press and hold down the OPTION key until the boot manager screen appears.
         Select the Recovery HD and click on the downward pointing arrow button.
         Repair the Hard Drive and Permissions: Upon startup select Disk Utility from the Utilities menu.
         Repair the Hard Drive and Permissions as follows.
    After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the main menu. Select Restart from the Apple menu.
         Reinstall Lion/Mountain Lion, Mavericks: Reboot from the Recovery HD. Select Reinstall
         Lion/Mountain Lion, Mavericks from the Utilities menu, and click on the Continue button.
         Note: You will need an active Internet connection. I suggest using Ethernet if possible because it is
                    three times faster than wireless.

  • Will NI PXI chassis support NI PCI card?

    Will NI PXI chassis support NI PCI card? If not means WHY???

    National Instruments PXI chassis and cards are keyed for 5V operation, and there are not any current plans to migrate to a 3.3V setup. We currently do not have a solution for using a 3.3V-only card in one of our chassis.
    Ryan Tamblin
    Applications Engineer
    National Instruments

  • What is the Analog Ouput FIFO size of the LAB PC 1200 ?

    Hello,
      does anyone know what is the Analog Ouput FIFO size of the LAB
    PC 1200 ? I can't find anything in the documentation nor with "Get DAQ
    device information" vi.
    Thanks.

    The Lab PC 1200 does not have an analog output FIFO.

  • Can I put in my new sim card to start a new contract while in Germany?

    I have been sent a sim card to start a new contract for my existing phone.  My current contract runs out on 16th August but I will be out of the country on 16th.  Is it likely to cause problems if I insert the new sim card when I'm away?Sue

    You will not get a signal because roaming will not be enable on your account. And if your moving your number to this new SIM card it will not migrate to the new SIM card because you need to be on the EE network for it to move across.  So yes you will have issues. 

  • Four analog outputs

    I want to find a DAQ device which has four analog
    outputs and at least four analog inputs.
    Could you recommend one to me?

    Jaejeen,
    There is no daqboard with the exact specifications you request. However, I can suggest you some alternatives:
    1.- You can get a Signal Source board with at least four analog output channels; i.e., the NI 6711, and you can get an E Series board for the analog input channels. Finally, you can synchronize both of them.
    2.- You can get a regular E Series Board, and you can use the two regular analog output channels, and the counters are other two analog output channels, but with the restriction to generate square waves only.
    Hope this info is helpful.
    L Aguila
    Applications Engineer
    National Instruments

  • Working of start trigger

    i want to know how a start trigger starts the acquisition of data.please give me any example

    Hello Christian,
    Thank you and Best Regards,
    I implemented a advance Measurement and Control system using cRIO-9074
    with c-Series I/O cards( NI 9217, 9411, 9264)
    I have some questions about it,
    (1)- Data rate from FPGA targate to host vi is too low. how can I increase
    it, when I run my host VI, sometimes all temperature sensor update at
    same time and sometimes one by one, can you please give me some hint, how
    can I correct it, I used two FIFOs for NI-9411 digital pulses, I put all
    Digital input and all analog output and input in a seperate while loop in
    FPGA targate VI.
    (2)- I have to write that data to analyse for further result. I tried all
    possible way to write data including wite to spreadsheet.vi, write to
    text.vi, Data storage.vi, Write to measurement.vi. All this VI work
    efficientlywhen it run individualy, But when I connect this VI to
    writedata from FPGA host VI. than it always give empty file.
    I saw your post in NI discussion forum about how to write data from
    Host.vi, But still I am confuse that how can I creat a protocol between
    host VI and Fpga target vi. to write the data in a file. I have nearabout
    38 channel to write data.
    (3)- I have to measure time difference between two digital pulses, to find
    a flow rate. I am using counter for it with risisng edge shot.vi, but when
    i get a timestemp when there is risisng edge for the second rising edge
    how can I get timestemp. Its like i have to measure time between two
    pulses, I triend waveform measurement.vi to find cycle period. but it not
    worked. any other was to measure it.
    I am stuck in this question since from last one month. I already followed
    NI-discussion forum solution but it doesnt work. I think the way I applied
    is may be wrong. 
    Looking forward to hear from you soon.
    Plese send an additional email copy to [email protected]

  • With DAQmx, how to use AO start trigger for AO/AI synchronization with finite AI sampling

    I am a new user to DAQmx and I am trying to synchronize AI (finite samples) with AO in LabVIEW 7.1 using a PCI 6229 card. I want to generate a finite waveform (AO) and, subsequently, collect a finite number of voltage samples (AI). I would like to repeat the AO-AI cycles in a while loop.
    Alternatively, I could use an infinite AO generation and collect finite number of voltage samples on AI but always exactly at the same spot of the AO buffer.
    Using traditional DAQ and a 6024E card, I used a counter triggered by AO start trigger signal (example attached). I have problems with translating this example into DAQmx.
    Please help!
    Ruber
    Attachments:
    AIAODelay_traditional_Eseries.vi ‏155 KB

    Lesley,
    Thank you very much for your suggestion. Late last night I actually tried a to use AI start trigger instead of AO start trigger and it worked (since I tried the AI & AO to start simultaneously, it does not matter what triggers what), even in the loop. The devil is in details, as I had to carefully wire the number of data points and what to place inside/outside the loop.
    The problem with shared clock is that I need to sample the AI and AO at different rates but using AO and AI clock separately did not seem to affect the performance.
    I still want to try to use the AO start trigger (as you suggest) because I would like to delay the AI by a few ms from the AO. Is there a simple way to to that?
    I suppose, switching from traditional DAQ to DAQmx requires your brain to be rewired - after playing with it for a couple of days and nights I developed a "feeling" for it. One of the differences was that, in order to use this example in the loop, one has to use 'stop task' inside and 'clear task' outside the loop.
    Thanks again!
    Radek Uberna

Maybe you are looking for

  • Trying to install Creative Cloud

    I purchased Photoshop CC, while trying to install, are asked to and have downloaded the Creative Cloud setup executable. But when I try to run this I get the message. We've encountered the following issues: The remote server is not responding in a pr

  • BOM to PDF

    Hi, I am playing with Adboe to see if there is a way to autocreate a BOM (Bill of Materials) parts structure complete with 2D drawings.  This is a typical Engineering application i.e., you have a Bill of Materials with assemblies and parts, the parts

  • Bug with playlist folders

    Folder of playlist doesn't open or close are they should be. clicking on the little arrow doesn't open nor close the folder.

  • 1Z0-040 Recommended   Study Software

    I'm due to take the 1Z0-040 exam shortly and have been using the Sybex 1Z0-040 book to date. The book is good but I haven't had the time I'd like to study for this exam so I think I'm going to have to buy some supplemental exam software. The cheapest

  • Twist on the sata oc problem

    i've got an a64 3800+ with k8n neo2 mobo and 2x512 3700eb.  i'm oc'd pretty stably at 11x230 with a raptor raid on sata 3/4 and 2x seagate 160s on sata 1/2.   i've read that the instabilities with sata and oc start around 220-230.  here's my question