To generate sine curve using sine pattern.vi

I tried to generate sine wave to provide sine curve to the motor. I used sine pattern.vi and the vi located before the while loop. I could not put it inside 'while loop' to change the amplitude of the sine curve while the program runs. What do I have to make some changes in the program to provide different values in 'sine pattern.vi' while the program runs?
Attachments:
AO_command_sin_input_with_position_info.vi ‏165 KB

Jae,
Looking at your VI, it seems that what you want to do is update the sinewave generated on the fly. Try using the Point by Point functions to generate a sinewave, they will give your the most flexibility. I am attaching an example that generates a sinewave point by point. If you change the value of the frequency control, you will see that the frequency of the waveform will change on the fly.
Attachments:
Generate_Sinewave_PtByPt.vi ‏32 KB

Similar Messages

  • How to generate finite cycles of sine wave using daq mx in vc++

    Hi,
    How to generate finite cycles of sine wave or for finite duration in vc++ using hardware timer without any sleepfunction in the code.
    Thanks & Regards,
    satya

    Hello Elizabeth,
    Thanks for the response.
    1) I am using NI 6040E PXI.
    2) I am using NI-DAQMx 8.3
    3) Measurement Studio is 6.0.0.105
    4) Operating system is Windows XP.
    I want to generate sine wave for finite duration previously in traditional daq there was function called wave_op.In which we can mention number of cycles of sine wave we wanted to generate. That function is not available in DAQMx so we have to use sleep function to generate finite period. Any hardware control function to control generation of finite cycles please let me know.
    Thanks & Regards,
    satya

  • Generating a sine wave using PXI 5441

    How to generate a sine wave using PXI 5441 (Arbitrary Waveform Generator)?
    Can anybody post a vi that generates a sine wave with frequency at a user defined frequencies.
    Thanks in advance.

    Hi Venki,
     When using an arbitrary waveform or user-defined
    waveform, you provide the actual waveform you want to generate to
    the device, so it is easy to also just connect a graph to the waveform
    and see what it looks like. Unfortunately, when using standard function generation (which is the method used in this example), you are not providing a signal that is created in software. Because the standard function
    generation is happening on the FGEN and not in software, there is
    really no way to display the exact signal without measuring
    it on a scope or some device. You can, however, simulate the signal in
    software such that the parameters which are given to the FGEN functions
    are the same parameters that you use to generate a simulated wave. This
    would be somewhat complex since you can change parameters such as
    frequency and amplitude on-the-fly, and also you would need separate
    functions for each of the different signal types available for the
    FGEN. You would need to place the software waveform generator in your
    inner loop and have a waveform graph connected to it in the loop as
    well to display the signal. The main thing to keep in mind is that this
    will only be a simulated signal and so it may not exactly match what is
    being generated (this also depends on how you program the simulation to
    work). Hope this helps,
    Daniel S.
    National Instruments

  • Drawing a sine curve in 3D

    I would like to draw a sine curve in Java 3D. Is there a way to do that? I am generating points on the fly and putting them in Point3D array. Then I generated the indices and used IndexedLineArray to draw lines on the fly. But they don't show up properly and there is no consistency. Is it because Java 3D is multi-threaded?
    Is there a better way to do it? I need some advice. If necessary, I will post some code also.
    Thank you,
    -Sri :)

    Yes, I have set the appearance, but I am not using any color values.
    Here's some sample code:
    ==========================
    private IndexedLineArray la;
    private Shape3D shape;
    Appearance a = new Appearance();
    PolygonAttributes attr = new PolygonAttributes();
    attr.setCullFace(PolygonAttributes.CULL_NONE);
    a.setPolygonAttributes(attr);
    shape = new Shape3D(la,a);
    shape.setCapability(Shape3D.ALLOW_GEOMETRY_WRITE);
    ===========================
    I think the points are being drawn too fast. Maybe I should reduce the number of frames?
    -Sri :)

  • Curve fitting sin*Exp

    Hi,
    I have a few questions,
    1- Can I put my initial guesses to the `curve fitting express` via an array control instead of editing each time the express itself?
    2- I have trouble with the fitting of my signal. it`s far beyond my initial guesses. I tried playing with the numbers and it seems when I put the right numbers in the function instead of using the parameters, the fitting is perfect, but when I put the same numbers as initial guesses I don`t get even close to data fitting, instead I get most of my signal as a residual.can someone help?
    3- the fitting itself takes ages, is there any way to make it faster?
    SubVI, and the text data file attached.
    thanks.
    Attachments:
    Untitled 12.vi ‏155 KB
    testing1.txt ‏114 KB

    You are trying to fit
    y(x)=a*cos(b*x)*cos(c*x)*exp(d*x)+e
    with [a, b, c, d, e] as adjustable parameters. This seems like a poorly defined model, for example you will have an equally good solution swapping b and c. Also from looking at the data, d should be negative, yet you give it a large positive value as guess. Periodic functions such as "cos" (I am not sure why you use "sin" in the title of the post) are always problematic, because you can fit equally well to an alias frequency by mistake. You need to be absolutely sure about good initial guesses here. Is the model really sufficient? For example, you don't account for possibe phase.
    Your file also does not contain enough significant digits, so there are multiple x values for each y. It seems however, that the x-values are linearly spaced, so it is possible to approximate the real x ramp (see attached).
    Anyway, to your question. You can skip the express VI and use "nonlinear curve fit" instead. If speed is a concern, you should use the VI model, which is pretty simple in this case. (fitting takes much less than a second)
    Aristofel wrote:
    ... I tried playing with the numbers and it seems when I put the right numbers in the function instead of using the parameters, the fitting is perfect,...
    Is this synthetic or real data? As a first step, you should generate fake data with known parameters and see how well the fit does if the estimates are somewhat off.
    What are the "right numbers" in this case?
    In any case, Your problem is probably better solved using e.g. a fourier transform. You should get two lorentzian peaks with the midpoint between the two related to (b) the separation between the two related to (c) and the lorentzian width related to (d). Your data gives a much more complex transform, so your model seems way too simplistic for your data anyway.
    Can you give us a bit more background on the origin of the data, the physics behind it, and the model?
    Attached is a literal translation of your VI to the plain "VI model" fitting. Still, nonlinear fitting seems to be the wrong choice for this problems as outlined above.
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    SinExp.zip ‏55 KB

  • Using plain http adapter using (SIN)---Most urgent please help me

    Hi Experts,
    all we need to do is call the pipeline directly using plain http adapter using (SIN) and get the output from the pipeline to the local file folders. This can help developers to verify the interfaces that have been migrated to XI , to compare the out put results generated in XI with the original output captured using existing middle ware solutions.
    Could anyone help me out this Urgent

    Hi Experts,
    all we need to do is call the pipeline directly using plain http adapter using (SIN) and get the output from the pipeline to the local file folders. This can help developers to verify the interfaces that have been migrated to XI , to compare the out put results generated in XI with the original output captured using existing middle ware solutions.
    Could anyone help me out this Urgent

  • Please help simulation synchroniz​ing dual sin wave using PLL labVIEW

    Hello,
    Please I want a simulation based on Lab view for synchronizing generators, as we know that the generator will generate a sin wave.
    If anyone can help me with this idea the simulation can be done using to input sin waves and synchronized with each other using PLL (phase lock loop), note that the generators will be synchronized if the frequency, phase angle and voltages are equal ( synchronized). Please if somebody has simulation based on this idea to help me with it.
    THANK YOU A LOT.
    I will appreciate it.

    Iam new on LV. what i want a simulation to synchronize two generators, the two generators will generate sin waves this sin waves will be compared to achieve synchronization its better to use PLL but i have no idea where to use it in this such simulation.
    The below attachment will discuss more what i want but it it can be editted instead of using two generators from outside is to put to sin wave and prove that when this two sin wave are not equal so synchronization faild and vice versa.
    no need for the DAQ it can be replaced by an oscilscope to see the two sine waves that are synchronized, any one can help me by this simulation  i will bs very thankful for him.
    THANK YOU ANYWAY  
    Attachments:
    paralleling.jpg ‏145 KB

  • Simultaneous updation of sine wave using 2 PXI-6711 cards using RTSI Trigger

    Hi ,
    How to generate continuous sine wave using two pxi-6711 cards at same time without any phase shift using traditional nidaq functions.
    Regards,
    satya

    In LabVIEW, go to Help>>Find Examples. Navigate to Hardware Input and Output>>Traditional DAQ>>Multiple Device. There is an example there called "Two E Series Shared Scan Clock". That example is for analog input, but you should be able to modify it to be for analog output. Basically you will just have to share the scan clock from one board(master) and use it as an 'external' clock for the other board(slave).
    -Alan A.

  • Problems to generate a graph using 2 views as 2 curves

    Hello everybody
    Please help me fix this problem.
    Oracle 9i Database,reports-->graph wizard
    I have 2 views in the database named FR1,FR2 and these 2 views are nothing but snapshots of data from a single table WDATA for selected data .
         The views are like this
         FR1                         FR2
         NO number(10)                    NO number(10)
         VALUE number(10)               VALUE number(10)
         Each view has 20 records of data
    I need to generate a graph for the 2 views as 2 curves in graph for analysis with NO as X axis and VALUE as Y axis.
    |.::::.
    |
    |________
    But i couldn't manage to generate them.
    When i write a query in report wizard like this
    SELECT * FROM FR1 UNION SELECT * FROM FR2
    I get 40 records but as a single view thereby not possible to generate 2 curves..In this case i get 1 curve with 40 points.
    and if I say
    SELECT * FROM FR1,FR2
    I get 400 records as cartesian product of the 2 views which makes no sense.
    Some one out there please help me..
    Is my approach correct for generating graphs?
    i'm using 9iDS and 9i DB
    thanx in advance
    regards
    Jochen

    jochen,
    you need to join the two tables but use a where clause to prevent a cartesian product.
    so the following select should work
    select a.no, a.value, b.value
    from fr1 a, fr2 b
    where a.no = b.no
    regards,
    philipp

  • How do i measure the frequency of a sine wave using a field point counter module

    I need to measure the frequency of the sine wave using field point. is it possible and if yes how. do i need to convert the sine wave signal to square wave. Please let me know.

    It probably would be easiest to convert the sine wave to a square wave with a simple external circuit and then use a counter module to measure the frequency. There is a shipping example in LabVIEW that shows how to measure frequency with a FieldPoint Counter module.
    JRA

  • How to use sina weibo?

    i dont know anything abt chinese language.bt long back ,i had used chinese simplified keyboard,just for fun.
    now as in ,i have sina weibo integrated with my ios,how do i use it?
    i have made a id and downloaded the app too.loged in too.
    bt now when i open the app there is no option for using it,only few animations going through my screen ,.
    how to proced...cant understand the chinese language in it..!!!
    pls help

    Try a google search on "how use sina weibo" and you will find some guides.
    But if you don't know anything about the language used on this service, I suspect you may not find it that rewarding...

  • Trasnmitting a single sine wave using USRP

    how do i transmit and recieve a single sine wave using USRP...i would really appreciate it if someone posted that example
    i already understand the blocks of the usrp...but do i need to modulate the sine wave signal or i will just send it..i am really confused
    i hope that you may post the example

    Hey Eldokch,
    See step 4 in the following white paper:
    http://www.ni.com/white-paper/13880/en/#toc4
    It uses two examples packaged with the NI-USRP driver, "niUSRP EX Tx Continuous Async.vi" and "niUSRP EX Rx Continuous Async.vi".
    -Jim B
    Applications Engineer, National Instruments
    CLD, CTD

  • How to use CQL patterns in CEP?

    Hi,
    How to use CQL patterns and what is the use ?

    Try the new Stream Explorer interface and check out the patterns section. These are pre-defined patterns that allow you to look for trends, missing events, duplicates, W Pattern, etc. These do in-memory incremental processing of data with high throughput and low latency.
    The SX user interface allows you to easily define a data stream and start applying a pattern. An Event Processing Network (EPN) with a CQL processor and the CQL are generated automatically and the results are immediately shown on the user-interface.

  • Generating a waveform using PXI-6534

    Hello,
    I am trying to write a VI to generate 3 waveforms using a PXI-6534. I am not familiar with how to do this in Labview really, so I was hoping I could get some help getting started with this. The 3 signals are a clock signal, data, and load enable. The clock has a frequency of 614.4KHz, and a data bit is sent on the falling edge of each clock pulse. After 48 data bits have been sent, the clock remains low while the load enable signal is pulsed low for one clock cycle. Unfortunately I do not have the waveform generation editor, are there any alternatives to this? If anyone could give me any suggestions or point me to any tutorials or examples it would be greatly appreciated.
    Thanks,
    Steve

    This you can do this.  I have used this exact card to continiously bit pattern from an array I streamed out a 500,000 sample stream out at 10MHZ and read back a 8MHz and parsed the data.  Look at the daqmx examples.  essentially you want to write the array to the buffer and set it up for ALLOW REGENERATION on the write property and Continious on the sample clock. Look at the following examples:
    Hardware IO>>daqmx>>digital generation>>Continious Write Dig Port-Ext Clk generation.
       this sounds like what you need, a continious digital pattern generation using an external clock.
    Also see the non regeneration example. you can change the pattern on the fly.
    I would not use traditional daq since is is very outdated and probably will not be supported in the future.  DAQMX is much better.
    Paul
    Paul Falkenstein
    Coleman Technologies Inc.
    CLA, CPI, AIA-Vision
    Labview 4.0- 2013, RT, Vision, FPGA

  • Error while generating DDL commands using startSQLRepository for a new Repository

    Hi,
    I am trying to generate DDL Commands using startSQLRepository for my new repository SubashRepository so that I can use them to create new table structure.
    All the repository related changes looks good. i can see my repository in ACC
    When I run the command:
    startSQLRepository -m SupremeATG –repository /com/supreme/SubashRepository /com/supreme/subashRepository.xml -outputSQLFile C:/ATG/ATG9.3/SupremeATG/config/com/supreme/subashRepositoryDDL.txt
    I get following error:
    Table 'SUBASH_MEMBER' in item-descriptor: 'member' does not exist in a table space accessible by the data source.  DatabaseMetaData.getColumns returns no columns
    Note:
    * errors related to definition file were cleared as the same command threw relevant exception while trying to store a array property with out creating a multi table.
    * Now this is the only exception i see
    * Some DDL are getting generated in the output file, but those are related to inventory repository (I am not sure why this is happening as I have specifically gave the path to my definition file).
    Any help in resolving this is highly appreciated.

    Pl post in the ATG forum

Maybe you are looking for

  • Pictures and videos

    My Nokia 2220 slide phone is full of photos and I dont know how to get them onto my computer. I dont seem to have a usb cable with it and I dont know how to do it with bluetooth. Any ideas please?

  • Photoshop black in InDesign is not the same as InDesign black

    Is there a solution to intensify the blacks in InDesign?  If you create a black shape in Photoshop, and paste it into an InDesign document, then create the same shape in InDesign and fill it with black and print, the Photoshop black is really black a

  • HELP: Irresponsive dock + menu + folder opening

    Lately, I experience a weird behavior. Never had anything like it before. After a few minutes that my computer works just fine (15 minutes or so), the dock + application's menu become irresponsive, and furthermore, I cannot open any folder. A restart

  • Control the authorization base on material type level

    Dear Experts, We want to control some users only can create or modify the material base on material type level . For instance , user A only can modify the 'ROH' type material , he can not maintain any 'FERT' type material . I set the authorization ob

  • ICal invitation issue

    Hi Community, I have a strange question and I hope someone call help. When I create an event in iCal on my MacBook and invite attendees everything is okay. However, when I create an event in iCal on my iPhone the organizer is my father in-law. I real