Creating a Sine Wave Chart with Continue if True

Hello, 
I want to create a simple sine wave chart using a while loop and using the continue if true mode. I want to use a Not icon to accomplish this. I also need to have a stop button that a user can press to terminate the process. I have attached my initial sine wave chart using the stop if true and my attempt at accomplising the continue if true. 
Thanks for any help! 
 

It sounds like you want the loop to continue if the stop button is NOT pushed.  Does this give you a hint about how to write your program?

Similar Messages

  • Formula node to create a sine wave

    I am trying to create a Sine Wave to display on an XY Graph using a formula node. I've put in my formula which is: Sine=Emax*sin(2*pi*f*t). I am getting a very choppy almost triangular wave displayed on the xy graph. Any suggestions as to how to get it to display a clean waveform.
    Thanks
    Chirs

    Assuming you have more than "LabVIEW base", open your tools palette and have a look at "signal processing...signal generation..sine pattern"
    LabVIEW Champion . Do more with less code and in less time .

  • I would like to create a sine wave in Illustrator. How do I do this in a simple way?

    Hi,
    As the title suggest I would like to create a sine wave in illustrator. I know that applying the zig zag effect to a line and choosing "smooth" will create a cosine wave. But is there a simple way like that to create a sine way? Or any way at all?
    Thanks for the help!
    ekmanch

    1. start with the zig zag effect
    2. with the scissor tool cut where the ends of the red line is - I made the rest blue to make it clear
    3. delete the blue segments to get this
    4. using the black pointer or scale tool stretch horizontally to match the reference
    5. using the white pointer select one of the smooth anchor points, and using the Scale tool and holding Shift drag to scale constraining horizontally until the curve matches the reference
    6. select the other smooth point and with the scale tool selected press the Enter key on your keyboard twice to apply the previous scale
    click the image to see it larger

  • Help Creating a Sine Wave in Numbers '09?

    Hi,
    I'm having trouble graphing some data in Numbers, having been used to Excel for most of my life. What I've basically got to do is graph a sine wave representing the annual variation described in the graph (it compares CO2 concentration measured at a chain of islands to time in years). I've figured out easily how to graph the data on a polynomial treadline curve, but now I've got this to do.
    The instructions say to make a new column in column D and enter in the equation 1.435x-2501.1, which is derived from the linear fit treadline equation I had calculated earlier. After that I am to copy it down to match the number of cells in column A (626), which I did, so now every cell in D down to 626 contains that equation above. Then, I enter 1 in cell E1 and 1/12 in order to arbitrarily guess at the sine wave amplitude and period, respectively, and finally I then select cell D1 and put in this equation:
    =1.435*A2-2501.1+($E$1*SIN(A2/$F$1))
    After that I grab cell D2, drag it down to select all the cells in column D, and add it to the graph by (I think) dragging it onto the graph, as Numbers says to do. What I'm uncertain of is where to go from here. Here are the instructions:
    'To plot the model values on the chart, double click or right click on the chart and select "Select Data" and click on Add under Series. Name the series "Model" and select data in column A for the X values and data in column D for the Y values. Rename Series 1 "Raw Data" and click OK."
    That's all stuff you can do in Excel... I don't know how to do it in Numbers. When I drag D into the graph, it works fine, but when I go to add in column A for X and D for Y in Inspector it won't let me type anything. How do I complete this sine wave?
    Thank you very much in advance for reading through this and helping me.

    theleonhearted wrote:
    The instructions say to make a new column in column D and enter in the equation 1.435x-2501.1, which is derived from the linear fit treadline equation I had calculated earlier. After that I am to copy it down to match the number of cells in column A (626), which I did, so now every cell in D down to 626 contains that equation above.
    I'm not sure of the reason for this step.
    1.435x-2501.1
    Entered into D2, with the x value in A2 is expressed as:
    =1.435*A-2501.1
    which is part of the formula below.
    Then, I enter 1 in cell E1 and 1/12 in order to arbitrarily guess at the sine wave amplitude and period, respectively, and finally I then select cell D1 and put in this equation:
    =1.435*A2-2501.1+($E$1*SIN(A2/$F$1))
    I'm assuming "1/12" goes in F1.
    I've also assumed row 1 is a Header row, and have entered your formula into the first data row (D2)
    Your formula is now:
    (1.435 times the value A) - 2501.1 + 1 * (Sin( the value in A divided by 0.833...))
    or
    (1.435 times the value A) - 2501.1 + 1 * (Sin( the value in A multiplied by 12))
    You haven't given any specifics regarding the raw data, so I've arbitrarily set it to a positive linear slope by making A =ROW()-1.
    After that I grab cell D2, drag it down to select all the cells in column D, and add it to the graph by (I think) dragging it onto the graph, as Numbers says to do. What I'm uncertain of is where to go from here. Here are the instructions:
    'To plot the model values on the chart, double click or right click on the chart and select "Select Data" and click on Add under Series. Name the series "Model" and select data in column A for the X values and data in column D for the Y values. Rename Series 1 "Raw Data" and click OK."
    These may be instructions for Excel. Using Numbers, a simpler way to place thie data into an X-y Scatter plot is this:
    Set the data up to occupy the full columns A and D, not including the Header row mentioned above.
    Select Column A: Click on any cell to make the table active show the row and column Reference tabs.
    Click on column A's reference tab.
    Command-clickon column D's reference tab to add it to the selection.
    Click the Chart button in the tools and choose the Scatter chart icon from the menu.
    If I've read this correctly, your formula imposes a sine wave onto the set of data.
    Here are the results. The expanded chart at the right shows the approximately the area bounded by the light blue rectangle at the upper end of the plot in the larger chart.
    Regards,
    Barry

  • How to generating three phase sine wave simutiously with Vistual C++?

    Here I want to generate three phase sinewave at the same time with the phase angel 120 continiously. I can creat a task that contain 3 AOs, and generate 3 same sine wave at the same time. But I can not create 3 individual task which contains one AO channel, and write data to FIFO. Please tell me how to realize it?

    Hello, Rilee,
    Thank you very you very much. But I am still confused. The website I can not open. As you said, I shall create a data array to contain three phase data, for example, sinedata[750], sinedata[0:249] contains first AO, and sinedata[250:499] the second, and the rest is the third. then
    1. send the data for sinedata[0] to sinedata[249], to the board. with DAQmxWriteAnalogF64;
    2. send the data for sinedata[250] to sinedata[499], to the board. with DAQmxWriteAnalogF64;
    3. send the data for sinedata[500] to sinedata[749], to the board. with DAQmxWriteAnalogF64;
    and or so.
    Is all the above description right?
    Here I have several questions:
    1. When shall I send second section sample data? I think it shall be all the first data have been written to the board. And How can I know that all the first section data have been sent to the buffer?
    2. If I call DAQmxWriteAnalogF64 to write the second section data to buffer after the have finished first section data written, will this function affects the wave of the first section data?

  • Creating a SVG Pie Chart With Different Portion Linking To Different URL

    Is it possible to create a SVG pie chart in which different portion will point to different URL. on HTML DB version 1.5.1.00.12
    For example i've tried something like this:
    on page 20 i have a svg pie chart
    select
    'f?p=&APP_ID.:21:#APP_SESSION#::::P21_DD_SALESORG:'||region,region,code from demo_region;
    i have a query in page 21 like this:
    select country from demo_country where region= :P21_DD_SALESORG;
    so when i click on a particular region on the pie chart on page 20 the value of item
    P21_DD_SALESORG on 21 should be set.
    but the value of P21_DD_SALESORG is always getting passed as NULL from the pie chart.
    I've tried it on HTML DB version 1.5.1.00.12
    Look for an early reply
    Thanks & Regards,
    Rupak
    Message was edited by:
    user445907

    hi user445907--
    your link column in your chart query seems to us the correct syntax, so i'd imagine the issue is with your data/query or the item name in question...
    check the query and data: make sure your query returns valid values to be passed of to P21_DD_SALESORG. if so, you should see your links correctly formed as you hover your mouse over the individual slices. if your links look good then check your item names.
    item names: if your links above look okay, then might you be setting the value of the incorrect item? please confirm that. after clicking a pie slice to get to page 21, check to see that P21_DD_SALESORG is correctly set by clicking the Session link in the developer toolbar.
    basically, i'm suggesting that because your link column in your query looks okay, you'd want to see at what point the NULL value is being passed/set. try tracing things from the chart query over to page 21 (and try going backwards if you have to). if you can't find the disconnect, please feel free to set up an example on an instance, where i can take a look.
    thanks,
    raj

  • How to create a Power Pivot Chart with Dynamic X-Axis (date time) similar to that in Performance monitor (Start-- Run-- Perfmon)?

    Hi,
    I want to create a Power Pivot Chart and a Power View chart in Power BI where the x-axis should be the current system date time axis and it's functionality should be similar to that in Perfmon.exe tool (Start-->Run-->Perfmon)?

    Hi Manjunath,
    Do you mean you want to programmatically create such a dynamic chart which has a X axis of time? If you just want to do this manually, please take a look at this document which is talking about how to create charts with Power BI:
    Charts and other visualizations in Power View
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to Create Simple In-Cell Charts with the REPT Function

    I found this technique on Juice Analytics, and was happy that I could adapt it to Numbers.
    Basically, you can create an in-cell chart by repeating a character, x number of times, where x can be a number or cell reference.
    See the screen shot below:
    [IMG]http://i240.photobucket.com/albums/ff100/MacFanMike/incell-graph.jpg[/IMG]
    You can read more about it, and download example here:
    http://www.numberstemplates.com/2007/08/29/tips-how-to-create-in-cell-charts-wit h-apple-iwork-numbers/

    I haven't tried myself but my guess is that you need to customize your tree cell editor for putting
    cursor at specific position, etc.

  • Help Creating Dynamic Stacked Column Chart with Multiple Criteria

    Hi all. Im new here and hoping you can help.  I have a dashboard Im trying to rebuild from scratch (our computer had a meltdown and we lost all our files). I did not build the dashboard initially so Im trying to recreate it from the flash file we were able to recover. I have come across a chart that I just cannot figure out how to do.  I can figure out how to write an array in the Excel sheet that pulls the data into a table the way I need it to be but found out after I wrote that that Xcelcius doesn't support arrays so all my data disappears when I go into preview mode (which is especially frustrating since I can see the chart working fine in design mode).  Anyway this is what the data table looks like
    Month         Year            Company      Positive #          Negative #         Neutral #          Positive %       Negative %      Neutral %
    October      2011            CompanyA      1234                1234                 1234                 10                    10                    10
    October      2011            CompanyB      1234                1234                 1234                 10                    10                    10
    October      2011            CompanyC      1234                1234                 1234                 10                    10                    10
    October      2011            CompanyD      1234                1234                 1234                 10                    10                    10
    November  2011            CompanyA      1234                1234                 1234                 10                    10                    10
    November  2011            CompanyB      1234                1234                 1234                 10                    10                    10
    November  2011            CompanyC      1234                1234                 1234                 10                    10                    10
    November  2011            CompanyD      1234                1234                 1234                 10                    10                    10
    December  2011            CompanyA      1234                1234                 1234                 10                    10                    10
    December  2011            CompanyB      1234                1234                 1234                 10                    10                    10
    December  2011            CompanyC      1234                1234                 1234                 10                    10                    10
    December  2011            CompanyD      1234                1234                 1234                 10                    10                    10
    The original chart was built so that you would choose the month from a combo box and then the company names would show up along the X axis with their % amounts shown in the stacked column.  I know how to make a combo box work and I know how to make a stacked column chart work with static data.  I cannot for the life of me figure out how to get it to work so that when you choose the month from the combo box it filters the data.  I've tried filtered rows but I'm just missing some information that makes it work and I can't figure out what that information is.  It has to be able to get the month/year combo from the combo box and then go to the table, filter it by month and year and then create a multi-row table of data with just the company and the percent values.  Any help would be greatly appreciated!

    Which connection you are using?
    IF quite difficult if you are working under static data.

  • Creating black and white charts with patterns in Pages?

    Hi.  Does anyone know how to create black and white patterned charts in Pages (or other iWork application)?  When making Charts in Pages (i have the most recent version), you can make all sorts of colored charts (bar charts, histograms, pie charts, etc.), but in preparing doumnets for publication i need all my charts in black & white.  I can make histograms and bar charts using different shades of grey no problem, but i'd like to create histograms using black and white "patterns" like dots, horizontal lines, stripes, etc.  Does anyone have any idea how to do this, or know where existing patterns can be downloaded for import into Pages?
    Many thanks.

    Don't export it as a .jpeg which is unsuitable for B&W images, blurring them as rgb files (not B&W).
    Better is .tiff (compressed B&W tiff are tiny) or 1 bit .gif.
    It is also possible that .pdf vector files might work but I haven't experimented with those.
    http://www.google.com.au/search?q=black+%26+white+vector+patterns&hl=en&client=s afari&rls=en&prmd=imvns&tbm=isch&tbo=u&source=univ&sa=X&ei=T0yYUNjqOKaTiAeqrYGwA Q&ved=0CCkQsAQ&biw=1138&bih=1272
    http://www.graphicswall.com/black-and-white-vector-patterns
    http://all-free-download.com/free-vector/black-and-white-vector-pattern.html
    http://www.freevector.com/category/patterns/
    http://vectorpatterns.co.uk/patterns-2/a-transparent-black-and-white-arrow-patte rn-set/
    http://pattern8.com/
    This is very retro lo-tech with unattractive results, which is why I guess Apple hasn't bothered with them.
    Peter

  • Creating and controlling a sine wave

    I am a TA for Control Systems & Instrumentation at Texas State University. As the assistant I am required to assist students in their homeworks and projects. I have encountered a problem in assisting the students. How do I create a Sine Wave wit ha sampling frequency of 200 Hz? Obtain the power spectrum of the signal and change the sine wave frequency to 25 Hz. Determine if the resulting frequency is about the Nyquist frequency. Then increase the sine wave to 125 Hz and compare to the Nyquist frequency again.

    There is an example shipped with LabVIEW 2009 called "Resampling a Waveform (continuous).vi" I think this vi will demonstrate what you are trying to do. Change the sine wave frequency using the frequency control in the Test Signals (A) box and change the sampling frequency by updating the output rate control in the Output timing box. You will then see the original waveform spectrum at the original sampling rate (Fs) and the re-sampled spectrum will be shown in red so you can see the shift.
    Systems Test Engineer
    Certified LabVIEW Architect (CLA)

  • 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"

  • How to create sine wave and step input using cwgraph in VB 6.0

    hello..
    i'm doing my master's project now. i'm stuck on how to create a sine wave and a step input using the cwgraph using VB 6.0. please help. thanks.

    hello..thank for the reply.
    i'm having problem with my coding using cwgraph. can anyone help. everytime i do the full compile, there's error.but it can still can run, but can't convert to application form.for your info, i'm using RTscope and cwgraph to plot graph.the error is in the cwgraph coding.below are part of the coding with error. and can somebody tell me how to add cwgraph component in the VB? i try adding component, but it's not in the list of component,and i've browse for it already too.i'm doing the software at home, but i'can run it at my lab cause cwgraph component is not listed.please help.
    Dim countTime As Integer, count1 As Integer, countFreq As Integer, countVolt As Integer
    Private Sub cmdRun_Click()
    If cmdRun.CausesValidation = True Then
    cmdPause.CausesValidation = False
    tmrOsc2.Enabled = True
    tmrOsc3.Enabled = True
    Else
    cmdPause.CausesValidation = False
    tmrOsc2.Enabled = False
    tmrOsc3.Enabled = False
    For count1 = 0 To 100
    Data1(count1) = 0
    Data2(count1) = 0
    RT1.Value(1, count1) = 0
    RT1.Value(2, count1) = 0
    RT1.Refresh
    CWGraph2.Plots(1).PlotY count1 ' THIS CODING HAS AN ERROR ...
    CWGraph2.Plots(2).PlotY count1 ' THIS CODING HAS AN ERROR ...
    Next count1
    End If
    End Sub

  • How to create legislative seating chart with illustrator?

    What is procedure to create a legislative seating chart with illustrator. Examples of such charts are as follows:
    https://upload.wikimedia.org/wikipedia/commons/thumb/6/6d/11th_Parliament_National_Assembl y_Kenya.svg/360px-11th_Parliament_National_Assembly_Kenya.svg.png
    https://upload.wikimedia.org/wikipedia/commons/thumb/a/ac/14thNationalAssemblyOfPakistan.s vg/512px-14thNationalAssemblyOfPakistan.svg.png
    https://upload.wikimedia.org/wikipedia/commons/thumb/6/62/House_of_the_People%2C_India%2C_ 2012.svg/360px-House_of_the_People%2C_India%2C_2012.svg.png
    Please help me. Would be thanful if someone tells me.
    HELP!

    One thing to note before you can add a stroke to the circles after the compound path has been released you will have to once again go to object>expand, I do not know why but it is necessary.
    Some screen shots to help you along.
    Also you actually need to make it seven concentric dividers not eight.
    In this screen shot one of the stroke circles is selected so you can see in the stroke panel the center option for the alignment is active that is the one ou need of course.
    Also I am sorry I forgot to spell check in my original posting. So you will probably have to use your imagination…quite a lot.

  • Generate two sine waves with time delay

    I have not been using the waveform generation tools so I hope this is an easy one for somebody.  I want to create two sine waves at different frequencies say F1 = 1.00 KHz and a second at F2 = 1.20 KHz.  I know that to combine them into one I can just add them.  Them problem I have is that I want F1 to start first then a few millisecond later have F2 sum into F1.
    T0 = F1
    T0 + Delay = F1 + F2
    Is there a VI capable of a time delay?  Tried to sum individual signals together but seems more difficult because of the waveform cluster format.
    Any help is appreciated,
    Matt
    Matthew Fitzsimons
    Certified LabVIEW Architect
    LabVIEW 6.1 ... 2013, LVOOP, GOOP, TestStand, DAQ, and Vison

    Would the attached VI work for you?
    Attachments:
    Add Delayed Sinewave.vi ‏54 KB

Maybe you are looking for