How to setup a hardware timed triggered acquisition ?

hi,
I want to do a hardware-timed Simultaneous AI-AO based on an external trigger.I am using a PCI-6052E card. I have tried software timed setup but it misses trigger pulses.I am using a PCI6052E card.
thanks,
Shiv
Attachments:
DAQ_DOCUMENT.doc ‏23 KB
basic_loop3.vi ‏169 KB
The_Data_Generator.vi ‏30 KB

Hi Shiv,
Take a look at
Search Examples >>> Hardware input and output >>>Simultaneous analog I/o >> Simul AIAo BefTrg(E-series).vi
This should cover most of what you need.
Ben
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction

Similar Messages

  • How to setup Datasource to use data triggers in Data Template

    hi all,
    Pls. let me know the process how to setup dataSourceRef that has to be mentioned in the data template tag for making use of various data triggers?
    I have packaged function which will create a temporary table that I am using in my main query. This whole process should happen in the beforereport trigger.
    can anyone help me in this regard.
    Thanks in advance
    Praneeth
    null

    Yes for triggers use need functions returning boolean value. These functions must reside in a package and you have to define package name as defaultPackage="package_name" in data template.

  • Simultaneously triggered acquisition: Multiple PXIe-7962R + NI-5734 cards, across multiple PXIe-1085 chasses

    Hi all,
    I need to do high-frequency, high-channel-count acquisition.
    Specs
    Signals: 10 MHz, 60 channels
    Controller: PXIe-8135 (Windows 7)
    Chasses: PXIe-1085 (2x)
    Input cards: PXIe-7962R FlexRIO base with NI-5734 digitizer (15x)
    Description
    Each FlexRIO card will store data in circular buffers, and continuously monitor the voltage levels. When any one channel exceeds the user-defined threshold, all 60 channels need to be triggered simultaneously to pass waveform data (200 μs pre-trigger, 300 μs post-trigger) to the host OS for logging.
    In other words, every FlexRIO card needs the ability to fire the trigger, which is then received by all 15 FlexRIO cards (the card that fires the trigger also needs to receive the trigger).
    Question 
    Can I achieve this with only a single PFI line? Or do I need some other technique?
    I've found some examples, but they only show single-source and single-card triggering, e.g. https://decibel.ni.com/content/docs/DOC-30182 uses one analogue input to trigger the acquisition of 2 channels on the same card.
    Any advice would be much appreciated. Thanks!

    Assuming you are using LV 2013 or 2014 you should download version 1.3.4 of the FlexRIO Instrument Development Library (FIDL). This will install 5734 Acquisition Engine examples which use the MultiRecord Library to stream data to the DRAM in a circular buffer, allowing you to recover pre-trigger samples. The example also demonstrate how to implement the Syncrhonization Library that synchronizes triggered acquisition to within a single sample period across multiple devices. 
    Getting the example to work across two chassis' may be difficult, but I believe it is possible. Though to do so you will need a timing and sync module in each chassis to distribute the triggers and reference clock that the sycnrhonization library requires. 
    National Instruments
    FlexRIO Product Support Engineer

  • Need urgent help with HSDIO hardware timing

    Hi everyone,
    I need urgent help regarding HSDIO hardware timing. I've been working in a project which generating serial ramp using HSDIO pxie device. 
    I'm using clock rate 40MHz and generating 14 bit of boolean for each step of ramp. And I have to generate simply 256 steps ramp.
    Which means, 256 (steps) x 14 (boolean array) x 25 ns (period of 1 boolean value) = 89,6 ns.
    What I'm doing right now is with using index of FOR loop as my input data (converting the index into 14bit boolean), then write into pxie device in every iteration,
    which means, my data is getting into output in every 1ms time, right? (I'm using windows)
    And I want to be able to generate faster than that. 
    How can I prewrite my 256 steps ramp, then write them all at once into pxie device. I'm really stuck here.
    In the picture can you see how I do the write into device in every iteration of FOR Loop.
    Regards,
    Yan.

    hi, thanks for responding.
    with using example of dynamic generation with script, I can manage to generate the ramp with controllable delay (generate the whole waveform, including delay with script command, then write to the card).
    But I still have 1 question, I can test the output of the generation using oscilloscope and cant see the start delay (I'm writing delay at the start, before generating the ramp). My signal generated at 0 sec.
    How can I check this start delay? is there any good example delivered with Labview to check this generation? Somehow I cant use the "dynamic generation and acquisition" example to see my generation (cant figure out how to capture the generated signal).
    regards,
    Yan.

  • How to Setup SSL on Oracle Application Server 10g Release 2 (10.1..2)

    Hi All,
    Can anybody tell me How to setup the SSL on Oracle Application Server 10g Release 2 (10.1.2).
    I have all the required documents like
    1. Oracle Application Server Portal Server Configuration Guide.
    2. Oracle Application Server Web Cache Configuration Guide.
    3. Oracle Application Server SSO Administration Guide.
    I tried to follow all this documents but still i am not able to set SSL for Oracle Portal Server.

    The Portal Configuration Guide, available on OTN at http://www.oracle.com/technology/documentation/appserver1012.html does provide some very specific information on how to set up OracleAS Portal.
    Section 6.3.2.1 Configuring SSL for OracleAS Portal describes various configurations, such as:
    SSL to OracleAS Single Sign-On
    SSL to OracleAS Web Cache
    SSL Throughout OracleAS Portal
    External SSL with Non-SSL Within Oracle Application Server
    For larger enterprise configurations, you can refer to the Enterprise Deployment Guide.
    Can you give a bit more background on what you are trying to set up? Which scenario, what sort of hardware, software versions, and so on.
    Regards,
    Pete

  • How to setup AI to AO

    I know this is probably possible, I just don't know how to
    best go about doing it. I would like to write a program to sample a waveform
    off of AI0 and output that same waveform on AO0 real time (or as close to real
    time as I can get) - with the eventual goal of doing some processing on that
    waveform in between. But for right now all I am trying to do is create a
    program to do AI to AO.
    The examples I have seen for doing simultaneous AI/AO have the output fixed
    while it samples data on the input. That is not what I want. I want to be able
    to spit out the signal that is present on the input ADC. Also when I try to
    modify the program, I get these long (5+ second) delays in between what is
    present on the input and what it produces on the output. I have tried
    increasing the sample rate and/or reducing the number of samples but that just
    causes errors – I’m loosing data because one process is taking too long to
    complete.
    Is there a way to make a streamlined program to simulate an
    analog buffer?
    Details:
    NI Device: USB 6251
    Software: Labview 8.5
    Preferred Sample Rate: 40 kHz
    Preferred delay AI to AO: < 0.1 second
    I have no code started that I could post. I am wondering if
    anybody has done this or has an idea about how to do it, i.e. I need to use a
    queue to buffer data from the AI chain to the AO chain.
    Thanks
    Jim

    Hello Jim,
    Andre is correct that our main concern here is going to be the buffer
    delay.  There are 2 other main delays that we need to be concerned
    about as well.  These are  software processing and USB bus transfer
    rates.  Andre's example for the output should work, but I believe it is
    a little more complicated than you probably need.  He is using a state
    machine architecture with an event structure, which is easy to expand
    but can be difficult to follow for a task such as yours.
    The producer/consumer would work as well, especially if the processing
    you are planing on implementing is significant, but this too I think
    may be beyond your initial goal.  This is, however, a great way to get
    rid of "loosing data because one process is taking too long to
    complete."
    The reason you are seeing the delay is most likely due to the buffer
    clearing out.  When you call the DAQmx write, it puts the data at the
    end of the buffer, so all the data ahead of it needs to be output
    first.  You can reduce this delay by using non regeneration (see the
    example program named Cont Gen Voltage Wfm-Int Clk-Non  Regeneration.vi
    in the Example Finder) and writing smaller chunks (samples to write). 
    The trick with this is you will get an error if you do not keep some
    data in the buffer that has not been written.
    You also might want to get rid of buffers all together and use hardware
    single point timing for your output (instead of continuous).  This is
    when you write 1 point at a time to the card and it is output on the
    next hardware timed sample clock pulse.  You can use this in
    conjunction with the Wait for Next Sample Clock.vi (in the DAQmx Real
    TIme palette).  The problem with this is that because you dont have a
    buffer, you can only go as fast as you can write points (my computer
    could go about 500Hz if I did not do anything else at the same time).
    The USB is a slower bus than, for example, PCI.  This means that it takes longer to get data to and from the board (there is a lot of overhead).  This could become an issue at the rates you want.
    I hope this gives you some ideas.  Let me know if you want me to go into more depth about anything or if you have any questions.
    Message Edited by Neal M on 06-17-2008 01:20 PM
    Neal M.Applications Engineering       National Instruments        www.ni.com/support

  • How to setup a static multicast ARP entry with Cisco SF300-08?

    We're running a cluster in multicast mode as a  loadbalancer.
    We have Cisco SF300-08 and when we adding a static ARP entry results in an error message telling the user that the hardware address needs to be a valid  unicast MAC address.
    So how to setup a static multicast in Cisco SF300 or maybe someone know other solution to setup multicastes mode in Cisco SF300.

    Hi, Tom!
    We have two watchguard xtm505(cluster active-active) in our network. Watchguard interfaces have one ip and one mac adresses. IP 192.168.111.1(Unicast) and MAC 01:00:5e:02:02:03(multicast).  Cisco SF300 is router to outside networks(to internet). Cisco IP adresss is 192.168.111.254. There are another some hosts in this network.
    Ping from hosts to 192.168.111.254 works well. Ping from hosts to 192.168.111.1 works well too.  But there is no ping from watchguard cluster(192.168.111.1) to Cisco(192.168.111.254). And there is no routing to internet
    This is well-known situation. We need to do following(example for cisco 3750):
    1.    Start the Cisco 3750 command line interface.
    2.    Add a static ARP entry for the multicast MAC address of the FireCluster interface.
    Type this command:
    arp arpa
    For this example, type:
    arp 192.168.111.1 01:00:5e:02:02:03 arpa
    3.    Add an entry to the MAC address table.
    Type this command:
    mac-address-table static vlan interface <#>
    For this example, type:
    mac-address-table static 01:00:5e:02:02:03 vlan 1 interface gi1/0/11
    But we can't add arp entry on Cisco SF300. CLI tells us "MAC address illegal"!
    We tried enable igmp snooping, but is not helps.
    Could you tell more detailed about MAC groups?

  • How to setup a infiniband network

    How to setup an infiniband network??
    Our Customer has 2 x t5-4 wirh ZS3 using infiniband. Do you have any white paper where explain how we can do
    Thanks in advance

    Perhaps you can start with the product documentation for those T5-4 systems:
    http://docs.oracle.com/cd/E29659_01/index.html
    When you are on that page, find the Search field at the top and type "infiniband" into it.
    You might find additional information specific to the hardware by doing that.

  • How can I do a buffered digital acquisition on a single line?

    I am using a NI PCI 6110 DAQ and I need to do a continuous buffered data acquisition (sample rate near or above 5 kS/s). The thing is, the acquisition must be done on a single digital line. Some other lines of the digital port are used for something else (some in write mode, others in read), so they have to remain unaffected by the process.
    It would certainly be better if it could acquire data at the same speed as an analog input (which will be executing at the same time). In fact, it would have been much easier to only add a channel to the AI and I would have got exactly the results I want, but all the AI (4) of the board have already been used .
    The picture I uploaded shows what I'm tryi
    ng to do: I acquire analog data and I want to automatically show the moment a deconnection occured. The purple/pink line, which I added manually, is the one causing me trouble. It shows the voltage (0-5V) of the relay doing the deconnection (that's why it have to be done at the same time than an AI data acquisition).
    Thanks for reading this to the end
    Attachments:
    Graph.jpg ‏55 KB

    Well, you can't get hardware-timed DIO with the 6110, but you can probably use its counters to capture the timestamp you need.
    One method would be to set up a buffered edge-counting task. The analog input's sample clock would be specified as the source signal. This will cause the counter's value to increment at the beginning of each sampling cycle, acting as a measure of time from the start of analog input.
    The falling edge of the relay signal would be the counter's gating signal. For each instance that the relay disconnects, the count value ("time") at that instant will be stored in the counter's buffer for subsequent retrieval.
    Note one small timing subtlety: while the very first sample clock edge puts analog data into the 0th array inde
    x, it will also be incrementing the counter time to 1. This off-by-one deviation will persist.
    There are other variations on this theme, depending on whether you also need to capture re-connection times, or whether there is always one and only one disconnect of interest, etc. You can likely get just the behavior you need using one or both of the on-board counters.
    -Kevin P.

  • Using cDAQ timers to repeat a hardware-timed finite-sample pulse train clock

    Hi all,
    As part of a complex project, I must implement an acquisition hardware interface for a linear motion sensor using the Synchronous Serial Interface (SSI) output common in industrial motion control. (I have a fair bit of experience in digital electronics, but I'm new to hardware timer-synchronized digital I/O in LabVIEW.)
    To do this, I need to create a hardware-timed bursted pulse train TTL clock signal. Each burst consists of 25 high-low transitions with a full-cycle period of 2.67 microseconds (375kHz). The output must then be held high until the next burst, which occur at 1ms intervals.
    Using cDAQ timers and a NI 9401 (based on the example at http://www.ni.com/example/30256/en/), I've been able to create the pulse train burst as described (see attached VI image). Next I need to configure another timer to trigger this burst to repeat at 1ms intervals.
    Does anyone have any pointers about the best way to accomplish the hardware timing for repetition of the pulse train?
    Any suggestions of alternative strategies or observations as to the ways my noobish code is stupid or inefficient are welcome as well!
    Thanks!
    Solved!
    Go to Solution.
    Attachments:
    Hardware Timed Pulse Train Clock.jpg ‏102 KB

    Hey Ryan, 
    A picture of the behavior you are seeing would be helpful. The NI 9411 should only be reading 50 bits every 1 ms.  
    It may not be possible to read 25 bits (do you mean 50 bits? 25 high 25 low) and push it to a queue without encountering an overflow error. If you take a look at the above code the digital input will receive 50 sample clocks every 1 ms. This is equivalent to acquiring 50 points every 1 ms which is an acquisition speed of 50 samples/1 ms=50 kHz. The read loop must keep up with the 50 kHz rate otherwise the buffer will overflow. In the above example I’ve set the read to pull 5000 samples (x) with the assumption that the loop will take less than or equal to .1 seconds (y). This yields a software acquisition speed of 50 kHz (5000 samples/100 ms). If the loop speed is faster than 100ms then the 10 seconds timeout on the DAQmx read will allow for the read to block so the FIFO may be filled.
    The options available for question 2 are below. They may be used separately or in conjunction.
    Move the DAQmx Read for the NI 9411 to its own independent while loop, set the DAQmx Read to acquire 50 samples, do not graph the data, and pass the data to a Queue for processing in a consumer loop. This will increase the loop speed which may allow you to keep up with the 50 kHz acquisition speed. This may not work because the loop speed will need to be 1 ms or less.
    Increase the value of the Samples per Channel control that goes into the DAQmx Timing VI. This will increase the DAQmx Software Buffer size. This buys time until you receive an overflow error because the DAQmx Software Buffer is being filled faster than samples are removed.
    Read in 5000 sample chunks (producer loop), push this to the queue, and perform the analysis in 50 bit chunks (consumer loop). The additional queue created should allow for the acquisition loop to keep up.
    Regards,
    Izzy O.
    Product Support Engineer
    ni.com/support

  • Got new miniMac servers with 2x750GB drives. How to setup and confirm RAID mirror?

    Literally just got shiny new miniMac Server with the dual 70GB internakky hard drives/disks with
    OS X 10.7.$ LION pre-installed. What a nice machine in a super cool box!
    Seemed to bootup and run fine!
    Now my issue (there will be more for this MAC newbie):
    A. How to setup AND more importantly (item B below) CONFIRM that a RAID MIRROR is working?
    Want nothing fancier than 2-nd drive is exact duplicate of 1-st drive at all times.
    That is, an 'active and full up-to -the second" backup of the main 1-st drive.
    I have done nothing to 1-st drive as it came from APPLE.
    When I try to setup RAID set using DISK Utility, I get message about system(1-st drive) can't be used in a RAID or such.
    yet I can add 2-nd drive to what I tink is a RAID set and then 'Enable' it.
    It seems to add another entry to thr left-side of drves list panel but not sure that 1-st and 2-nd drives are BOTH in the new
    "RAID SET' or that the set just consists of the "single" 2-nd disk?
    B. I don't think that 1-st drive data is actually being duplicated to 2-nd drive.
    For instance, how do I know that it was 'caught up' to match 1-st drive AND then is
    staying caught up?
    C. A 'RAID UTILITY' Icon brings up a not-available message, but I think that is because I don't
    have HARDWARE RAID controller, just software RAID, correct?
    D. What is 'Time Machine' and how does it play into this? I do assume that somehow/someway I need to
    have off-machine backups also to be truly protected? How would a 2-nd identical miniMAC server be best
    deployed to back each other up, in addition to their own internal RAID-ed disks that items above address?
    My whole point of buying 2x750GB disks was to have mirror RAID set and
    (foolishly) assumed that factory would set it up that way.
    Please help me get setup right so when the inevitable crash happens,
    I have some chance of recovering from it.
    Regards,
    Paul T
    emai: [email protected]
    Apple ID:  N3UD
    Phone: 610-613-0610

    A. What are you adding to the RAID: a partition or a hard drive? You can only add hard drives to a RAID. RAID Utility should confirm that your RAID is working
    B. No, I don't think so
    C. It's because you haven't got RAID hardware.
    D. Time Machine is a backup system in external drives. If you want, you can do backups in a external hard drive.

  • Federated Portal Network how to setup, configure, requirements

    Hi
    We are reading and understanding the Federated Portal Network.
    I got understood of the fundamental concept of sharing data or content by the networked portal .. etc..
    But I want to know more on FPN,
    how to setup?
    how to manage?
    any configurations we have to do?
    what are the requirements in terms of software/hardware etc...
    if there is any detailed document, please help me on that.
    I have already gathered few docs from help.sdn and snd forums. but setup, configuration, maintain, requirements .. still on mess in my mind.
    I want to have any doc with is precise and clear to understand.
    Please helpme out..
    Thanks in advance
    Regards
    Kiran Jakkaraju
    Wipro Technologies.

    Hi Kiran,
    You should be able to find the answers to the questions you posted in the FPN documentation set on teh SAP Help Portal, which you can find here: <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/5b/9f2d4293825333e10000000a155106/frameset.htm">http://help.sap.com/saphelp_nw2004s/helpdata/en/5b/9f2d4293825333e10000000a155106/frameset.htm</a>.
    Note that the documentation assumes you have prior portal experience. The solution is based on NW2004s.
    If you have any comments (good and bad) about the documentation feel free to post to this thread.
    Regards,
    Michael

  • How to Setup SignalExpress to Read Thermistors on 9219 USB

    Hi,
         Can anyone tell me how to setup my 9219 to
    read thermistors.  I have used it to read TCs (type K), but can't seem
    to set it up to read thermistors.  I'm using SignalExpress and keep
    getting the message, "No supported devices found.  Creating empty
    SignalExpress block.  Add channels to the block by clicking Add
    Channels in the toolbar."  whenever I try to Add A Step.  Do I need to
    set something on my 9219 so that SignalExpress can recognize the
    hardware correctly (i.e. as thermistor hardware)?
    Thx!

    Hi- Since the 9219 doesn't support thermistor tasks, I believe you might be able to work around this by creating a 2 wire resistance measurement and applying a custom scale in your task.  You'll need to multiply your resistance by your current excitation to get voltage.  You'll then want to map your voltages to the temperatures specified by your thermistor. We don't have much documentation on doing this in Signal Express, however, there's a really good LabVIEW program on the NI Community, here.  That example at least shows the program flow of what needs to happen.  Additionally, this KB is helpful in understanding what has to be done to measure a thermistor with the 9219.  Have a great day!
    aNItaB
    Applications Engineer
    National Instruments
    Digital Multimeters

  • How to setup to trigger an event when choose the value from cookie

    Hi,
    I define an firepartialaction event for the messageTextinput, this event can be triggered when the user key in the via keyboard. but failed to be triggered when the user choose the value from the cookie. How to setup or program to trigger the event even the user choose the value from the cookie?
    Best Regards,
    Jiang

    Hi,
    so the next missing information is what the event is that you expect to fire. If the cookie value is displayed in a list then John is correct and you populate the input field behind the scenes in which case e.g. no ValueChange listener fires or autoSubmit action is issued as you don't update the data through the UI component
    Frank

  • 5122 and continuous triggered acquisition

    I have a PCI-1522 and I want to do a continuous synchronous acquisition and have tried a number of things in NI-SCOPE without success. The signal I want to acquire is triggered (or to be more technically correct is synchronous with a second external signal) at 10 or 20 kHz and I want to sample at about 20 MS/s. Setting up the ext trigger is fairly straightforward if you put the initiate and fetch within a while loop. But then you have to loop on each trigger every 100 us (which the software is not fast enough to do even without the decimated processing I want to do) or acquire a larger chunk of data. This latter approach essentially initiates on one trigger pulse but acquires a large number (2M) of samples at 20 MS/s and therefore is subject to jitter if the samples acquired aren't exactly right. (I adjusted the sample size to correct within one sample and there is still persistent jitter so without triggering the accuracy required is less than one sample.) Bottom line is you aren't synchronous with either approach. With the fetch forever example, you move the initiate outside of the while loop which is great. But you have to use a software trigger in order to get it to work. All of the possible solutions essentially boil down to software triggering. I suffer either from jitter or drift.
    I thought about using the video ref triggering schemes but then I have to configure my signal to fit into the pre-defined video formats which may not be possible. I haven't thought too much about a DAQmx solution. Are there any examples or solutions of a hardware-synchronous, continuous acquisition in NI-SCOPE or DAQmx?

    Hi Dan,
    You might want to take a look at the niScope EX Multi Record Fetch More Than Available Memory.vi shipping example.  With this VI you can set up a multirecord acquisition and fetch records as they are being acquired.  This allows you to acquire more records than will fit in the onboard memory.  Currently, there are limitations in the driver which limit you to fetching about 2,000 to 3,000 records per second, so you will not be able to keep up with your 10 to 20 kHz trigger signal indefinitely.  However, we are currently working on fetching optimizations which should bring this number up to the 10 kHz range in the future.  We hope to release these optimizations in Q1 of 2007.
    I hope this helps.
    Regards,
    Sean Close

Maybe you are looking for

  • Dump ASSIGN_TYPE_CONFLICT when loading into Cube

    Hi, since an few weeks we have sometimes a problem when loading data from DSO to cube. After transport a changed cube the first dataload into the cube dumps with ASSIGN_TYPE_CONFLICT. We always activate all transformations and all DTPs which belong t

  • Matrix addrow problem

    I want to enter some value in a matrix I enbled matrix with oMatrix.AddRow() but problem is that - when I am inputing data in matrix fields , after pressing tab the value disappears how can I resolve the problem?

  • Question about AppleScript command.

    I am looking for a command in AppleScript that will Operate a Key Binding. For example, I want to, in my script, have the computer use "Command-Shift-Z" without me touching the keyboard. I have looked through the entire AppleScript PDF from Apple and

  • New 13" MacBook Pro and iMovie?

    Is the new 13" MBP OK for light video editing with iMovie or FCP Express and little photo editing with Photoshop Elements? For video I use Panasonic AG-HMC40 AVCCAM HD. Thanks!

  • Microsoft Store Breaks After Joining Domain (2008)

    After joining a Windows 8 Pro Tablet to domain, store apps are no longer working. This is important to us for two reasons : 1) Users must be able to use OneNote and Photo Apps 2) Users must be able to access Domain shares and have access to the same