How to sync and/or trigger NI-DAQmx devices in LabView

I am using LabView 2009 with a cDAQ-9174 chassis that includes a NI 9263 analog out device and a NI 9222 analog input device. I've learned from the examples that I can sync the devices to the same sample rate. But I am looking to sync the devices such that the exact moment I start acquiring input data on a 9222 channel, the 9263 starts generating an output. Secondly, I am interested to know when using just this equipment, is there a way to very accurately trigger one device off the other with some delay. So in summary I am interested in two behaviors:
1) Synchronize a 9263 output channel to a 9222 input channel, such that the start of a 9222 analog input measurement triggers a 9263 analog waveform output. and,
2) Have the 9263's analog output start for example EXACTLY 100 samples (provided sample rates are synced) after the 9222 starts collecting data. In other words, a delayed trigger.
I imagine this is preferably done in hardware such that no software delays occur. Is this possible using these devices? Or do I need some external clocking mechanism?
Thank you!
Solved!
Go to Solution.

Hi tzoom84,
Going back to your original questions,
To do 1) and 2), I don't think you need to use counters.
The shipping example LabVIEW 2010\examples\DAQmx\Synchronization\Multi-Function.llb\Multi-Function-Synch AI-AO.vi is probably a good starting point for 1). (Possible problem: if you're using multiple AI timing engines at the same time, this example's assumption that the AI task has "ai/StartTrigger" is not valid. If this turns out to be an issue, you may need to replace Get Terminal Name With Device Prefix.vi with the DAQmx Trigger >> Start.Term property and add a call to reserve the task.)
For 2), add the DAQmx Trigger >> Start.Delay and DAQmx Trigger >> Start.DelayUnits properties to the AO task:
If you really do need to use counters, you can do so without the NI 9401 by using cDAQ1/_ctr0 through cDAQ1/_ctr3, which are internal channels: How do I Access Internal Channels on any DAQmx Device?
Brad
Brad Keryan
NI R&D

Similar Messages

  • How to FaceTime and iMessage on multiple apple devices with one iTunes account

    We recently received iPad 2's for Christmas and was looking for some advice on how to FaceTime and iMessage on multiple apple devices with One iTunes Account (Apple Id).  I have created or attached other e-mail addresses to our apple id but do not know how to use them on the new devices.  Our home MacBook Pro uses our main apple id for FaceTime.  The iPads have been setup with the main apple id w/o being able to use FaceTime and iMessage.
    Please Help...
    I appreciate the help and support.

    P and V-
    If you are trying to connect to someone with a different Apple ID, I think all the devices should work, but one at a time.
    The problem is when you try to connect between two with the same Apple ID.  Once the calling device tries to make the connection, it finds the second device to be "busy".  That is where each needs to use a different E-Mail address when setting it up.
    On iOS devices, when you press the Home button to exit an App, the App may still be active in the background, even when the device is sleeping.  If FaceTime or iMessage is merely being active that way, it may be enough to "tie up" the E-Mail address.
    From the Home screen, double click your Home button.  You will see a list of recent Apps along the bottom of the screen.  Press and hold on one of them until they start to wiggle.  You will then see a red minus sign on each.  Pressing the minus sign will remove an App from the list, and stop it from working in the background.  (Click the Home button to stop the wiggling, and again to hide the recent Apps.)
    Fred

  • How to generate and use Matlab(R2007) .dll's in Labview

    Is there a step-by-step example on how to generate and use Matlab(R2007)  .dll's in Labview.
    Our experimenal hardware is LabView-controlled and we want to pass
    images/2d intensity arrays to a more complex matlab program that will
    return an array of extracted data which we want to use in LabView again.
    Thank you
    Carsten

    I recommend having a wrapper created around the matlab dll that converts the datatypes for you. There is a lot of fooling around with pointers involved which is very difficult in LabVIEW. btw, this got much more complicated after Matlab 7. Essentially, you need to convert your inputs into mxArrays, and then add those mxArrays to an mxArray list that you pass by pointer into the matlab dll. You also need to create a mxArray list for the outputs from the dll which you will need to extract your data out of before converting it back into a LabVIEW supported datatype. It's a big hassle. We do this pretty often, but we have created a c library that handles all the conversions, so it is feasible for us. Unfortunately, I can't share the library, but hopefully this information will help you get where you want to be.
    Like I said, it would be easier if you can just get a c developer to write a wrapper for you to keep it simple in LabVIEW. Alternatively, you might try getting your m-code to work in Mathscript.
    Chris

  • I need to know how to access and use the Blue Tooth device that comes with the Thinkpad W520

    Forgive me for being a techo illiterate. But I know that this thing supports Blue Tooth. And one "problem" with it is although it has a DVD and sound card, music and movies have very lousy audibility. Is there something I can do about that? I can barely hear anything on a movie unless I plug in head phones to the computer. But that leaves me stuck in my seat. I'd like to get cordless headsets. And I'm ready to purchase the Plantronics BackBeat 903+ Wireless Stereo Headphones - Mic, Rich Audio, Bass-boost, Voice Alerts, OpenMic, 3-way Earpiece. And have heard that it's compatable with a pc that has Bluetooth capabilities. but could someone get back to me with exactly how I access and use the Blue Tooth device?

    I was searching for how to setup the 903+ and my W520 and came to this thread.
    1. The OP was asking about audio and there are updated audio drivers / tweaks to get it louder / install different drivers.
    but if you are going to go BT headset....
    2.  What I did for the 903+
    Uninstalled the currently installed ThinkPad Bluetooth program. ( I forget the exact name, came stock and was out of date).
    Required reboot.
    Activated the Bluetooth with FN + F5 menu.
    Downloaded the updated Bluetooth driver from lenovo (search lenovo driver matrix).
    Ran the updated Bluetooth driver install.
    Rebooted for good measure.
    Double-clicked the Bluetooth Tray icon.
    Clicked Add A Device.
    Turned off my 903+ and continued to hold down the power to enable pairing mode.
    Showed up in devices and added it.
    Worked for audio. There are probably additional options for enabling the mic.
    Hope that helps whoever might find this thread.

  • How to get data from a USB-UIRT device using Labview?

    How to get data from a USB-UIRT device using Labview?
    I'm trying to get data from a USB-UIRT device, is it posible with Labview?
    I really appreciate your help, 
    thanks

    You may want to contact the developer of the device for the API and DLL.
    http://65.36.202.170/phpBB2/viewforum.php?f=3

  • I have an older ipod classic 40gb now have new comp and want to know how to sync  and burn my cds to it

    I have an older ipod classic 40GB, how can I update /resync it to my new comp?

    Hello Elizabeth,
    You want to know how to sync content from your iPod back over to your computer correct?  If so, see this article for different possibilities.
    http://www.metaphoriclabs.com/articles/5-ways-to-copy-music-off-your-ipod-window s-mac-os-x/
    Once you have successfully, moved all your content from your iPod back over to your new computer, erase and sync your iPod with iTunes.
    B-rock

  • How to set and test a USB keypad device in VISA Raw mode

    I can setup a simplified USB keypad device using NI-VISA Raw mode but I can't seem to read interupt data from the device. Basically, I want to be able to push a button on the USB keypad device and then read the output hex code using LabVIEW. Do I have to further configure my device through NI-VISA in order to read the device output?

    This example shows how to get the interrupt from your USB device.
    InterruptUSB.vi
    Let me know if this helps!
    Shawn B.
    National Instruments
    Use NI products on Linux? Come join the NI Linux Users Community

  • How to sync and not lose info

    Currently I'm using dot mac to sync two macs that I own. I also sync my phone daily to one of my macs. Last week I went through ALL of my contacts and edited, deleted, and organized on one of my mac computers. Since then, due to automatic syncing with dot mac/and or syncing with my iphone, all of that editing and organizing work done on my computer has reverted to what it previously was, a disorganized mess. How do I make sure that when I change contact info whether its on my phone or computer, that those changes are permanent and when syncing, the most recent changes prevail???
    Thanks,
    Gavin

    As with any uypdate, you need to make sure that everything is on your computer before updating.
    Everything will be erased and restored to your iphone when you update.  iot is very important to make sure that everything on your iphone is also on your computer before updating.

  • How to sync and let the address book data overtake everything on my phone?

    Hi everyone!
    I have a Sony Ericsson k750i.
    I have no problems whatsoever syncing when I first got my phone etc.
    In all my address book entries, I have updated all of my numbers to have the international dialling code before each of the numbers. I now want to sync with my phone again to ensure that all the numbers in my phone now have the new numbers that are entered on address book.
    How can I use iSync to ensure my phone only takes what is in my address book and my address book basically ignores the data from my phone?
    I hope this makes sense!!
    Thanks in advance!
    iMac G5   Mac OS X (10.4.6)  

    If you want to overwrite the data representing contacts and calendars on you mobile handset with data from the Address Book and iCal, you should reinitialize the truth database by either…
    • removing, then adding back [and reconfiguring] your device, or
    • opening the iSync Preferences… dialog, and selecting the Reset Sync History… option.
    Neither step will affect your data store, but it will compel the Sync Services framework to behave as if it were a first-time synchronization, and give you the opportunity to Replace or Merge the data with your handset. You should choose Replace.

  • HT204053 Old Apple ID used with new iPhone OS, how to sync and use new Apple ID?

    My iCloud account on my iPhone is my old Apple ID. My MacBookPro and iTunes are with the new Apple ID. I updated my iPhone with the new operating system and my iCloud account was with my old Apple ID and wouldn't accept the Apple ID or password so I had to skip the step where it synced my FaceTime, iMessage and iCloud. How can I change my Apple ID on my phone so it reflects my Apple ID on all my other devices?

    Welcome to the Apple Community.
    In order to change your Apple ID or password for your iCloud account on your iOS device, you need to delete the account from your iOS device first, then add it back using your updated details. (Settings > iCloud, scroll down and hit "Delete Account")

  • How to sync and play itunes movies in 1080p hd on iPhone 4S/5/5s or iphone 6 plus

    About 6 months ago I discovered iTunes was set by default to 720p. These MUST BE CHANGED TO 1080P!!!!!!!!.......So I installed FULL 1080P file on my laptop on iTunes...  When I download movies on iPhone 5s/iPad mini the file is 720p.... So within about 60 seconds of starting download of 1080p files into my laptop of iTunes purchases. It was at that moment that I realized it was that file my laptop has on file to sync to my Apple device...Ten minutes later when the first 1080P HD file was downloaded  I must say... The resolution is amazing... I now use this same process to install movie files from iTunes.. In FULL 1080P.. Not 720P... Works on my iPad mini also... Avatar is 5.4 GB if installed over Wi-Fi... However sync with laptop and file is 6.5 GB in size... Called Apple told them... No reply yet.... You must delete 720P files from your laptop... Look for file size in any movie purchase and you will see DOWNLOAD IN 1080P.. This will open preferences in iTunes for you to the correct tab so you can change setting to 1080p from default of 720p... DELETE any downloaded movies already downloaded into laptop... You can check file quality by right click on any movie folder and the look at movie info... Will say 720p HD... Delete to recycle bin and iCloud will appear on each movie... Now download 1080P HD file... When completed. Right click any file to verify it is 1080P HD... The sync with device...... And get ready to be upset with Apple for holding back your device for the last 2 years 3 months and 16 days......And be ready to catch your jaw from hitting the floor when you see your screen in full 1080P HD.... Apple Engineer's were asleep.....
    <Edited By Host>

    Currently There is only one option to watch 1080P movies from iTunes on your Apple devices... With a sync with a laptop.. Apple by default sends the 720P file... Users have no option to control video download... Some like me want the full file... Some uses may think the 720P file is fine... However I see the difference... And it is big.. The iPhone has a 1080P camera... So it can play and store a 1080P file... And the screen does display a better image... Just watching a iTunes movie and shooting a video in 1080P on your iPhone and you can see the image is better.. YES it's 1080P... not 720... Apple has know from release of iPhone 5 on September 21,2012 iPhone can play 1080P file... However the system is overloaded as I seen on my Apple T.V. On Christmas say ready to pay is 8 hours 22 minutes... I pay for 50MBps download and 5MBps download.. fastest I can get in my area... It's obvious it will load Apple's network and the don't want to make the changes... Users now wanting 1080p files for iPhones/iPads.... The system load would jump off the scale... I contacted Apple told them the issues, currently they have stopped emailing me replies on the issue after issue was escalated to Apple engineers... Apple knows... Yet...
    I want control of what file I download into my device over Wi-Fi... Apple has missed the ball for over two years... Missed it rolling down the hall... Missed it bouncing down the stairs.... Missed it as it rolled across the street and is still going with no fix yet....  

  • How to sync and charge multiple iPad Minis?

    My family has 5 iPad Minis and 3 iPhones (2x 4s and 1x 4), and I have been looking for a better way to manage these devices.  I have a solution for everything but the USB hub.  My computer only charges the first two plugged in, although it will allow me to sync all at one time.  I'm looking for a way to charge and sync them all at once.  I've been looking for a powered usb hub that will accomplish this, but so far, I'm not having much success.  Everything under $500 I've come across says they won't charge iPads (or more than 2).  However, I noticed somewhere that iPad mini only requires 1.0 A vs the 2.1A for the iPad.  Is this true?  If so, does anyone have any experience with powering and syncing multiple iPads, and if so, what device did you use?
    Thank you in advance!!

    It sounds like this will solve my problem:
    http://www.amazon.com/Plugable-Charger-Adapter-charges-Samsung/dp/B005P2BY5I/ref =cm_cr_pr_product_top

  • How to sync and backup the linked contact

    I tried to soft reset my Lumia 800, after I add in all my live account, gmail and facebook, I found that all my contacted that used to linked together, I need to relink them again. Is there a way that I can backup the contacts and I don't need to link them again after I reset the phone.

    Hi Babytrunks,
    Thanks for your post and welcome to the forum!
    After a reset imported contacts will get linked automatically if they carry an identical name. Usually Facebook names are full 'First Last' so your contact information for other sources like gmail or Hotmail must also have the full name listed. Often mail contacts only have a first name and so they do not get linked. Currently Windows Phone has no option to save the link information in a backup.
    As Windows phone synchronizes all contact information to their respective online service you can always find them there as well as create a backup to e.g. a .CSV file from there. As an example you can backup your LiveID contacts by going to http://contacts.live.com and select manage>export to download a backup file of your contacts.
    Hope this helps, 
    Kosh
    Press the 'Accept As Solution' icon if I have solved your problem, click on the Star Icon below if my advice has helped you!

  • How to Sync and Play Blu-ray on Samsung Galaxy S3/SIII

    Have got a Samsung Galaxy S3 and I want to put and play 1080p Blu-ray movies on Samsung Galaxy S3. So I'm looking for an easy way to rip and convert Blu-rays to Galaxy S3 here!

    Hello kelly023
    Welcome to the BlackBerry® Support Community Forums
    You've got a great device. But I don't think this is the right page to post. 
    Ron
    Click "Accept as Solution" if your problem is solved. To give thanks, click thumbs up Blackberry Battery Saving Tips | Follow me on Twitter

  • How to create and use scales for DAQ-6014 in Labview?

    Hello,
    In my application, I use the DAQmx-driver to read the 16 analog input terminals of my DAQ-Card. I create a task with all the 16 channels and define for each channels the input domain (from 0 to 10V) and configure them as NRSE. Then I configure my task to measure the waveforms during 10s with 1000 Hz each time I need it.
    The waveform I measure are raw data and I need to scale them to get a mesurement with physical signification. This is actually done after each measure, which costs a lot of time (almost 5 seconds). Then I tried to use the DAQmx Create Scale.vi to create scales and attach them to the channels during my task creation. The creation of scale works fine and I can attach them to the channels. But when I do my measure, I get the raw data - unscaled.
    I have no idea, what I am doing wrong. I look for some examples on how to use the DAQmx Create Scale.vi but I can't find none.
    Does anybody already have some experiences with this VI?
    Cheers,
    Olivier

    Hi,
    May be I don't get exactly what you mean with:
    "Right click On DAQmx read and check the options with DAQmx AI read (it is a polymorphic VI) ."
    I set the DAQmx read polymorphic VI to the option "Analog 1D Wfm NChan NSamp".
    Anyway, I send you 3 VI:
    - NIDAQ_6014_CreateScales.vi: where I create my scales
    - NIDAQ_6014_StartAIN_Scaled.vi: where I create my task and use the scales
    - Measure.WaveFormReader.vi: where I read my data
    May can you see what is wrong.
    Cheers.
    Attachments:
    Measure.WaveFormReader.vi ‏39 KB
    NIDAQ_6014_CreateScales.vi ‏22 KB
    NIDAQ_6014_StartAIN_Scaled.vi ‏29 KB

Maybe you are looking for

  • Error in transports of BI technical content

    Hi , While transporting BI technical content , we are getting an error 'Program terminated (job: RDDEXECL, no.: 10524800)' It also giving a dump as follows: SAPSQL_ARRAY_INSERT_DUPREC Error analysis     An exception occurred that is explained in deta

  • How to aviod the unit funciton(KG,EA,M) in SAP BEx?

    Hi, while loading the data through flat file to BW system i have some different units like - KG,MG, EA,. when i run the report on bex analyzer showing all unit values but i don't want the values. how to avid the those unit measure values? again it sh

  • Dispatchee Stopped ...URGENT

    Hi All, After restarting the computer Dispatcher Stopped working and in Event Viewer it's giving the error below: ORA-00354: corrupt redo log block header ORA-00312: online log 4 thread 1: 'E:\ORACLE\DR1\ORIGLOGB\LOG_G14M1.DBF' ORA-00312: online log

  • Error comes up in Actions

    I have Elements 9 and I just downloaded a few actions. The error that comes up when I try to run the actions is  "The command 'Make' is not available."  I have created a new layer so that it is not trying to perform the action on the background layer

  • Setup.exe problem in Oracle Developer Forms 10g in Windows XP

    Hi All, I have downloaded the below files for installing Developer Suit 10g from http://www.oracle.com/technetwork/developer-tools/developer-suite/downloads/101202winsoft-087370.html. 1. ds_windows_x86_101202_disk1.zip (626,122,752 bytes) 2. ds_windo