Analog in digital in and digital out slow ?

Hi
6261 PC board used.
I have 5 analogue channels as input, 2 digital channels as input, one of which is a trigger for the analogue
sample read. The analogue samples are written to a labview measurement file (.lvm) all this
is fine and dandy and can read up to about 720 k samples/s.
But when I try to output the second digital input (the one that isn't a trigger), I do not get an output
that is related to the input (using an oscillioscope to view input and output). The input shows
about 5 pulses to the outputs one. Eventually I want to sample the second digital inputm and
delay it slightly before outputting it, but I want to be confident I will be getting the same number
of pulses out.
I even trimmed to vi down just have one dig in, going straight out, and it still didn't match the
number of pulses.
I am using DAQmx throughout, could that slow things down (using express DAQ) ?
any help appreciated,
sandra

here is my latest vi, I am still having some problems.
I created this vi from the 'Gen Dig Pulse.vi' example, I have changed it to
generate the pulse according to ticks rather than frequency and I have
added the trigger.
The source of ticks is a digital pulse from an optical encoder that is sending
out 360 pulse per revolution of an engine crankshaft, the trigger is from the
same optical encoder, but it one pulse per revolution. I require the
output to be of the same frequency as the trigger and delayed by a
configurable number of ticks.
The output is ok for up to about 400 revs per minute, but after that the output
is intermittent and some pulses are lost.
If anyone can take a look at the vi and advise me on this I would be grateful.
I have tried leaving only the 'wait until done task' in the loop, but this gave
no output, I also tried adding an implicit 'timing' task, but this gave to many
outputs,
regards,
Sandra
Attachments:
Gen Dig Pulsetickstrigger.vi ‏32 KB

Similar Messages

  • Simultaeno​us digital out and analog in

    Hi. I am running into an issue with the simultaneous AI (analog in) and DO (digital out) with Athena (www.diamondsystems.com) and LabVIEW (see the supplied files): The original program example supplied by somebody (the attached 060126 file) runs fine with these two simultaneous operations.
    However, for my specific requirements, I would have to put a frame (flat sequence) around the DO part (the attached 060131 file), followed by another flat sequence frame that changes another DO state. The reason that I must do this is that I have 2 valves which change states as the AI operation continuous to run.
    I have noticed though, once I put those flat sequence frames around it, the DO pauses and doesn't perform the operation until the AI loop is stopped. I have tried to create various local variables but the issue persists. Would there be a workaround for this? Thanks.
    Attachments:
    HMIR_SBC_060131.vi ‏374 KB
    HMIR_SBC_060126.vi ‏137 KB

    I have taken a look at your code. Based upon your description,
    and the fact that I do not have the driver for your device, I am not exactly
    sure where the program is pausing.  I can give you some suggestions to
    resolve your problem.  When you use a flat sequence structure, every piece
    of code in a frame has to finish execution before the next frame will start
    execution.  If you have code in parallel (i.e. digital output and analog
    input) in one frame and the same in a second frame the digital output and analog
    output in the second frame will not start until all the code in the first frame
    has finished execution.  In your case it you have a while loops for
    digital input and output in the first frame.  When both of these loops
    finish execution, you should see the second frame start shortly after. 
    From your description what I believe is happening is that the digital output in
    the first frame is finishing and waiting for the analog input to finish. 
    After the analog input loop finishes the second frame can start.  If you
    want the second frame's digital output to start before the loop finishes
    execution you will need to take that code out of the frame.
    Regards,
    Jesse O
    Applications Engineering
    National Instruments
    Jesse O. | National Instruments R&D

  • 2 digital out 2 analog in loop

    LabVIEW 2013 SP 1
    Windows 7 Pro
    NI DAQ PCIe-1433
    Custom PC board attached to the DAQ
    Each individual signal disucssed has been tested and works.
    Hi all,
    I have an application that does a bunch of setup, when the user presses go, runs a main loop that does a number of things, saving images, etc., and also periodically sets digital output pins HI, and then LO.
    This has to be synchronized with the image retrieval and storage.
    It is working well.
    I need to add 2 Analog Input signals, also synched with the Digital out and the video capture.
    I simplified it all so that in the test application, I start the app, set up some preliminary stuff, and when the user presses go, run a main loop.
    I've removed the video component and data file components for now.
    The test app will trigger a single digial out (e.g. left puff) and start listening on a single Analog In (e.g., left mic).
    When the left mic reaches a trigger level, it flags it, and stops listening.
    When the time is up, the digital out (left puff) is set to LO.
    If the trigger level hasn't been reached when the digital timer is up, it stops listening then too.
    That works okay (the first time).
    However, the loop keeps running, as it should.  When the next time hack comes around the the same thing is supposed to happen again (either left or right), the digital signal is not tripped, and the Analog In is not started.
    And that failure is true for all future loop iterations.
    I threw in a counter to show me if the LabVIEW was enterring the case statement, and it is counting up as it should.  But the signals are not generated.
    If I go to the diagram, and turn on the 'lightbulb' tracking; everything works.
    I get the digital output when I should, I get the analog in.
    When I turn off tracking, it doesn't work past the first iteration.
    I've attached the example file.
    Any thoughts are appreciated,
    Jeff
    Solved!
    Go to Solution.
    Attachments:
    Puff timing loop.vi ‏36 KB

    Hi Julian,
    That occurred to me as well, but I couldn't see it.
    After taking the night off, and looking at it again, I noticed that the 'stop' case was executing directly following the 'start' case (within the same iteration of the while loop).
    So, it was actually turning on, but then immediately turning off, before any slow-witted human could discern the action.
    Thanks for the solution.
    Jeff

  • X-Fi XtremeMusic and Digital Out

    Please forgive me if this has been asked before, but here goes...
    I have a WinXP machine with an X-Fi XtremeMusic card that I would like to hook up to my Onkyo TX-SR600 receiver. The ideal situation would be to run a single digital line into the coax digitial input of my receiver. I would like all sounds to pass through the receiver and let the receiver do the decoding if possible.
    Do I need to hook up analog cables for the 6 channels in addition to the digital line?
    Thanks for any help,
    - James T

    No, just run the digital coax to the rec. If you don't have one, you will need a digital coax and a /8 mono to RCA adapter. Radio Shack has these items.
    If you play games and want surround sound, you will have to go to analog out. I acutally have both analog out and digital out. They work well.

  • Digital out to analog speak

    I have just bought a new Audigy 2 ZS, but I have a question regarding the possible use of the digital out of the card for my Logitech 560 speakers, with some kind og adabter/converter, as I find it to be quite a hassle to crawl under my desk everytime I have to use my headset.
    I have read that I can use an adabter for my Line Out and 2, but that is lovering the sound on the one that the headset is connected to, so I really don't like that option, as that isn't ideal when gaming and using speakers.

    Jutapa wrote
    Hi This may become quite expensi've (thought). You need an adapter to split signal (from output to dig speakers and DAC) so you do not have to swap cables when changing between speakers/headphones, and a DAC to convert signal from digital to analog. DAC must be capable to convert multi channel input into 2 channel stereo output. You find available devices by googling. .jtp
    As I see it, I need a device that will make it possible to get my analog speaker witch has two connectors, that tight now occupies the Line Out and 2 on my soundcard, making it impossible to connect my headset at the same time, unless I find a way to use the Digital output
    I also don't understand why it's not possible to use the many "pins" on the soundcard, for my headset, as I would guess that when you buy a Creative Soundblaster Audigy 2 ZS Platinum , you get some sort of cable that goes from these "pins" to the front panel? I would really like to be able to use these "pins" to connect my CoolerMaster Stacker I/O Panel http://www.coolermaster.com/index.ph...0+CM%20Stacker
    Message Edited by Blind-Goose on 04-7-2005 02:37 PM

  • Xtrememusic: Digital out or Analog out, Advantages Disadvanta

    I have a Xtrememusic card, that has a wonderful sound using the analog outputs to 3 Sonic Impact T-Am
    ps.
    Now, I'm curious about using the digital out to a Panasonic SA-XR55 digital amp/receiver. I know I would lose the CMSS, but the Panasonic can do it's own synthesis of surround. I'm interested in knowing from users about the pros and cons of using the digital out or analog outs. I know the quality of the Xtrememusic DACs are good, and I read that the Panasonic?has a excellent sound output as well. If I choose to use the digital out, I could just use?the motherboard onboard digital out, although only in DVD modes does it do a true bitperfect pass through. In stereo mode, it's still using some of Windows to mix the sound. I could also use the digital out of the card. Seems like a shame to bypass all of that nice analog the card is capable of?
    Oh yeah, anyone know if a old Creative Li've 5. I/O panel will work with a Xtrememusic card??Thanks

    wiersch,
    I believe you might have Skype set to auto-configure your soundcard. Try this, open Skype and go to it's audio setting menu. Disable the option 'Let Skype adjust my sound device setting.'
    Jason

  • Audio output changed to 'Digital Out' and speakers don't work! Please help!

    I'm not exactly sure what's happened, but after starting up my macbook pro, my speakers/audio haven't worked.
    The volume control in the menu bar is inactive (looks light grey) and in the Sound menu, I have no option for output devices except for 'Digital Out' - there is no other option for 'external speakers' (as per usual) or anything!
    I can plug earphones in, and sound comes out fine... I don't know what may have happened, but I'm really worried - I use my MBP for home & work; I need my speakers to work!!
    If anyone can offer any advice, I'd be really grateful. Thank you in advance.

    Talked to Tech Support about this when my machine locked up in this same fashion. There's a little "door" inside the headphone jack that can get stuck in the open position and keep the audio from switching back to the internal speakers / stuck in the digital (optical) output position...
    The solution: the iPick... It's a toothpick, but if you use it to poke around inside the headphone jack until the little door gets unstuck, it becomes an iPick, and a box of them are very expensive, but they come in lovely colors and are very intuitive to use...
    I'm not kidding... Stick a toothpick (or other non-conductive small stick) in the headphone jack and joog it around until it releases the little door...

  • Help. I have a Google Hangout in 40mins and my sound seems to have vanished. I went to Sys Prefs and it came up with Digital Out....and the Internal Speakers option is no longer there. How do I reboot, or fix this please?

    help. I have a Google Hangout in 40mins and my sound seems to have vanished. I went to Sys Prefs and it came up with Digital Out....and the Internal Speakers option is no longer there. How do I reboot, or fix this please?

    There are many possible causes for this issue. Take each of the following steps that you haven't already tried. Some may not apply to your model. Back up all data before making any changes.
    1. Start with the steps recommended in this support article. Don't skip any of the steps. It's the starting point for further efforts to solve the problem.
    2. Make sure you have a fully up-to-date installation of OS X.
    3. If you've installed an application called "Memory Clean" or any other third-party software that is supposed to "clean" or "purge" memory automatically, remove it according to the developer's instructions and restart. You should do that even if the software is not causing the problem, because it's useless.
    4. Other third-party software that has been reported to interfere with sound output includes "Boom" and "Samsung Kies." If applicable, uninstall according to the developer's instructions (not by dragging something to the Trash.)
    5. If an AirPlay device is selected for sound output from iTunes (or from other applications via third-party software such as "Airfoil"), deselect it.
    6. Launch the application "Audio MIDI Setup" by entering the first few letters of its name in a Spotlight search and selecting it in the results (it should be at the top.) Select Built-in Output from the list on the left. If the Mute boxes are checked, uncheck them.
    7. If a red light is visible in the audio-out port when sound should be playing, the internal switch is stuck in the position for digital output. You may be able to free it by inserting and removing a mini-stereo jack of the proper size. If not, the machine needs to be serviced. Inserting any kind of tool in the port may cause damage that won't be covered by the warranty.
    If there's no red light, the switch may still be stuck in the headphone position. Try to free it the same way.
    8. Disconnect all wired peripherals except keyboard and mouse, if applicable. If more than one display is connected, disconnect all extra ones. Restart and test.
    9. If you have a MacBook Air, turn off Bluetooth and restart.
    10. Start up in safe mode. Don't log in; just restart as usual when the login screen appears. When you do, make sure the words "Safe Boot" do not appear in the login screen. If they do, the system is still in safe mode and sound won't work.
    11. Reset the NVRAM.
    12. Reset the SMC.
    13. Triple-click anywhere in the line below on this page to select it:
    /Library/Preferences/Audio
    Right-click or control-click the highlighted line and select
              Services ▹ Reveal in Finder (or just Reveal)
    from the contextual menu.* A folder should open with an item selected. Move the selected item to the Trash. You may be prompted for your administrator login password. Restart the computer and empty the Trash. Recreate your settings in the Sound preference pane.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard by pressing the key combination  command-C. In the Finder, select
              Go ▹ Go to Folder...
    from the menu bar and paste into the box that opens by pressing command-V. You won't see what you pasted because a line break is included. Press return.
    14. Reinstall OS X after backing up all data.
    15. Make a "Genius" appointment at an Apple Store.

  • Western Digital External Drive and a VERY slow computer. Is my HD failing?

    Hello, thank you for looking at my question.
    First off, I am NOT very tech-savvy, but I'm willing to research and learn, I'm just afraid to make a mistake and blow up my computer.
    I have had my Macbook for 2 years. I have not backed up my hard drive during that time. Bad, I know.
    Recently I've noticed my Mac getting slow with the "spinning beach ball" showing up more often and everything getting slower. Usually a reboot will help. Yesterday, for the first time, the reboot took about 8-10 minutes! I figured that wasn't a good sign, so I headed down and picked up an external hard drive (Western Digital Essential model, 1TB) and figured I'd back everything up. I formatted the drive according to the Mac partition model (tech support from WD helped over the phone) and got it going. From 1530 to 0800 this morning, of 52 GB it had only backed up 15.3 GB. The fan was running at high speed the entire afternoon and night. That's about one GB per hour. Is that normal?? Then, it froze and wouldn't respond, or back up at all. Just nothing. I held the power button down and restarted it.
    At this point, I am concerned that perhaps the hard drive is failing (hence the speed and fan issues) and that maybe I should be taking it in to a repair shop (we don't live anywhere near an Apple store)
    Do you think this may be the case? Is there any way to back up my hard drive faster - before it dies? I have two years worth of photos and papers, etc on there, music and such and it would be a tremendous loss if it all crashed.

    carroteye wrote:
    Hello, thank you for looking at my question.
    First off, I am NOT very tech-savvy, but I'm willing to research and learn, I'm just afraid to make a mistake and blow up my computer.
    Good! Better to inquire than leap!
    I have had my Macbook for 2 years. I have not backed up my hard drive during that time. Bad, I know.
    Yup.
    That's about one GB per hour. Is that normal?? Then, it froze and wouldn't respond, or back up at all. Just nothing. I held the power button down and restarted it.
    No, not normal at all.
    At this point, I am concerned that perhaps the hard drive is failing (hence the speed and fan issues) and that maybe I should be taking it in to a repair shop (we don't live anywhere near an Apple store)
    Do you think this may be the case? Is there any way to back up my hard drive faster - before it dies? I have two years worth of photos and papers, etc on there, music and such and it would be a tremendous loss if it all crashed.
    As slow as that backup was, anything else will be nearly as bad.
    There are four common causes of this:
    Your startup drive is nearly full (less than a couple of GBs of free space). If that's the case, find something big you can "archive" to CD/DVD or copy to the external HD and delete.
    The drive is failing.
    Corrupted directores, etc., in the file system
    One or more "runaway" processes, usually from incompletely-installed or partially-deleted apps
    |
    It's a toss-up; try to diagnose what's wrong, or try to get a backup.
    The fastest way to back up, with the least "thrashing" of your hard drive, would be to start up from your Leopard Install disc and use the Restore tab to make a copy of your internal HD on the external.
    That will copy any file system problems "as is," but if your internal HD is beginning to fail, at least you'll have a full copy of the data (corrupted or not) on the external HD.
    Check this to be sure your WD drive will boot your Mac: http://wdc.custhelp.com/cgi-bin/wdc.cfg/php/enduser/stdadp.php?pfaqid=1787 If not, do all the steps below except #4.
    Here's what I'd recommend:
    1. Start up from your Install disc, per the yellow box in #1 of [Formatting, Partitioning, Verifying, and Repairing Disks|http://web.me.com/pondini/AppleTips/DU.html]
    2. Reformat the external HD, with a single partition, per the blue box there. You'll want the +Mac OS Extended (Journaled)+ Format and either the GUID or +Apple Partition Map+ *Partition Map Scheme* as detailed there.
    3. Use the Restore tab to copy your internal HD (almost certainly named +Macintosh HD)+ to the external HD, per #7 in the link above. Note that will copy the name of the internal HD to the external.
    4. When that's done, quit Disk Utility, then select +Startup Disk+ from the Utilities menu in the menubar (per the yellow box above). Select the external HD and start up from it.
    |
    The copy may take a very long time. There will be a progress bar, but they're notoriously inaccurate under the best of circumstances. If it completes, and you can start up from the external, post back and we'll see if we can find the problem, and either fix it or confirm that you need to take it to Apple.

  • Using ATV2/3 with non-HDMI Receiver and theater projector and also need iTunes downloaded movies to work.   I'm thinking to use the Toslink digital out for surround sound and an HDMI to RGB converter for video but not sure the iTunes DRM will prevent?

    I have a theater with a Runco projector but non HDMI. alas, my receiver is non HDMI. Changing electronics and projector is a non-starter.
    I would like to be able to buy HD movies on iTunes and watch them by streaming via Apple TV3. My plan is to capture surround sound from the TosLink digital out, which my preamp/receiver can handle. For the video, I need to convert the HDMI to RGB component to feed my receiver.
    This is where iTunes DRM and HDCP issues might arise. I am under the impression that I need an non-HDMI compliant converter so that ATV3 can even talk to my receiver. It is my understanding that this is possible and takes care of the HDCP issue. But what about the DRM issue? All I want to do is buy and watch HD movies, no bad intentions. I find it incredible that iit might not be possible.
    Anyways, is there a 100% certain approach even if it costs up to $300-400. Again, changing hardware is a non-starter so please avoid the obvious "buy an HDMI amp and projector".
    Thanks

    I have a theater with a Runco projector but non HDMI. alas, my receiver is non HDMI. Changing electronics and projector is a non-starter.
    I would like to be able to buy HD movies on iTunes and watch them by streaming via Apple TV3. My plan is to capture surround sound from the TosLink digital out, which my preamp/receiver can handle. For the video, I need to convert the HDMI to RGB component to feed my receiver.
    This is where iTunes DRM and HDCP issues might arise. I am under the impression that I need an non-HDMI compliant converter so that ATV3 can even talk to my receiver. It is my understanding that this is possible and takes care of the HDCP issue. But what about the DRM issue? All I want to do is buy and watch HD movies, no bad intentions. I find it incredible that iit might not be possible.
    Anyways, is there a 100% certain approach even if it costs up to $300-400. Again, changing hardware is a non-starter so please avoid the obvious "buy an HDMI amp and projector".
    Thanks

  • 2009 Mac Pro no audio out from Line Out and/or Digital Out.

    Hey guys, I recently bought a new tv which has an optical input and thought I'd buy an optical cable to connect it to my Mac Pro's (4.1 model 2009 I believe) digital out port which I have never used before .
    The issue I'm facing since is that I can't get out from my mac pro to my tv. I also bought a cable to direct sound from my mac pro's line out, to my tv's red/white stero audio ports.That didn't work either.
    When I select Digital out as the default audio output in Sound preferences the OS says that there are not default audio controls for that device and the sound icon in the menu bar is greyed out while when I switch to line out output I can control volume but no audio is coming from my TV.
    I've been searching on forums and didn't find any relevant answer so if someone knows what may cause this that'd be really helpful.
    *ALSO: I've got windows 8 instaleld on my mac pro as well. The digital out doesn't work there as well although the line out does send sound to the TV.
    ** I also have soundflower installed and perian although I don't think any of them would mess things up like that.
    Do you think this is a problem with my Mac or is this a common Mavericks issue (sorry forgot to mention I'm on 10.9.2)
    Many Thanks,
    Thanos.

    When I select Digital out as the default audio output in Sound preferences the OS says that there are not default audio controls for that device and the sound icon in the menu bar is greyed out
    That's normal.  Is the correct audio input selected on the TV?

  • Macbook stuck in headphone (optical digital-out port) mode. Plugging and unplugging headphone jack no help.

    Stuck in headphone (optical digital-out port) mode. What do I do? Plugging and unplugging headphone jack no help.

    Do you see a red light in the headphone jack?? If you do, then the microswitch is stuck and you need to turn it off. Try poking it with a toothpick.
    If you don't see a red light, then try resetting the SMC and PRAM and see if these helps. Here are the links.
    http://support.apple.com/kb/ht3964
    http://support.apple.com/kb/ht1379

  • When I unplug Apple headphones from my MacBook Pro sond from internal speakers not work, and system soud preferences displayed: Output: optical digital out port only

    When I unplug Apple headphones from my MacBook Pro sond from internal speakers not work, and system soud preferences displayed: Output: optical digital out port only

    If you see a red light in the audio output port, then the internal switch is stuck.  Insert the earphone plug a few times and see if you can trip the switch.  If that fails, insert a cocktail stirrer and the like and jiggle it around inside.  If that fails, take it to an Apple store and have the technicians at the genius bar do it for you.
    Ciao.

  • Converted vinyl to digital but now when I try to burn the music to a cd it says there is a writing error and kicks out the disc.

    Just converted a bunch of my dad's old vinyl to digital via the ion ez vinal converter.   However when I went to burn the music, which sound fine over the computer, to a cd it says there is a writing error and kicks out the disc.  Can I correct this somehow without having to import these all again?

    Update yrou OS to 10.6.8.
    The problem is not with iTunes or the file so you won't need to import them again.
    Try a different brand of disc.

  • Servo motor control using CRIO+FPGA and 9477 digital out module

    Hello experts,
    I have a futaba BLS551 brushless motor digital servo (3 wires-+,-, signal). i also have a CRIO+real-time+fpga and 9477 digital out module. how can i generate servo signals using this module
    please help...
    Thanks,

    freemason,
    In order to control your servo motor with the FPGA and or DIO module you will have to write drivers to control your motor and drive.  While this is possible is an extremely complicated and time consuming process.  I would highly recommend you consider using the NI 9514 with soft motion as it will provide full servo functionality and is relatively easy to use.
    Regards,
    Sam K
    Applications Engineer
    National Instruments

Maybe you are looking for

  • IPad and Camera Kit

    I plan on getting the Apple "camera kit" for the iPad, so that I can upload photos and video from a camera while traveling. Apple says that you will be able to transfer photos AND video. But I had a question. I will have a Canon DSLR T2i(rebel) that

  • How to download(read) n th byte of a URL?

    Hi! I wrote a program in Java which downloads a URL file. I also want to add resuming functionality to it(Like GetRight) which makes it possible to start downloading from for ex. 1000000. byte. I tried to use InputStream class' skip(long n) function.

  • Ipad2 won't send mail

    No matter which account I choose I consistently get the error message that the "recipient was rejected by the server".  On the Apple site it was suggested that all other servers be turned on, they are.  It was also suggested I turn the iPad off and t

  • Entity allready exist?

    The first method createWorkTask() from the first code example is in my stateful bean. The second method workTaskDTOToWorkTask() is an static method in a java class called Assembler. It just creates entity object from DTO's . The third method saveWork

  • MIGO is not possible for refurbishment order

    I have generated a Purchase requisition for a non stock material through refurbishment order(PM04) Plant Maintenance. Later PR is converted into PO further we are unable to do MIGO as it is giving a error "MIGO is not possible for refurbishment order