Analog in PWM out question

Hi  Helpers,
I have the following problem.  I am trying to output a PWM signal of with a dynamic pulse width based on an analog input signal.  My code (attached) seems to do just that, however the only way i could get rid of that pesky error that says that it has to complete one cycle was to stop start and rewrite the task, otherwise that error would pop up.  This would be no problem, however, when I restart before I rewrite the task when I have changed to a new duty cycle in my while loop the first pulse width in the task is sent out before it rewrites and updates.  How do I fix this.  I want it to update smoothly.
thanks
Chris
Attachments:
AnalogInPWMout.vi ‏116 KB

I didn't look at the VI, but go ahead and post the solution so that if someone else sees a similar issue they can get the answer here.

Similar Messages

  • EREC: Please explain the setup for knock-out questions in questionnaires

    Hi
    Can anyone help me with the setup procedure for working with knock out questions in SAP 604 SP1.4?
    I know the basics, but can't seem to figure out how to set it up.
    Greatly appreciated
    Jakob

    Hi Roman,
    I also have a question regarding the Knock out questionnaires in EHP4.  I have set up a single selection questionnaire.  I would like to see a green light for all but one of the answers and I can not make this happen. If I mark the 4 I want green as "Expected" they appear red as does the one that I don't want to be expected. If I gradually mark them 100, 90, 80, 60, they are all green, even the one I marked with zero points. If I gradually mark them and mark them expected they are ready.   I have tried 9 different variations.
    Here is what it looks like:
    What was your most recent PEP rating? 
    LP
    SP
    CP
    IP
    NP
    I want green as my result if the internal candidate picks any of the first 4 and red if they pick NP.  I am just unsure of how to make this happen. Any advice you could provide would be most appreaciated!
    Thank you,
    Kelly

  • Multiple Headphone outs question

    Hi there,
    I recently asked for a bit of help getting my home studio setup sorted and I just need a bit more advice please!
    While I'm experienced in the live room of a studio, I'm still very much an amateur on the other side of the glass! Basically I'm just putting together a basic setup to track some demo's / ideas with my band. So far, I've got a Motu 8PRE interface running the drum and instrument mics into Logic and the outs from the 8PRE going to the monitors. My question is this...
    How do I set up multiple headphone outputs with independent mixes so band members can have a custom mix in their headphones? I'm having a hard time figuring out how this would work and have no idea what I need to do in Logic to set it up, and also what hardware I might need.
    If anyone could explain this, both how to set it up in Logic and the kind of hardware I would need that would be fantastic!
    Many thanks in advance

    1) Yes
    2) Sorry - I assumed that box had 8 outs too - I assumed wrong. You could get an additional multi-channel interface which accepts ADAT inputs as well as analog, which would give you great flexibility. MOTU makes several - better yet check out RME, Focusrite, and others. There are dozens on the market - it depends on your budget and future expansion plans.
    3) Yes, or a headphone distribution system - but again, your budget will determine this. Hear, Furman and Aviom all have systems. Or for much less, Presonus headphone amps. Depending on your physical set up, you might need a snake unless you're using an already wired recording room.
    Good luck.

  • IMac Adapter Out Questions (Mini-DVI to VGA)

    Hi everyone,
    I've got a 2.4ghz C2D 24" iMac. For two years I had the iMac hooked up to my LCD tv via this route: iMac -> Mini-DVI-to-VGA adapter -> 75' VGA Cable -> LCD TV. I recently upgraded my TV, and no longer have a VGA port on the TV. I'm not looking to replace any cables because it's quite costly, and at this point in my life I'm not willing to spend that much to replace the setup.
    My new TV has a DVI-D port on it. This is a very random connection, and yes, it is DVI-D (NOT DVI-I or DVI-A). What I'm wondering is if I get another adapter, a DVI-D male to VGA female adapter, will the iMac recognize the TV? I'm not sure how the video card treats the exterior Apple Mini-DVI to VGA adapter and am wondering if a simple $5 adapter will suffice.
    Any help or information regarding this would be great.

    That is a common adapter and it works, but the way it works is digital-to-analog. In other words, you plug the male DVI end into your computer and the female VGA end into the VGA cable (which then goes to your monitor/TV/whatever). Unfortunately it would not work if you went DVI(Mac)-to VGA cable-to DVI(TV) because it cannot convert the analog signal back into digital.
    Those adapters are handy to have anyway so you could always buy one and try it out, but I'm sure you'll just get a blank screen (or the dreaded "no signal" message). Sorry

  • Getting an Analog (RCA) audio out from Apple TV 2

    I have an extra Acer X203H (DVI-D with HDCP) that doesn't have any speakers. I want to hook up a new Apple TV 2 to it so I can stream Netflix in the bedroom without having to buy a TV. So, here's the question:
    I am certain an HDMI to DVI should work, but I don't have a solution for audio. Converting optical audio to RCA appears to cost around $100 for the equipment but I'd like to avoid that if all possible. Any thoughts or ideas would be great.
    Thanks!

    You need an HDTV, this is a computer monitor, correct?
    Then you can either hook it up directly, sound output would be through the TV. Or you could hook up a receiver via optical. If you have an analogue receiver you can buy an adapter or route through the TV if there is an audio out port.

  • No DVI signal, only analog and TV-out

    Hi, I bought a new computer a couple of months ago and have been having some problems with my graphic card (MSI FX5900XT-VTD128). Most of these problems disapeard when I re-installed WindowsXP.
    However, about one week before I re-installed WindowsXP my screen just went black when I tried re-installing my video drivers. First I thought that somehow in the pocess of installing the new drivers my video card got overheated or something and broke (highly unlikely, but I have seen strange things in my days).
    Furthur investigation revealed that it was "only" the DVI signal that stopped transmitting. I have since then tried to enable the DVI signal with no luck. I haven't found any options in both the NVIDIA drivers nor the MSI drivers in which to choose analog or digital output.
    My monitor shows that there is a DVI conneciton, but the screen is still black. In most of my tests I would have DVI and TV-out plugged in so that I can make changes in the settings through my TV.
    I'm running out of things to try and I am very open to suggestion, if anyone would be so kind.
    ASUS K8VSE-DX
    A64 3200+ ClawHammer
    Kingsmax SDRAM 512MB PC3200
    MSI GeForce FX 5900XT (BIOS Version 4.35.20.38.14, 128MB RAM)
    WindowsXP SP2
    NVIDIA 66.93 drivers (have tried with MSIs drivers)

    Thanks for your suggestions.
    I already tried the driver solution, and it didn't work... However, I can try even older driver and see if they will enable the cards DVI signal. The problem with the driver solution is that there is no setting for choosing CRT or LCD monitor. In both dual view and clone mode I can only choose between a monitor and TV output... One thing I found strange though, normally at boot time (before the OS loads) I would get both analog and digital signals, but now there is only the analog signal.
    The monitor solution I will try in a couple of days, when I will carry my computer over to a friends place and try it on his monitor. The only problem is that my computer is so damn heavy! :-)
    I will keep trying and let you guys know how it worked out.
    In the meantime, if anyone else has a suggestion, I'm all ears.

  • Audio out question?

    I just got in my G5 DP 2.7 and this thing is sweet. Now with that said, on to the question. I have a pair of Yorkville Studio monitors that I want to connect to my G5. The Yorkvilles have XLR inputs on them and they are Bi-amped. I do not want to go 1/8" mini to XLR for sound quality reasons. Do you guys know of another way that I can do this, possibly using the optical out to a coverter?? or a new sound card that has RCA's. Then I could go XLR from the d/a box or rca to XLR with a sound card. I was looking at some M-Audio pieces, just a little unsure. Any input will be greatly appreciated. Thanks again in advance for your time.
    PowerMac DP 2.7   Mac OS X (10.4.3)   17" PowerBook 1 Ghz, 1GB, 60GB HD, SuperDrive

    M-Audio's Audiophile 2496 in their Delta line is really good. Has RCA in and out, as well SDIF. Great specs, works on MAC and PC, and is only 100 bucks.
    Jshood

  • Buffered analog output puts out additional sample on aborting or stopping task

    I'm using DAQmx and LV 8.2
    I'm doing a buffered analog output operation where the sample clock is driven by pulses from ctr0 on the same device (PXI-6070E).  When I end the analog output task, either with the DAQmx stop task or DAQmx control task (abort option selected), the AO puts out one additional point from the buffer.  (I have checked by setting breakpoints and stepping through the code that the additional point is definitely generated when the analog ouput task is aborted)
    I need the output to remain where it was before the stop task command is issued.  How do I fix this?
    Thanks,
    Marc

    I'm watching to see if there hasn't been a sample output in a certain length of time, then terminating the task if there hasn't been.  Specifically, I have ctr0 outputting pulses to drive the task based on input from the AnalogComparisonEvent terminal.  I'm using a counter on a different PXI device to count the number of pulses and monitoring this count to determine if another sample has been output.  I'm outputting the ctr0 pulse to PFI3 as well, and I'm monitoring both the ctr0 output (which drives the ao clock) and the analog output itself on an oscilloscope.
    Basically I'm sitting in a while loop waiting for the monitoring counter to fail to increment.  Then I terminate the while loop and stop the analog output task.  I can watch the analog output on the oscilloscope while I step through the program.  Immediately before the daqmx control task - abort (or daqmx stop if I don't abort first, or daqmx clear, if I don't abort or stop) vi runs, the analog output remains outputting the last sample.  Immediately after the abort, stop, or clear, the analog output advances one sample in the buffer. 
    During this time, ctr0 does not output another pulse, so the scan clock should not advance.
    Thanks,
    Marc

  • Scale out question: how does instance name affect primary/secondary node

    Hi:
    OBIEE 11.1.1.6.4, Windows 2008
    On a test instance the following happened:
    1. Enterprise install of OBIEE 11g had problems
    2. Reinstalled OBIEE 11g, but the installer created an instance2
    3. All was well with this install
    4. Performed all necessary shared catalog and RPD steps
    5. On a second server, installed OBIEE 11g using the scale-out option
    6. On second server, this created an instance1 directory
    7. All components start up and we can log into OBIEE using either server1 or server2
    Question:
    Does OBIEE use the instance names in a scale-out? Our primary node is instance2 and the secondary node is instance1, though on a separate server. Will this cause a problem?
    Thanks for any help.

    Hello,
    This can be run on any of the replicas that the availability group participates in to return the primary instance:
    select primary_replica FROM sys.dm_hadr_name_id_map nim
    inner join sys.dm_hadr_availability_group_states ags
    on nim.ag_id = ags.group_id
    WHERE nim.ag_name = 'MyAvailabilityGroupNameHere'
    Sean Gallardy | Blog | Microsoft Certified Master

  • Video out question

    Question - I bought a cable at Fry's to do video out. (goes into my headphone jack and has the red, yellow, and white cable coming out) I get sound but no video. what gives? Do I need an Apple branded cable? Did I do something wrong? How can I do this?
    Also do I want the setting on PAL, or NTSC?
    thanks

    Is this polling for the chip something that started with the 2.x firmware. I didn't have a problem using the 1.1.x firmwares, but I made the leap directly to 2.1 yesterday and now I can watch video on TV.

  • SPDIF digitial in/outs question.

    Hello.
    I'm hoping someone here might be able to help me. I use Logic Pro 7. I used to run a motu 828 but it recently died so I just purchased a new Tascam FW-1804. It lacks any outputs other than the digital spdif ones. I am trying to figure out how to route some dry tracks to an external vocal processor. The tascam and component have spdif connections and I'm assuming that is how i will have to send them, etc. But I can't seem to wrap my brain around the "how-to's" to make this happen smoothly.
    I am under the impression that I will have to change the outputs on a track to "send" it to the processor and then record enable another track with new inputs? I've never used spdif and i am not really comprehending it all. Can i keep my signals mono or does everything get converted to stereo. Can i monitor the signal as it is going through the processor without hearing the dry track? Do i need to worry about volume levels? Do I have to do everything through busses or audio tracks? i need some guidance.
    Again, i realize i am showing my lack of experience with this but I'm trying to learn so if my questions don't make sense, feel free to correct me...politely of course.
    Powerbook G4   Mac OS X (10.4.6)  
    Powerbook G4   Mac OS X (10.4.6)  

    You would use the I/O plugin most often, it allows you to select your in and out channels. Insert it where you want the effect to appear. You do need to mind your levels sending and returning. You will use a S/PDIFcable for send and return, this will allow stereo over 1 cable:FYI. Use mono or stereo depending on what you want to process... usually stereo.... not always. Keep it mono if you wish. Just use the I/O "plugin" where you want the effect to be placed in the signal path.
    Best,
    J

  • Tv Out Question

    I'm trying to hook up to my tv, Got a good deal on a second hand 36". and i have the tv out cable to s-video cause the vid card isnt s-video, thats why i have the adapter, so when i have the cable hooked from the comp to the tv, How do i know that it is connected, Is it thru display properties, CCC, cause i dont see anything in them indicating that i'm connected to the tv, Also i have rebooted to see if it gets activated, I'm stuck. DOK

    Update found my answer at Ati knowledge Base, This is quoted from their website, "737-22077: How to Enable TV Out on Radeon X1000 Series Products
        The information in this article applies to the following configuration(s):
                * Radeon X1000 series products
        The following is a list of the supported display Configurations for the X1000 series products with VGA, DVI-I, and TV Out connections:
            * VGA + DVI
            * DVI + TV Out
            * VGA (via DVI to VGA adapter) + TV Out
            * DVI + HDTV Component
            * VGA (via DVI to VGA adapter) + HDTV Component
        If connected to the VGA port directly with an analog monitor, the TV Out port can not be used simultaneously. Should you have difficulty enabling TV Out, please ensure that any analog displays are connected using a DVI to VGA adapter."

  • Mini DVI out questions

    I've been thinking of hooking my Macbook up to my 52" 720p HDTV. But most of the mini-DVI adapters I've been looking at are only S-video or compsite (RCA) out.
    Has anyone used this and can let me know how this works? I'm mostly watching TV shows that I have downloaded from iTunes, burn to CD and watch them in my DVD player. But I would like to save myself the disc trouble and connect the Macbook directly to the TV.
    Also, how do normal programs or surfing the web look on a TV using these adapters?
    I'm not intersted in using the AppleTv.

    You need one of these at the link below assuming your TV has either an HDMI or DVI input.
    http://store.apple.com/us/product/M9321G/B?fnode=home/shopmac/macaccessories/cables&mco=MTUzNTQ
    From problems noted on other postings here, you should stick with the Apple mini DVI cable.
    Then, assuming you are going to go the HDMI route, you will need a DVI-->HDMI cable. I would recommend getting a 6' cable unless you need more length. You will need a separate audio cable with either HDMI or DVI since the mini DVI cable does NOT carry sound.

  • TNS-12535: TNS:operation timed out Question

    I get the following error when I try to connect using oracle 9i personal client.
    TNS-12535: TNS:operation timed out
    The thing is the connection worked 2 days ago and then all of the sudden I get this error.
    I've tried changing the CONNECT_TIMEOUT to 0, but that hasnt work.
    Anyone have a solution?
    thanks, bryan

    sounds like a problem reaching the database over the network (or remotely, however that may be). Be sure you have access to the directory where your tnsnames file is located, if you have TNS_ADMIN set in the regisrty, make sure it is pointing to a directory you have access to, etc. I had this error the other day and it turned out it was just failure to connect to the tnsnames file directory on our network.

  • Hdajackretask line out question

    Hi there!
    I want to remap (retask) headphones jack (3.5 mm) to act as line out.
    Trouble is in that I can choose only from "Line out front", "Line out back", "Line out center", "Line out side", but I want just one simple "Line out" to connect to 1 channel amplifier.
    What can I make in such situation? Will "Line out front" be suitable in such situation? May be "Advanced options" checkbox will help (but I don't know how to configure port in this mode)?
    Thanks.

    Better audio would be relative.  Remember the audio will only be as good as the weakest link in the chain.  If you are prepared to use high quality audio files, amplification and speakers or headphones, then yes, you can get better audio performance.  But if you are only planning to make a partial commitment, you aren't going to get any gain and will just waste your money.
    Here is an example of a iPhone/iPad/iPod D/A device on Amazon.  I'm sure there are many more you can check out.
    http://www.amazon.com/Nuforce-ICON-IDO-SILVER-Audiophile-Grade-Headphone-Devices /dp/B005LRTH5Q/ref=sr_1_7?ie=UTF8&qid=1414176166&sr=8-7&keywords=ipod+lightning+ cable+headphone+amps
    You don't want to go too cheap because a poor quality D/A converter may make the audio worse.  What devices like this does, is take a function that your iPad already does through built-in circuitry and do it externally with the assumption that you can buy a D/A converter and amplifier with higher quality components than those used by Apple.

Maybe you are looking for