PXI-6259 simultaneous updating of AO

Hi, I have PXI6259 M series DAQ cards. Each card having capacity for four analogue outputs with update rate (if using all four) of 1.25MS/s. My overall goal is to be running 11 analogue outputs (using 3 cards) all running at 1.25MS/s. I want to update all channels at the same point in time - I do not want sequential updating of the channels. I have searched the examples but can't seem to find anything that specifically gives me pointers as to how I ensure each channel is updated at the same time. The timing of the updates is important too, so I want to have some kind of hardware timed execution. Currently I'm researching but soon I shall begin to program and measure in the lab. - I'd like to make sure I don't go tearing off down the wrong track! Any hints and tips of what to look out for would be really appreciated. - I'm pretty new to this!
Regards,
George.

Hello George,
Hopefully I can shed some light on this for you. A task such as this would be programmed using VIs which form part of the driver. You probably already have the driver installed - DAQmx.
A great start for getting to grips with DAQmx is this set of tutorials found on ni.com:
http://zone.ni.com/devzone/cda/tut/p/id/5434
You configure settings like finite sampling, sample rate etc in your DAQmx task.
Moving on from there, to ensure all your cards are properly synchronized you have to ensure that each card is using the same sample clock. You will need to route this clock over the RTSI bus. Thank fully DAQmx makes this really easy. See this for a nice example:
http://zone.ni.com/devzone/cda/epd/p/id/5197
Let me know if this is of any help
Nick C.
Cardiff University

Similar Messages

  • Error in reading voltage using DAQmx with PXI-6259

    Hi,
    We are trying to acquire analogue voltage from 5 channels using PXI-6259. We trigger the data sampling with clk 0 (i.e. using PFI 12).
    The problem we had is:
    1)When we tried to get voltage from 5 channels, we get 2 data at the same after twice the period. For example, If we set the 
      sampling rate to be of period 1 second, we get 1 signal at 2 second and around (2+t), where t is a random time less than the execution period of the loop.
      Then the next cycles would be 4 second and (4+t).
    2) This timing problem did not occur if we only acquire voltage from 2 or less channels.
    3) We tried to run exactly the same program with NI USB-6210 and everything worked just fine.
    4) We replaced the DAQmx read with DAQ assistant and still encountered the same problem.
    Attached is the a simple program that showed the error. Is this possibly a bug in PXI or DAQmx?
    Please help us
    Arul (CLAD)
    Attachments:
    test rig.vi ‏74 KB

    Good afternoon Nitin,
    Thanks for contacting National Instruments with your issue, we'll try our best to resolve it for you as quickly and efficiently as possible.
    As the error message stated:
    "Analog input virtual channels cannot be created out of order with respect to their physical channel numbers for the type of analog device you are using. For example, a virtual channel using physical channel ai0 must be created before a virtual channel with physical channel ai1."
    If you need to randomly switch which channels you want to either control IEPE excitation or coupling on, a better approach rather than having all of these channels in one task as you've done in your attached VI, is to parse your program down to multiple tasks that can run simultaneously. 
    I have attached a screenshot of this approach, which hopefully is not a compromise to your application.
    Best of luck with your project.
    Sincerely,
    Minh Tran
    Applications Engineering
    National Instruments
    Attachments:
    ParallelTasks.JPG ‏52 KB

  • Three Counters in PXI-6259

    Hello Everyone,
    I'm trying to measure time t in the picture that I have attached. I am using a PXI-6259 for this (both input and output). My first idea is to use one counter to generate the input, another counter to time when to stop the first counter and the third counter to measure time t. However, I find difficulty in getting the timing correctly, especially, the second timer.
    Do you have any ideas on how to do this?
    Thanks
    Attachments:
    picture.JPG ‏27 KB

    Hi P.Jack,
    I would like to ask for a bit more information about your
    project and DUT. Creating a pulse as input for the DUT is not a problem. Examples
    can be found in the LabVIEW example finder ((Help >> Find Examples…
    >> Hardware Input and Output >> DAQmx >> Generating Digital
    Pulses). Please keep in mind that the finite pulse train uses both counters
    (one to generate the train, and one to count the number of pulses that have
    been generated). Continuous generation only uses one counter, leaving you with
    a free one. On that note, I would like add that the 6259 only has two counters.
     Is the DUT output a TTL signal ? Also, is this a stimulus
    response system, where t can vary in the time it takes? (that is the impression
    I gathered from the picture). The overall task you are looking to accomplish
    cannot be completely done in hardware with the PXI-6259 because there are only
    two counters on the board, and this entire program would require four counters..
    If hardware timing is essential, I would suggest a PXI-6602 counter/timer card.
    This will allow you to use two counters to create the pulse train, and another
    two to do a buffered counter acquisition.
    If partial software timing is OK for this project, than the
    6259 can accomplish the task. I would do a pulse generation, and then once this
    is complete (time T starts), you can clear the task and create a buffered
    counter task. Instead of creating another task, you may also think about doing
    a digital read on the input line. You would put the read in a loop, and
    constantly monitor the line until it goes low. You would put tick counts before
    and after the loop, then compare them and see how long it took for the digital
    line to go low. Either route is software timed because it requires configuring
    and starting a new task at a minimum.
    David L.
    Systems Engineering
    National Instruments

  • How to send a SQUARE WAVE to PXI-6259 over the LAN

    howcan I  send a SQUARE WAVE  to PXI-6259 over the LAN, is
    there any example or link any one can send me , thanx in advance.

    Dear HaI L,
    I managed to send a test signal (sine wave) to the device by choosing
    the test panel option and choosing Analog output. In the analog output
    I could many channels to choose from. ai0, ai1.ai2 and ai3.
     I did this by right clicking NI PXI-6259, in the NI DAQmx devices
    located in the Devices and Interfaces and choosing test and saw it on
    an Oscilloscope without using the NI DAQ OPC capabilities, and I cannot
    understand this thing.
    1)How can it be possible without  making a NI DAQmx  channel and Variable?
    2) I cannot create any channels in the devices and interfaces located
    in My system but I can create NI DAQmx Global Virtual channels easily
    in Data neighbourhood in the remote system, Plz tell me why?
    3) I  want to create a program and choose a channel to send the
    signal,  can I choose the channel that i create in the remote
    system device ? and if yes how can I choose this ?
    Thanx in advance.
    Sincerely,
    Munir Afzal Bhatti.
    Attachments:
    max.jpg ‏2305 KB

  • Does NI PXI-6259 support both Traditional DAQ and NI-DAQmx of Labview 7.0 Express?

    I need to buy a Multifunction DAQ board which will be supported by both the Traditional and NI-DAQmx of Labview 7.0. Is the NI PXI-6259 appropriate for such application?
    Thank you.
    Ujwal

    M-series boards are not supported by Traditional NI-DAQ. Stick with the E-series if you require Traditional support.
    John Weeks
    WaveMetrics, Inc.
    Phone (503) 620-3001
    Fax (503) 620-6754
    www.wavemetrics.com

  • DAQ-PXI 6259

    Hi,
    I am using Labview 7.1 and NI PXI 6259 DAQ card.
    I want to configure 'n' no.of digital channels at a time but each channel has to stop the task at different time.Is it possible to do this??
    Suppose consider i need to configure some 8 digital channels in that i need to write 4 channels continuously and 5th channel for 5 seconds,6th for 3 Seconds,7th for 2 seconds,8th for 10 seconds.I will come to know abt the no.of channels and whether it is for continuous or for finite time only at run time.Is there any method to configure the virtual channels by grouping all 8 channels but stop each channel at different time??
    Plz help me in this
    Regards
    Meenatchi

    Hello Meenatchi,
    It appears what you are trying to do is to use synchronized digital output so that one sample is output on all of your lines at the same time, for different lengths of time.  If this is the case, then what Britoa suggests is probably the best way to go about it.  You can programatically "decide" what you want to output and then build a digital waveform to reflect the behaivior you want to see. For example, if you wanted to output at 1kHz and you wanted channel 1 to output continuously while channel 2 only output for 1 second, then you would programatically construct a waveform where channel 2 was set low after 1000 samples.  The example that I would start with would be the Cont Write Dig Port-Ext Clk-Non Regeneration.vi
    As far as having different tasks running, the only way you can do that is if you use software timing (1 sample On Demand) for the different lines.  You can then create a different task for each line and stop them independently as shown here:
    Your lines will not be synchronized, but you could then use a case structure to decide whether to write to each line or not.
    I hope this gives you a place to start, post back if you have any issues programming this.
    Message Edited by Neal M on 12-26-2007 01:42 PM
    Neal M.Applications Engineering       National Instruments        www.ni.com/support
    Attachments:
    2DigLines.JPG ‏97 KB

  • PXIe-4499 simultaneous samples multi-modules

    Hello,
    I have three PXIe-4499 simultaneous samples modules in a PXIe-1082 chassis.
    I built a single AI voltage task which includes all the chnls on the three modules.
    Do I need to do anything special to ensure all modules use the same sample clock?

    Bert,
    Channel expansion is by far the easiest way to synchronize channels in DAQmx.  If all channels are in the same task they will share a sample clock and start simultaneously.  

  • NI PXI-6259でのデータ集録におけるエラーについて(デバイスのリセット)

    NI PXI-6259でBNCコネクタを介してエンコーダのパルスをトリガとして圧力や流量などのデータ集録を行っています.大体は異常なくデータ集録が可能なのですが,たまにエラーとしてデバイスをルーティングに使用できなく,デバイスをリセットするか,リセット中の可能性がありますと表示されます。このような場合,どのように対処すればよろしいでしょうか?

    櫻田様
    早速のご返事,有難うございます.
    現在,私は以下の製品を使用させて頂いております.
    ・PXI-8187 RT2.5GHz リアルタイム組込コントローラ(Windows XP,Lab VIEW 7.1)
    ・PXI-6259 Mシリーズ多機能DAQ(BNC-2110コネクタブロックを用いて,エンコーダからのクロックにより圧力,流量のデータ集録)
    ・PXI-4351 高確度DAQ(熱電対で測定した温度のデータ集録)
    ・PXI-7344モーションコントローラ(ステッピングモータ角度調節)
    上記の製品を用いて,エンジン計測および制御を行っております.
    プログラムの内容としては
    エンコーダからの1P/Rのトリガによりデータ集録を開始し,360P/Rのクロックを元に圧力,流量のデータ集録を行っております.
    今回生じたエラー(毎回起こるわけではなく,たまに起きるのですが)はおそらくデータ集録を開始する以前のVI「DAQmx」で生じ,エラー番号は89130で
    「デバイスをルーティングに使用することができません.デバイスをリセットするか,デバイスがリセット中の可能性があるため,リセットが終了するのをお待ちください」
    との内容でした.
    実際には,データ集録の際にMAXでデータ集録項目やポートなどを設定しており,
    MAXの方で,テストを実行した際にも同様のエラーが発生しました.
    エンコーダからのパルス信号に異常はないため,
    やはり,PXI-6259の問題なのでしょうか?
    ご返事,宜しくお願い致します.
    大村

  • PXI-6259 2 KHz signal acquire, sound

    Hello:
    I working with a brakin product ABS motor, with a PWM at 2.8 KHZ, my setup:
    -PXI-1042Q Chassis
    -PXI-6259 Analog acquisition card.
    when I fire the motor in order to measure the peak current and the motor stable current, a sound coming from the PXI chassis like if the Analog card reproduce the 2.8KHZ signal in sound, if i reduce the frequency from the product to 2KHz the sound is loud,
    my question is is a NI application engineer can tell me if this is normal or if I violating a card o chassis parameter, the voltage that I reading at peak  1.1 VDC  aprox, and 0.1 and state stable,
    attached you can find a complete data coming from the product to the analog card.
    the results are good just is bother me the sound,
    thanks in advance
    Javier Reyna 
    Attachments:
    FIRE.xlsx ‏3125 KB

    The frequency and voltage range that you are using are definitely within specifications for the PXI-6259, and if you notice a sound from the chassis, it is due to the fans, which I agree with you it can be very loud. The fact a slight change in frequency would produce a different sound from the chassis is rather strange. Not sure if it's just the noise volume that increases, or if it's like a high pitch sound changing.
    What would be more useful is that you record this noise to a .wav file (hopefully good quality audio) and upload it here, to determine if the sound is normal or not.

  • PXI-6259

    Some PXI board can operate in CompactPCI chassis. Is it the case for the PXI-6259 ? 
    What are the limitations ?

    Hello,
    In this documentation about the PXI-6259:
    http://www.ni.com/pdf/manuals/371022k.pdf
    You can find some information about compactPCI <=> PXI compatibility (page 164.)
    This link could be helpful as well.
     http://www.pickeringtest.com/static_pdf/PXIHWSPEC21.pdf
    Hope it will help,
    Waiting for your feedback,
    Regards,
    MatthieuR
    Matthieu RICORD
    National Instruments France
    #adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
    Été de LabVIEW 2014
    12 présentations en ligne, du 30 juin au 18 juillet

  • PXI-6259 wiring

    Putting together another data acq. system that has PXI-6259 cards.  Attached is how I have typically wired in the past with TBX-68 terminal boards, however when I go to ni.com and look and the manual it does not agree with my typical witing scheme.  Any idea why they dont agree?
    Attachments:
    AI.pdf ‏10 KB
    NI-6259.pdf ‏89 KB

    You have it correct. For channel 1 (technically channel 0, because we like to 0-index everything) in differential mode the DAQ card takes inputs on AI1 and AI9 and compares the two values. It doesn't reference directly to ground, but instead references one to the other. This document might do a better job of explaining it: Field Wiring and Noise Considerations for Analog Signals. The scheme we have for differential inputs is to typically have the inputs be 8 AI channels apart (AI2 goes to AI10, AI3 goes to AI11, etc.)
    Edit: Consider reviewing this resource for double-checking wiring connections using DAQmx Tasks in MAX:
    Using Connection Diagrams for NI-DAQmx Tasks
    Tim W.
    Applications Engineering
    National Instruments
    http://www.ni.com/support 

  • Simultaneous update of Oracle and Cache memory

    What is the mechanism to maintain data integrity in case there is simultaneous update request to both Oracle DB and IN-Memory DB
    Is there a locking mechanism to prevent such cases

    I assume you are referring to the specific case where TimesTen is being used as a cache for Oracle data and the data is updateable in both places? There is no mechanism to prevent simultaneous update in both. Such a mechanism would introduce an unacceptably high performance overhead thereby negatibe the value of using TimesTen. Best practice dictates that one designs and implements the system in such a way that for any particular piece of data only one of TimesTen or Oracle is the 'master' thereby ensuring that this situation does not arise.
    Chris

  • Simultaneous updates in MDM

    Hi,
    When two users simultaneously update a record in MDM using MDM Java API, the record would be inconsistent. How can we avoid writing simultaneously or reading a record when one user is writing it so that there would not be inconsistent data.
    Thanks,
    Padmaja

    Hi Padmaja,
    You can use the Checkout feature in MDM.
    Only the owner of the checkout can modify the record and all other users will view only the copy of the record .
    Hope It Helped
    Thanks & Regards
    Simona Pinto

  • Simultaneous updation of sine wave using 2 PXI-6711 cards using RTSI Trigger

    Hi ,
    How to generate continuous sine wave using two pxi-6711 cards at same time without any phase shift using traditional nidaq functions.
    Regards,
    satya

    In LabVIEW, go to Help>>Find Examples. Navigate to Hardware Input and Output>>Traditional DAQ>>Multiple Device. There is an example there called "Two E Series Shared Scan Clock". That example is for analog input, but you should be able to modify it to be for analog output. Basically you will just have to share the scan clock from one board(master) and use it as an 'external' clock for the other board(slave).
    -Alan A.

  • How to synchronize NI PXI-6534 and NI PXI-6259?

    Hi,
    I am trying to output a continuous analog waveform (sine, dc, ramp, etc) using an AIO card (6259) and a DO pulse (using the PXI DIO 6534 card) with a customizable Duty cycle in each period of the AO signal. I need them to be in sync. Both cards reside in the NI PXI-1042Q chassis. I am using this solution as an example but can't get it work.
    Also, my DO card cannot write high-frequency pulses on one line - I should instead use the entire port. It also cannot produce CO pulses.
    Can anyone help with a simple vi? What is the correct way to synchronize these two cards (I am a beginner in LV) in one crate?
    Thanks in advance,
    ~Paul

    Hi Paul,
    I see that has been a while since there were no activity here.
    Did you manage to synchronize them?
    Basically, you can synchronize them by using the PXI backplane clock. A very nice tutorial can be found at the following link http://www.ni.com/white-paper/11369/en
    Best regards,
    IR

Maybe you are looking for