Need to generate a continuous sine signal to sound card output with volume control

I need to create a vi to generate a sine wave signal to sound card with Labview 8.5.
there is an example written with lvsound2.llb for it. but the volume control sucks. it has only 0~100 integer control and is not accurate enough for my application.
some one mentioned Contineous Sound Output.vi in Example search. But I could not find it any more in Labview 8.5.
Anyone could help? Appreciate it.

Dumbhead wrote:
there is an example written with lvsound2.llb for it. but the volume control sucks. it has only 0~100 integer control and is not accurate enough for my application.
Could you please explain in greater detail what you mean by "the volume control sucks"? The volume control is a Double Precision Float data type not an Integer. By accuracy, do you mean that you are trying to get greater precision? If you mean that the example simply is not loud enough at the maximum volume, you can increase the amplitude of the sine wave. I hope that helps!
Mike Lyons
National Instruments
http://www.ni.com/devzone

Similar Messages

  • How to generate a continuous sine wave for a given amount of time

    I am trying to output a continuous sine wave for a speaker, but I am having difficulty making it continuous rather than looping the signal for a given amount of time, which causes discontinuities. There is a VI in the Labview examples titles Continous Generation, but it produces a square wave. Is there a way to adapt this VI such that the amplitude and frequency can be used as inputs to create a sine wave?

    I found a VI that ships with labview(7.0)called continuous sound output. the output of this is a sine wave or you can change it to whatever you want.
    Sorry cannot help more
    Joe
    Joe.
    "NOTHING IS EVER EASY"

  • Using SO Write to play a continuous waveform using PC sound card. (Circular Buffers?))

    How can I play a continuous, repeating waveform using SO VI's (that isn't choppy)? I gather that I need to buffer the waveform, and I see examples using AO VI's, but how do you buffer using SO Write? What are Circular Buffers and might I use this technique to solve my problem?
    Windows ME
    Dell Inspiron 5000e
    LabView 6i

    Hi MGS!
    MGS writes:
    > How can I play a continuous, repeating waveform using SO VI's (that
    > isn't choppy)? I gather that I need to buffer the waveform, and I see
    > examples using AO VI's, but how do you buffer using SO Write? What
    > are Circular Buffers and might I use this technique to solve my
    > problem?
    >
    I've tried to do the same, i.e. synthesize a wave for continuous,
    non-choppy output, and have some un-solved problems.
    A buffer is sent to SO Write, which is then transfered to the device
    driver and the sound output hardware. The problem is how to refill the
    buffer that is sent SO Write, before the internal buffers of SO Write
    and/or the device driver or hardware empties their buffer, which would
    result in silence. We need a warning that the buff
    er is almost empty,
    so that more samples can be constructed. I've found no way to do that
    using LabView 5.1.
    However, we now how fast samples are consumed, so they can be produced
    at the same rate, or perhaps a little faster. If they are produced
    much faster, the memory will fill up, but if the difference is small,
    the program can run for quite a while. It was a year ago, or so, that
    I did this, so I don't remember the details.
    A circular buffer can be used in a multi-thread producer-consumer
    program. I've done it in C and C++, from some tutorial I found on
    threads, or maybe it was from the OSS (open sound system) for
    Linux. It is a buffer with a write position and a read position. The
    addresses wraps around, so it works a bit like a conveyor belt. The
    writer must check that the buffer is non-full, and the reader that it
    is non-empty. I'm not sure how to implement it i LabView, or if it's needed.
    Helge Stenstrom
    [email protected]

  • NO SIGNAL FROM SOUND CARD LINE OUT JA

    I have a Sound Blaster Li've-Value Digital 024 card on my pc, and I have been trying to use the line out (black) jack, but there is no audio signal coming from it. I use the green jack for my external speakers and they work fine,I have plugged them into the black output and still no sound.
    What am I doing wrong, I need som help ?

    Dubmaster,
    The Black Jack is the rear speaker output, it does not play the same signal as the front speaker out. Set the system to 4. on speaker settings in Audio HQ and it will enable the rear speakers. This will turn on the output for the rear jack.
    Jeremy

  • Need Sound Card Compatible With Intel D975XBX Mobo and Windows 7

    Did a search and no joy. I built a home theater computer about 5 years ago around the D975XBX,? I was using the Sigmatel integrated sound via toslink to my receiver without any problems. I installed W7 yesterday only to find that there are no Intel mobo drivers for W7. So before I go throught he hassle and expense of replacing the mobo and processor, are there any sound cards that are compatible with this mobo and W7? I don't do gaming on this machine, or 3D, mainly 5. out to my receiver. Thanks.
    Tim?

    DWell, I'll answer my own question. Finding it very hard to belei've that a driver wasn't available for the Sigmatel, I upgraded the Bios, then did another seach. Cha-ching, money!
    I really like SB cards, but I don't like spending money when I don't have to.
    Even though Intel said it stopped supporting?the mono?in '08, the bios was an '09 version. This may be helpful to others who are using this mobo.

  • Continuous sinewave signal

    hi,i need to generate a continuous sinewave signal which have amplitude and frequency continuously variable (without stopping the output generation),may you help me?thanks

    I have found no place where you can change the amplitude. 
    Attached is an example of changing the frequency.  You can vary
    the desired frequency while it is running.  LV7.1
    Message Edited by rpursley8 on 12-07-2005 02:10 PM
    Randall Pursley
    Attachments:
    Realtime frequency.vi ‏93 KB

  • How to generate 3 phase sine wave to output on ELVIS

    Hi .I need to make a star or delta connected circuit on ELVIS board.2 make this circuit I need 3 wave generator( with 120 phase shift) and one common ground
    and because the ELVIS function generator can only generate one wave I decided to generate countionuos sine wave in Labview.
    Now I can generate 2 continuis sine wave in labview and output them on the analog outputs of ELVIS.Ao-0 and A0-1
    but I dont know what to do for the third signal.the elvis board just has 2 analouge output and when I use  Ao-0 and A0-1 I cant use ELVIS function generator after that.so would u please help me on this problem.how can I output 3 contious sine wave in Elvis.I have attached my VI to this post
    Attachments:
    new.vi ‏38 KB

    Hi, I am also having some problem in generating two signals from two AO. Could you please tell me how to generate two different signals from two AO. I have attached vi which generate square wave from one AO 0. I need the inverted signal in AO 1. 
    Attachments:
    Pulse Width Modulation.vi ‏48 KB

  • I need driver sound card dv4 1402tu for windows xp (help me!!)

      I need driver model dv4 1402tu for windows xp - Sound card,  wireless network, etc... Thanks!!

    Please read the sticky post here
    Cheryl and I are working hard to make that post, please learn it and post if you still have difficulties.
    Pavilion DV2922TX, XP-SP3 32bit, Intel T5750 2.0Ghz, Nvidia Geforce 8400M GS with 128MB, 4GB 667 DDR2, 250GB HDD

  • Creating two sin signals using function generator.vi example

    hi all. i want to create two sin signals with different parameters using function generator.vi example. i tried to modify the example by copying the code and try to output two sin signals on different channels of the DAQ but error message saying that you are validating of the AO write buffer . attached is the file. how can i modify it to solve the problem?!
    Attachments:
    function_generator2.vi ‏123 KB

    Nidal,
    Below is an example that illustrates how to generate different sine waves on two separate analog output channels.
    Example

  • Generating a 6X Sine Wave using an absolute encoder

    How do I get an Analog Signal Generation Synchronized to six times the frequency of an absolute nine bit parallel encoders output with adjustable phase relation. I am using a PXI-6533, a PXI-6711 and have available a PXI-6070E.
    Now the long version of the problem. I have a 9-bit absolute encoder connected to a motor shaft (up to 420Hz). From the encoders 9-bit (0-511) parallel signal I need to create a synchronized 6X sine wave (up to 2500Hzwith an adjustable phase relation. Picture an electronic timing chain. For every cycle of the encoder, I need to produce six full sine wave cycles with a variable tuned phase shift. I have LabView 7 w/RT.
    I have tried to use the Update Clock (PFI5) to step through a buf
    fer but it seems to drop an update every so often. I also have tried to monitor the bit-0 line to determine freq. and scaled the update rate accordingly but the phase shifts all over the place. Does anyone have any ideas on the matter ? I would really appreciate it! Thanx….Phil

    Phil,
    Another different option to solve your application would be to use the new LabVIEW FPGA module and the 7831R reconfigurable I/O hardware. Using these tools you can configure the FPGA on the board to generate the sine wave based on the 9-bit parallel input. The most simple setup would be to have a lookup table in the FPGA that has a corresponding output value to each of the 512 possible input values. This 512 sample table would contain 6 cycles of a sine wave. Every time the parallel input changes the analog output value would be updated accordingly from the lookup table. This setup would also allow to easily add a phas
    e shift of the output by shifting the point in the lookup table you are reading by a known constant.
    Christian L
    NICS
    Christian Loew, CLA
    Principal Systems Engineer, National Instruments
    Please tip your answer providers with kudos.
    Any attached Code is provided As Is. It has not been tested or validated as a product, for use in a deployed application or system,
    or for use in hazardous environments. You assume all risks for use of the Code and use of the Code is subject
    to the Sample Code License Terms which can be found at: http://ni.com/samplecodelicense

  • Generating a digitized sine waveform

    Hi,
    I am trying to generate a digitized sine wave to feed into my 16 bit DAC. Basically, I am trying to create a sine wave that goes from 0 to 65535, with a frequency and amplitude that I can control.
    Any ideas how can I do it?
    Thanks!

    Thank you for your suggestion!
    Attached is what I have so far. I think it works. I digitized the sine wave, but my problem is that the sine wave is not "continuous/real time". Also I cannot change my sample size (default is 1000).
    Any other suggestions?
    I am planning of providing a digitized sine wave to a DAC and measuring SNR at the output of the DAC with an Audio Precision. That is why I needed a continuous/real time sine wave with more sample points.
    Thanks.
    Attachments:
    digital sine wave NI.vi ‏50 KB

  • Is there a better way to generate custom timed digital Signals

    I am trying to generate digital output of high and lows with particular delays on different lines. Each daq assistant is activating single line on a port on USB 6501. There more complex high and lows that I need to generate with variable time difference between high and low. There is codebelow which accomplishes what I am trying to achieve but for executing a long pattern of high and low signal is very time consuming to do this way. I am sure there is a better way to do this, I  not a expert on labview so I haven't uncovered its full potential. Can anybody suggest a more effective and a quick way to do this. I would hgihly appreciate. Thanks!
    I have not shown in the code below but through DAQ assistant I have initialized lines to low level logic.
    Solved!
    Go to Solution.

    See the attached file
    Attachments:
    Digital Signal.vi ‏335 KB

  • Sine signal with alternatin​g frequencie​s.

    Hello,
    I am interested in generating a sine signal whose frequency and amplitude change after every cycle. For example: lets assume we have two amplitudes a1, a2 and frequencies f1 and f2.
    I want a sine signal with a1, f1 and a2, f2 alternatingly. One sine pulse a1,f1 and other sine pulse a2,f2 and this pattern repeats.

    Preetham1 wrote:
    Hello srikrishnaNF,
    Thanks for the solution. But the issue is I just want to append one cycle of a1,f1 and one cycle of a2, f2. f1 and f2 could be DBL. Let me know if you have a solution. I shall appreciate it.
    I would make an array for your amplitudes and frequencies.  Use a FOR loop to create the waveforms and concatinate.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines
    Attachments:
    Build Waveforms.png ‏23 KB

  • The measurement of the phase between two sine signals with NI 6251

    Hi, I am working with NI 6251. I need to measure the phase between two sine signals. I used "Tone Measurements" on each signal and then substracted there phases, but the result was  incorrected. Please, help me to solve this problem.

    You should have a look at the Signal Processing VIs
    Ton
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!

  • Need to generate a TTL pulse of 3 ms using USB Daq 6361

    Hi all,
    I need to generate a TTL pulse of 3 ~ 5 ms to trigger my external device. I am using USB daq 6361 with BNC connectors. I tried to use this examples(attached) but was not succesfull , can any one help me out in this, I just want a TTL pulse out to trigger my device. I tried to modify the example to see the wave form out but all it shows is a straight line. I want to generate a TTL pulse as soon as my program starts.
    Am I using wrong example? should I use somethis else to generate the pulse. please let me know.
    Thanks,
    Attachments:
    Capture.PNG ‏76 KB
    Digital - Continuous Output_ttl.vi ‏65 KB

    AnkitG wrote:
    Jeff·Þ·Bohrer wrote:
    Why would you create an Task with an analog output?  its a Digital line you want to drive! and, just create it in the project.
    Hi Jeff,
    thanks but I couldnt understand , what you meant by create in project? Can you please explain. should I create digital line but I am still getting the same error.
    Creating DAQmx items in Project Explorer saves the DAQmx object properties as part of the *.lvproj file.  This can be very useful when the Task configuration does not change in the built application and you seldom want to use the task elsewhere.  If you want to make minor tweaks to configuration of the run-time app there is even a human readable text file in the build output where properties like scale offsets, timing rates or ranges can be modified without redeploying a new app.  
    Jeff

Maybe you are looking for