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

Similar Messages

  • How to setup three SharePoint sites on one server?

    Hello,
    How to setup three SharePoint sites on one server?  I have three sites like:
    http://site1
    http://site2
    http://site3
    And need to have them running up on one server. I recall some changes need to be done to the host file, but not sure.  Can you advise on what to change?
    Thanks,
    Paul
    Paul

    you need to make entries in DNS to get this done.
    check here:http://spshare.blogspot.com/2012/05/how-to-create-host-header-web.html
    nice blog with step by step explanation:
    http://thuansoldier.net/?p=1323
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

  • How to setup multiple base station under one network?

    How to setup multiple base station under one network? I have 6 rooms but one airport base station makes really difficult to get good signal from every rooms. I wonder if I can setup multiple airport base stations talking to each other under the same network to build up the signal strength will help solve this problem. But, is it possible? How?

    One route would be to utilize a "roaming" network. In a roaming network, you would connect multiple AirPort Extreme Base Stations (AEBS) to the same Ethernet. Of course, this would require that your home is already wired for Ethernet.

  • 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 a static IP for a wireless printer

    This problem has been ongoing for several versions of OS X and the last five printers I've had and I'm finally over messing with it.  For some reson, when using a wireless printer with OS X this is a repetetive problem, and I think if I configured the printer to a static IP address instead of using DHCP, it might work better.  At least once a week, if not more often, I'll print something and get the ubiquitous Dock error of "Printer is not connected".  The printer is still in Preferences, but if I delete it, then it doesn't show up as it should for selection.
    The only way to fix this is reboot, and then the printer shows up again in Preferences.  I select it and all is well again...until a few days pass and the same thing happens again.  Using an HP LaserJet P1102w, still a current model, but it doesn't matter which printer I use.  I also have an Epson Artisan 725 and the same thing happens with it about once a week.  Also, this happens from both my Mac and my wife's Mac, so it's not an issue with just my machine.
    I've searched for documentation on how to setup a static IP address for a wireless printer with the Airport Extreme, but all I find are tutorials on how to do it with an ethernet hard-wired printer.  Any help would be greatly appreciated.

    You could set up your router to do manual assignment of IP address instead of using DHCP, but that is a PITA, because then you'd have to manually set up IP for all your devices.
    If you have AirPOrt Extreme, you could do this:
    In your Apple TV, go to the Settings >> About and write down the MAC address of your ATV
    Start up the AiPort Admin Utility
    Go to Network tab
    click + in the DHCP reservations
    Choose an IP you want for your ATV & Enter the MAC address
    From now on, this IP address will be reserved to the MAC address and only your ATV will be able to get it, no other device will.
    It is not a static IP in a true sense, but behaves just like one.
    Works great for me...
    If you don't have a AP Extreme, I'm sure other routers will allow you do reservations too.

  • How to setup Charms in a 2 tier landscape ?

    Hi All,
    We have a two tier landscape i.e only having development and production system so how to setup STMS and all other settings in this type of scenario.
    Can we use Virtual system in STMS as a Quality system ? If yes then please guide us and tell me how to proceed as if we dont know how to add virtual system in SMSY in solman. Please provide us with a clear picture and give us detail documentation if possible.

    Hi All,
    Please tell me as per the SAP standard recommendation is it necessary to have a cycle like DEV->QUAL-PROD for Charms as we are not having any Quality system or Client here in our landscape.
    Please suggest a way how to proceed in this case. Please help me out.

  • How to setup breakpoints in a vector space?

    Hi,
    How to setup breakpoints in a 2D vector space in NI 7344 and check for them using flex_read_breakpoint_status_rtn?
    Thanks.

    Hi,
    Is Office Communicator something to do with the Word, Exel and Powerpoint Office Package ?
    What sort of Screen Names or IDs do you use with that ?
    If these are MSN/Live accounts names then it can be made to work for Text Chats but not Video or Audio Only chats
    10:38 PM      Friday; April 20, 2012
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
      iMac 2.5Ghz 5i 2011 (Lion 10.7.2)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • How to setup iChat in a office

    How to setup iChat in a office that using Office Communicator as a IM ?

    Hi,
    Is Office Communicator something to do with the Word, Exel and Powerpoint Office Package ?
    What sort of Screen Names or IDs do you use with that ?
    If these are MSN/Live accounts names then it can be made to work for Text Chats but not Video or Audio Only chats
    10:38 PM      Friday; April 20, 2012
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
      iMac 2.5Ghz 5i 2011 (Lion 10.7.2)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • How to Setup Historical DSC Database on a standalone Server

    Hey @all,
    I am looking for documentation how to setup a standalone server for the DSC Module(Ver. 8) Historical Database.
    My aim is to log all data to this server. The Server will be running Win2K.
    Do I have to install the complete Labview 8 software and the DSC Module?
    Does a walkthrough exist how to setup a DSC server?
    Thx!
    Carsten  

    After installing the runtime you should only have to reboot the computer in order to get the citadel service running.  At the point, for citadel purposes, this machine will behave as though you had the DSC development system installed.  The 8.0 runtime has no setup requirements...it should only need to be installed.  Unlike previous versions, 8.0 requires you to build your application into an executable and the runtime should be invisible to you once you install it.  If this is not the case, please post about it so it can be looked at.
    If you have specific questions, please post them and I will either try and help you find the answers, get them posted, or answer them myself.
    Regards,
    Robert

  • How to setup the security based on roles in Organization.

    Hi,
    How to setup the security based on roles in Organization.
    For example:Few users are Manager and a few user are Non Manager .Manager should have access to all work data including Non Manager and Non Manager should access based role.How to setup this? How OBI server identify the user role?
    kindly let me know.
    Regards.,
    CHR

    Hi,
    You need to have Back End support to achieve this. In Back End you need to create two groups . You need to know what joins has to be made for which group (which is more important) and also make session variable for the userrole (with SQL supporting it). In the BMM layer, we need to put the security join conditions in the 'where clause'.
    And make a common report. User loggin in with the respective userid will have userrole and joins assigned in the Back end. And they will be viewing the report according to their access.
    Hope this will solve your problem.
    Regards
    MuRam

  • How to Setup JMS in Siebel Server

    Hi
    Currently we have a Requirement to work with queuing System from JMS Queuing
    How to Setup the JMS Queuing from Siebel Point of view?
    Does JMS Should be Installed in Siebel Server?
    Plz Provide Inputs for How to Set up the JMS Queuing Mechanism and Setting up the Queues for Posting and Receiving the Messages from JMS Queues
    Thanks & Regards
    Rajendra Prasad

    Update - it works ! At least I can connect to Mountain Lion (not server) from my iPhone using the VPN Server Configurator app.
    Here's what I did :
    1) download the app and install
    2) setup using the help files on the web page : http://www.greenworldsoft.com/product-vpn-server-help.html
    3) at the last stage you need to setup port forwardin on your router
    4) under Airport Utility 6.0 you cannot setup ports 500 or 4500 due to BTTM conflicts but setup the other 2 ports (1723 TCP and 1701 UDP), update airport extreme
    5) download Airport Utility 5.6 from here : download already extracted utility  it is in it's extracted form as is necessary under Mtn Lion (thanks to NetUse Monitor for the download - great app by the way)
    6) run 5.6 and setup port forwarding (Advanced-Port Mapping) for the other 2 ports (500 and 4500 UDP), update airport extreme
    7) that's it, I was able to connect to the VPN from my iPhone !

  • How to setup word docs, converted to PDF on local drive with links to a second file at a page

    how to setup word docs, converted to PDF on local drive with links to a second file at a page
    Need to setup a set of word documents, converted to PDF that has links from one file to a second file at a given page.
    I would like to setup a set of pdf documents, on the hard disk of a PC or Mac, that can be open with acrobat pro running on the same computer and have the link jump to, and open in a new window, in acrobat pro, to a given page of a second document in the set.
    Is there a way to setup a link in word and the conversion to pdf that will result in a link that is equivalent to the acrobat link type  you get when you add a link of the type Go to a page in another document?
    Tools-Advanced Editing-Link tool, make a box
    Check: Go to page view, Next (Create go to view dialog opens)
    Open second document and go to page
    Click “Create go to view dialog” to set up link
    Result is a link, when view by link properties, with an action of
    Go to a page in another document
    File: C:\My Documents\second file.pdf
    Page: 43
    Zoom level: Custom
    I got close but did not solve the problem:
    I have a version that uses links to a website, using #page=43 at the end of the hyperlink.
    That works but will only open to the page if is through the web browser, opening the acrobat reader plugin.
    I need to open from a folder on the local harddisk (with relative links), in acrobat pro to the given page of the pdf, on a PC or a Mac.
    I could bookmark each page “pagenumberxxx” and jump to the bookmark/page if that would get around some problem
    Current Systems in use to create documents with links and view them:
    Windows XP SP3
    Word 2003 SP3
    Acrobat 9 pro version 9.4.4
    Or just to view them:
    Mac OS 10 Lion version 10.7.4
    Acrobat 9 pro version 9.5.1
    (note I have limited understanding of Mac’s)
    John

    No.  There seems to be no automated way to do it.  You can of course go into the PDF and manually add links after you have converted to PDF, but that is what we want to avoid having to do.  We want it to be automatic from the Word doc.

  • How to setup a password protection in my wireless airPort?

    How to setup a password protection to my wireless AirPort?

    To configure the AirPort base station for wireless security, you will need to use the AirPort Utility.
    AirPort Utility > Select the AirPort > Manual Setup > AirPort > Wireless tab
    Wireless Security: <None | WEP (Transitional Security Network) | WPA/WPA2 Personal | WPA2 Personal>
    Wireless Password: <enter your desired password>
    Verify Password: <reenter your desired password>

  • How to setup my airport for music streaming

    Hi all
    I would like to use my iPhone and or iPad to stream music from Pandora and Spotify to my 5.1 (Wired) Speakers.
    This question is similiar to this thread https://discussions.apple.com/thread/4153687 however i wanted some clarity and thought best to start a new discussion before pulling my hair out doing this the wrong way.
    I have an unused Airport Express basestation (A1408) My current home setup is as follows:
    Modem Router: (Netgear DGND3700) N600 Wireless ADSL2+ Dual band Gigabit
    Home Theatre Computer: Windows 7 (Cat6 LAN Ethernet connection) NO LAN port
    AV Reciever: (Onkyo TX-SR309)
    5.1 Speakers: Wired connection to AV Receiver (NOT Airplay capable)
    Laptop: Windows 7 (Cat6 LAN Ethernet connection)
    My question is how to setup the airport, i understand it can be used to enable airplay streaming of music over the existing WiFi network, as these music streaming apps download and play music concurrently i would not want to have to switch between to two seperate WiFi networks. Should i plug the airport into the HTPC? I would need to purchase a LAN Splitter as the only LAN socket is already taken up with my cat6 connection. OR would i plug it directly into the modem/router? This second option is prefereable.
    I have attached an image of my setup below. Any advice would be great, Regards Steve
    [URL=http://s1293.photobucket.com/user/steve7677/media/homesetup_zps63eaf61c.jpg.html][IMG]http://i1293.photobucket.com/albums/b599/steve7677/homesetup_zps63eaf61c.jpg[/IMG][/URL]

    Still slightly confused, with the link you provided i chose scenario 2. All the other secanrios instructed i connect the airport express to my home stereo or powered speakers. As i dont have an aiport express only an airport extreme there is no audio jack and cannot connect it to the stereo/speakers.
    option 2: Connecting to an existing Wi-Fi network as part of a roaming network
    Ensure that the AirPort base station Ethernet cables are connected as above
    I have done this and conected it via ethernet cat6 to the modem/router
    Launch AirPort Utility 6.1. The Assistant will automatically configure the Roaming network
    Im using windows 7 and cannot find this version of aiport utility, only 5.6.1 - The message comes up: Aiport utility was unable to find any airport wireless device. I am running this utility on my win7 HTPC (which is connected to my modem/router via cat6 LAN) The airport light is blinkng amber.
    would you reccommend a hard reset of the airport? or can you provide a link for AirPort Utility 6.1.?
    Regards

  • How to setup CCMS with Solution Manager

    Hi, All
    My question is how to setup or satallite connection with Solution manager 4.0 for CCMS alerts
    Is that RFC connection using both sites, trusted and satellite system ?
    I would like to setup CCMS alerts through Solution manager and R/3 ccms
    please anyone has some guide or URL or any idea send me
    We are using SAP NW 2004 620 4.6C (SLD=DV,QA,PR) and solution manager 4.0
    Thanks in advanced
    J
    Edited by: issue2008 on Sep 19, 2008 12:13 PM

    you need to install CCMS agents(sapccm4x, sapccmsr) on satellite systems & configure them with the central system(solman).

  • How to setup a BW test system?

    Hi
    We are having R/3 and now we are planning to install BW. Now a few questions are coming to us like...
    1. In what cases we need a test system? Can we bypass test system and have development and productive system only?
    2. How to setup a test system? Should we reload data from R/3 test system or can it be sourced from BW Productive system (in order to get more historical data)?
    3. Has anybody setup a test system and loaded data from BW Productive system before?
    Any suggestions will be highly appreciated.
    Regards,
    Pundit

    Hi Arjun,
    It is depends on client, for eg:say if client follows Sixsigma processes, then give much importance on Quality. So in this scenario it becomes much clear to have Quality box, If for other clients who don't have much Quality processes in place. you can take up the Quality (test) in Development box itself.
    And it also depends on data you want have test on. For some clients they move much of their historical data for testing purpose..
    Also some clients mainatain all 3 boxes(Dev,QA & Prod.)in sink..so that it would be easy for any changes or whatsoever.
    Hope this helps...
    Best Regards,
    DMK
    *Assign points if it helps...

Maybe you are looking for

  • How can i update an existing item in sap using CSV file?

    Hi, i am trying to update an existing Item in SAP using a CSV file. in the message log i get an error message that the item already exists. what should i do in order to update the existing record? Thanks, Udi

  • How can we set default value within html:file

    Hai, To set default value to text box i use the following code. It works well. <html:text property="modifyserverdesc" value="<%= serverDesc%>" styleClass="text" size="38"/>But for file i use the code <html:file styleClass="file" property="modifyserve

  • How to manage Undo with multiple models linked together

    Hello, I'm writing a java desktop application using MVC model. I'm using javax.swing.undo.UndoManager and related classes to manage the undo/redo capabilities. I know how to use it but I can't see how to implement it in a clean way when I have severa

  • Crooked video help

    I recently did some simple shooting, the camera was locked down. However, due to the placement of the camera I could not get a "straight" shot. Is there anyway I can rotate the video just a few degrees clockwise so that the video footage is not rotat

  • What is the best way to back up my imac

    I am new to using an imac and wondered what is the best way to back the data up? Can I back it up to the cloud and if so how do I do this?