Timed increase in frequency into "simulate signal.vi"

Hi all, I'm an absoulte beginner with labview so any help would be greatly appreciated, I want to increase the frequency of a generated sine wave, created using the simulate signal.vi, in set increments over time.
In other words I want the simulate signal.vi to produce a sine wave that will over a set period of time increase in frequency from say 39.5kHz to 41.5kHz, in increments of 0.1hz.
Thanks in advance for any help.
Solved!
Go to Solution.

What are you unfamiliar with? All of the express functions have their name and you can use the search button on the functions palette? The only only thing you might need is a shift register and you get that by clicking on the border of the for loop. You might want to check the free tutorials.
You don't mention which version of LabVIEW you are using so here it is as 8.0.
Attachments:
sweep.vi ‏70 KB

Similar Messages

  • Simulate Signals DAQMX

    I am using Simulate Signals which is generating a 125hz square wave with a 10v amplitude, then sending that singal to DAQ Assistant for an analog out.  Somehow the frequency seems to be changing to the DAQ Assistant analog out, therefore I am not running 125hz.  I notice this when the samples per second (hz) in the Timing section of Simiulate Signals is increased or decreased.  Is this just a sampling miss match??  I am sampling analog in data with another DAQ Assistant to capture data at 10,000 samples/sec(trying to capture accurate data of a very fast valve), then writing to a spreadsheet.  Thanks for any help

    Hi TMDATA-
    What type of DAQ card are you using?  How are you verifying that the output frequency is not the rate you specify?
    I have tested with the attached VI and seen good results when measuring digital frequency on a counter of my MIO M Series card.  You will notice that I have chosen "Use Timing from Waveform Data" in the DAQ Assistant Express VI.  This ensures that the timing information requested in the Simulate Signals VI is passed to the DAQ Assistant for task timing control.  I have verified that the actual output frequency closely follows the frequency requested using the Simulate Signals Express VI.
    Please give this method a try and if you continue to have problems please let us know how you're verifying the output frequency.
    Hopefully this helps-
    Message Edited by Tom W. on 09-08-2005 04:30 PM
    Tom W
    National Instruments
    Attachments:
    AO Test Frequency.vi ‏235 KB

  • Auto frequency increase of simulate signal vi

    Hi everyone. I am pretty new to labview. I want to increase the frequency to a simulate signal vi using array of numbers. the for loop should step through the array and output a frequency that will serve as input to the simulate signal vi every 5s changing the frequency from 10hz to 20hz, to 30hz and so forth until bout 1khz.
    attached is a vi i have written but something seem not to be accurate
    Solved!
    Go to Solution.
    Attachments:
    Frequency Simulator.vi ‏63 KB

    Hello marco73
    The red dot is the conditional terminal.
    You need to enable it for your for loop.
    To enable the conditional terminal, right click on the for loop and select "Conditional Terminal"
    Derick Mathew

  • How to control the variables in 'timing' in simulate signal palette by user numeric control?

    is there a way to control the timings of the simulate signal function (i.e. samples per hz, num of sample, etc) by user input (numeric ctrl)? You could easily do so for amplitude, freq, etc but not the timing.
    Many thanks,

    Are you referring to an Express VI?
    I don't typically use the Express VI's because they do not offer the customization that I need or want.  They are configured by double clicking the icon and all settings are from within.  You already know that.  Some Express VI's do offer more controls.  But this one has only the error in control.
    However, you can right click it and select "Open Fron Panel". 
    It will ask you if you want to convert the Express VI to a standard sub-vi. Select Convert.
    You will then have a subvi that has all the input controls that you need
    Message Edited by Ray.R on 03-14-2009 10:32 AM
    Attachments:
    SimulateSignal.PNG ‏2 KB
    SimSignalOpenFP.PNG ‏7 KB
    SimSignalConvert.PNG ‏4 KB

  • Simulate Signal Express VI is sending two periods of the wave per loop iteration - how can I reduce this to one period?

    Hello,
    I've been trying to use the Signal Generator Express VI and DAQ Assistant in order to generate an output waveform, as seen in this NI tutorial video:
    http://www.ni.com/academic/students/learn-daq/generate/ (timestamp is at 2:07 for what I'm trying to do)
    For background, I'm trying to move a piston device using Labview. The sine waveform is intended to move the piston at a smooth speed. For every loop iteration, the Simulate Signal VI running into my DAQ Assistant moves the piston to its maximum displacement and back twice. I cannot determine why this is occuring.
    The settings in my "Configure Simulate Signal" tab are as follows:
    Frequency: 1Hz
    Phase: 90 deg
    Amplitude: 2
    Offset: -2
    I would like my piston to only reach its maximum displacement and return for every iteration of the loop. I've tried adjusting all of the settings within "Configure Simluate Signal" but I can only work in even numbers - sending the piston back and fourth two, four, or eight times, ect.

    The Simulate Signal VI is set for integer number of cycles and the default frequency set in the Cycles per Second control is 3.75 Hz. That results in the signal containing three complete cycles and the data array contains 8000 elements, not the nominla 10000 specified in the Express VI dialog.
    If you only want one cycle, you need to specify the signal so that you only get one. Either reduce the frequency or reduce the number of samples.
    As you have noticed Express VIs do one thing exceedingly well: They obscure what is going on inside.  I pulled your signal generation code out into a separate VI and then created a generator which will generate the same signal but allow you to select the number of cycles. It uses the Sine Waveform.vi from the Signal Processing  >> Waveform Generation palette.
    I also recommend that you change the structure of your program. The use of sequence structures is discouraged in LabVIEW  because they defeat dataflow are very inflexible when changes need to be made. A Producer/Consumer Design Pattern plus a state machine would probably be a good choice. This will allow separation of the daq acquisition from the saving to file so that the timing of one does not constrain the timing of the other.
    Setting the Analog Input Read to read multiple samples simultaneously and using the hardware timing of the data acquisiton device will get data faster and the timing will be precisely (compared to software timing) controlled by the hardware.
    Writing to the same file in parallel loops probably results in some strange behavior such as differing numbers of writes from acquired data compared to generated cycles. As the file grows, the writes may slow down due to the OS needing to fragment or reallocate space for the file.
    Lynn
    Attachments:
    Signal generator.vi ‏49 KB

  • Increase counter frequency performanc​e

    Hello,
    I want to increase the frequency performance for my period counter. I'm using a USB-6210 board and I have the vi that is attached - period measurement.
    The problem is that I want to measure the period for a 8MHz signal (I know that is a lot, I would be happy even with 4MHz). The source freq for the counter is 80Hz. If the frequency is high, the accuracy is not very critical for me.
    1. I get most of the time the error: "Buffer overwritten". I've seen that I can get rid of it if I decrease the frequency, but I don't want to do that . I think that another solution would be to increase the number of points that are read. I noticed that the maximum buffer size is around 9000 points (I've read it with DAQmxRead Property Node).
    2. Another fact that I've noticed is that in the While loop where I'm doing the Data Reading I should have no other operations or delay. Is this true, or just a coincidence?
    3. There is a strange behavior: if I start the acquisition and I have at the input high frequency, I get the error (Buffer overwritten) almost instant. If I start acquisition at low freq I can increase it even at high freq.
    4. There is another strange behavior: if the input frequency is high the frequency and the measured period increase and decrease togheter. I think that this is caused by alias. Where can I find some more information about the board limits?
     If you can give me some other advice/hints/links/pdfs I would be very thanksful.
    Maybe there are some small mistakes in the VI. I made it only to get a feeling of what I'm doing. I didn't chek it with the hardware.
    Regards,
    Paul
    Attachments:
    example.vi ‏32 KB

    Paul,
    I  have added some comments to your answer.
    Regards,
    Jochen 
    KPanda wrote:
    Jochen,
    thanks for this information. This was what I was looking for some while.
    I still have a question related to this topic: I've read that the maximum size of FIFO is 1024 samples. What does it mean?
    [JK:] The FIFO is the hardware buffer on the board. In general the PCI-bus or the USB should have enough bandwidth to transfer the data as fast as they are acquired by the device, but in fact there are sometimes some latencies that require some local memory on the board. That's what is called FIFO in this context.
    This FIFO is the same with the: Available Samples Pro Channel from Read Property node?
    [JK:]  No. This value refers to the buffer in the PC's memory that is allocated for the acquisition operation.
    I've noticed that when the value for this property is passing 9000 I get the error with Overwritten Buffer. If it is like this why do I reach more than 9000 samples pro channel? Please take a look at the attachement (test1.png - screenshoot with the values / speed_test_x - the VI that I used for this measurement).
    [JK:] The buffer size is not limited to 9000 values. NI-DAQmx allocates memory automatically by default. If you like you can increase the buffer size manually.
    Which is the relation between maximum numbers of sample that can be read with the Counter 1D Read NSamples? In my VI there are N=250 samples. Can I increase it in order to avoid the error? If yes, which should be the maximum limit, 1024 ?
     [JK:] You can increase the number of values to read up to the size of the buffer (not of the FIFO). A reasonable value is up to 50% of the buffer size, but this is not a strict rule. Anything between 10% and 90% could make sense, depending on the timing requirements of your application.
    Paul
    PS: I've hope that I translated the LabView terms in the right way. I have my LabView in german (but I don't know german, so it is a nightmare for me )

  • Simulate signal controlling problem

    Hi
    I have this signal controlling problem. In 10,20,30,40,50 the sine wave stops. How can i avoid that?
    Attachments:
    PWM.vi ‏251 KB

    I'm more concerned about the Wait inside of a Timed Loop.  That is totally unnecessary.  Change the timed loop into a normal while loop.
    As far as the Simulate Signal, I have no clue.  The settings look find as far as I can tell.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Sound File not creating from simulate signal

    I am trying to create a white noise sound file.
    100 Hz to 8000 Hz 100ms long with a 10 ms ramp up and 10 ms ramp down.
    I have been able to create the signal and sound in this vi.
    Create sound - 8000 hz white noise
    High pass filter - remove noise below 100 hz
    ratio window - causes ramps
    turn back into waveform - why oh why
    normalize after filtering - for some reason the filtering changes the height of the whole waveform, if you have a solution to this......
    play back sound
    write sound to wav file.
    The problem is, I can only get a file as short as 500 ms.  I did this by changing the simulate signal options selecting 8000 samples at 16000 Hz.
    If I select 1600 samples (the number of samples needed for 100 ms) some error occurs in the writing process, and the file thinks it's still open by labview.  If I close labview, the file still does not work.  How can I do what I need to do?  Why can't I just reduce the number of samples to 1600 and get a 100 ms long waveform?
    -Regards
    eximo
    UofL Bioengineering M.S.
    Neuronetrix
    "I had rather be right than be president" -Henry Clay
    Attachments:
    white noise generator.vi ‏169 KB
    White noise generator.PNG ‏40 KB

    The Labview sound system is something that NI do not care much about. They actually neglect it. Errors reported in version 8.6 are still not fixed in Version 2010. And if they fix errors you can be sure some new errors will be introduced. What you can try to do is using the old sound system (used in 7.x) for writing your data to file. In your case it should have much to say. You will find the old sound system here ..\National Instruments\LabVIEW 20xx\vi.lib\sound\sound.llb
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)

  • Adding Simulate signal value to array

    This is my first VI.  I'm passing an array of 5 values which gets concatenated together into a string.  I thought it would be neat for the 5th value of the array to always be changing so I'm using the Simulate Signal VI.  I have the output from that VI working right but I'm not sure how to replace the 5th element.
    Thanks for your help
    Solved!
    Go to Solution.
    Attachments:
    sim signal.jpg ‏70 KB

    Hi Scott,
    I think you're fairly close to getting what you want! After you insert the signal into the array, you should wire the output of the Insert Into Array function into the Array to Spreadsheet String function. Right now it looks like you are just concatenating the array generated by your autoindexed for loop and ignoring the array you inserted the sine wave into.
    I hope this helps! Good luck!
    Regards
    Josh Y.
    Applications Engineer
    National Instruments

  • Simulate Signal phase shifting loop

    I am trying to use a loop to phase shift a simulated signal across 360 deg. My loop will change amplitude, frequency, offset, but it won't change the phase, does anyone know how I can do this? I have attached a code that shows the fundamental problem.
    Solved!
    Go to Solution.
    Attachments:
    SimSigPhaseShift.vi ‏34 KB

    When you wire a graph to it and set the graph to ignore timestamps, you see the phase shift. If you wire a chart to it, wire a true constant to the reset input of the simulate signal.

  • I have a DAQ Assistant configured to read multiple channels at the same time. When I wire a graph indicator to the output, I see all of my signals jumbled together. How do I split them up into seperate signals?

    I have a DAQ Assistant configured to read 2 channels at the same
    time. When I wire a graph indicator to the output, I see the 2
    signals jumbled together. How do I split them up into seperate signals?
    When I wire any type of indicator it is showing just one output of a single channel.
    I want 2 indicators showing 2 different signals as expected from the 2 channels configured. How to do this?
    I have tried using split signal but it end up showing only 1 output from 1 signal in both the indicators.
    thanks in advance.
    Solved!
    Go to Solution.

    Yes you are right. I tried that but I did not get the result.
    I just found the way. When we launch split signal, we should expand it (split signal icon) from above and not from below. It took me a while to figure out this. 
    thanks 

  • I need to measure the frequency of a signal on Pin 39 (PFI 15) of a PXIe-6361 module.

    I need to measure the frequency of a signal on pin 39 (PFI 15) of a PXIe-6361 module.  All of the digital I/O pins are already assigned and in use.  The signal frequency range is 50KHz to 500KHz.  I have tried all of the sample programs for DAQmx Counter/Timer frequency measurement.  If I modify them to use my hardware, I get run-time errors with conflicts with resources already assigned.

    Hi Julia,
    Thanks for the response.  As I stated before, I have tried all of the examples available that apply.  There are only three and one of those uses two counters.  The two I have tried are:
      Examples/Hardware Input and Output/Counter Measurements/Digital Frequency/
          DigFreq-Buff-Cont-ExtClk-ArmStart.prj     and
          DigFreq-LowFreq1Ctr.prj
    These examples default to using what appears to be traditional DAQ hardware (Dev1/ctr0 and /Dev1/PFI0).  I changed the counter to mine (/PXI1Slot3/ctr3) and directed my signal source (PFI15 on pin 39) to the counter.  No matter what I tried would not run.  They would always compile but gave run-time errors ranging from resources already in use to “external trigger required”.  I have no external trigger source and, if I did, there is no indication of how to assign it to the counter.  NI has a very good X Series Users Manual that tells all of the great things you can do with the hardware, but there is NO CLUE how to do any of those things!!!!  I know that some NI DAQmx functions use hardware resources that they never tell you about.  I discovered that when trying to produce a single output pulse from a timer using counter #0.  (Which, by the way, no one at NI could tell me how to do it.)
    Measuring frequency should be very simple.  The unknown signal is routed through a precise gate to a counter, and then the counter is read.  NI DAQmx uses the opposite approach of using my signal as the gate and counting their internal source.  However, the examples would not let me use the internal reference sources.
    To answer your other questions, I am not performing any other measurements at the same time and the counter is not being used for anything else, period.
    Any help would be greatly appreciated.  Thanks again.
    Wayne K.

  • How to use the discrete unit delay function with the simulate signal as the input?

    Hi there,
    I want to use the simulate signal as the input. First, i downsample the input with the downsampler.vi. Then I want to feed the output of the downsampled signal to the discrete unit delay block and display the delayed signal on the graph.
    Somehow I can't use the delay block properly, do anyone know how to fix that?T_T
    thanks!!!!
    Ivy
    please see the attachment
    Attachments:
    test.vi ‏164 KB

    Hi nozombie,
    In your VI the Delay VI only delays the measurment for one interation of your simulation loop.  What are the results that you hope to see?
    Regards,
    Mike Altmann
    LabVIEW Platform PSE
    National Instruments

  • Joint time frequency analysis in Signal Express?

    Is it possible to do joint time frequency analysis in Signal Express?  I didn't see it in the Analysis section, so I'm assuming it's a separate tool that has to be added, if even possible in Signal Express.  Help?
    Solved!
    Go to Solution.

    SignalExpress does not natively support joint time frequency analysis.  However, check out the Sound and Vibration toolkit which expands upon SignalExpress.  It may do what you want.
    This account is no longer active. Contact ShadesOfGray for current posts and information.

  • Labview crashes when selecting simulate signal

    Each time labview 8.6 crashes after I selected the simulate signal function. I get an error message about ivanlyss.dll. The message is in Dutch and it's hard for me to translate but there seems to be a problem initializing the dll file.
    I asked a collegue to send me a vi containing simulate signal and the same thing happened: labview crashed.

    Hi Stefan,
    I can't post a vi with the simalute signal since labview always crashes as soon as I select this function. I guess you are right and the best thing I can do is reinstall labview.
    Ronald

Maybe you are looking for

  • Error during deploying SOA Composite

    I have created a SOA Composite in which I am trying to access an External Web Service. The compilation goes fine but its failing at the time of deployment to Soa Server. My BPEL consists of following activities-> RecieveInput-> Assign -> Invoke -> As

  • Download data from Icloud to iphone 4

    I need to download my back up from icloud to my iphone 4 after I did a restore to new

  • Images Not Reflecting Slider Changes Anymore

    I was editing photos in Lightroom 3 last night. I created a User Preset and had applied it to about 15 photos. As I was working on the last one I noticed that the first 10 or so did not look like the preset was applied anymore. The remaining 5 still

  • Tap picture in Photos App and rotate - issue / Pls help

    Hello all, Subject: iPhone 3Gs / 4.0.1 Application: Photos App (default Apple application) Issue: tapping landscape pictures with phone in vertical position and rotate them goes on black screen Description: I am with iphone in normal (vertical positi

  • 10.4.6 isync 2.2 and RAZR v3

    I have always been able to connect perfectly with bluetooth to my phone. After updating to 10.4.6 isync cannot connect via blutooth anymore! Any clue what's going on? I can connect it with a USB cable, but as it previously worked with bluetooth (whic