change the frequency of the signal during execution

Hi, I'm working on a VI to calculate excess of signal I think VI seems to be good (not sure) but now my problem is

change the frequency during execution, which I am not able to do only when I stop and run the vi frequency changes... pls

someone help me I tried to put in an event... but no use... maybe iam missing something pls help me...

I noticed that you have some time a loop around the entire block diagram - I'm not entirely sure why that is.  The way you have your VI wrote that the two inner loops will never come out unless there is an error-'stop' buttons are hidden.  Thus, the outer loop is not do anything for you.

Once you take it, it is easy to see why you cannot change frequency.  It is defined once, outside of the loops and so never gets checked again.  The best way to resolve this, in your case, is to use registers with shift on the upper loop and check if the value of the frequency has changed since the last iteration.  If so, generate a new waveform and feed DAQmx writing instead.

See the version annexed to your main VI for what I mean.  (I also replaced the controls to stop with one that is visible and which will stop the two loops without your duty to hit the button abandon.) I'm also an error on the DAQmx read in the loop at the bottom, but I'm sure it will work fine on your equipment.

See you soon,.

Michael

Tags: NI Software

Similar Questions

  • How to change the frequency of sampling DAQmx during execution?

    Hello guys. I'm using LabVIEW in the measures of the frequency response function. My application requires the sampling rate to change according to the frequency of the signal during execution.

    I tried to do it with a "structure of the event" and it works well when I change the rate manually via the front control but it backs do not work when I set up the sampling frequency to vary automatically (just a frequency sweep). Photos below:

    Why not the structure of the event feels the change in the value of "rate"?

    Thanks in advance for your help.

    Lucas

    Hello

    In "automatic mode" to change the sampling rate, the calculated rate is written in the local variable (as illustrated in the code).  Structure of the event does not change value in the local variable as an event.

    In order to make the structure of the event to recognize the change in value of an indicator such as event: write the new value to the property "Value (Sgnl)" corrosponding node to rate indicator (see figure below).  This will make the structure of the event accept the value change in the indicator as event.

    Note: Use architectures such as producers and consumers for such applications, which makes the application readable and expandable.

    See rear queries if any.

  • Edit/delete/add scene coordinates in the table during execution

    Hello world

    I managed to build table allows you to store and record the coordinates of the stage and remind to control steps. However, I need change/remove/add details of scene during execution. I also need to allow the user to directly edit the coordinate from the scene of the array. Wondering what someone knows what is the best way to do it? Or is it better to use the matrix or Cluster? Thanks in advance.

    Best regards

    Han Yen

    Han Yen wrote:

    Thanks much altenbach for all the advice. I tried to do a table 2D control. I've been playing with table in the control. However, I still can't find out how can I detect that I change the data in the table 2D with the more recent issue during execution? How can I then update my current table with the latest data?

    Well, the 2D table is updated immediately and you do not all the other tables.

    Do you mean that you want to update XAbs, etc. where the just changed line is already selected?

    In any case, here's a simple project, perhaps it will give you some ideas. I would recommend using also the tables for XYZPos, entrances etc. and the XYZabs. This simplifies the code because you reduce the number of terminals and table operations.

    Let me know if something is not clear to you.

  • (How) Can I change the priority for execution vi when running

    Hi all

    I use the demons (free running VI) and I communicate them through queues.

    They are part of my architecture of device driver and use a producer (of the Acquisition) architecture or Architecture consumer (for control)

    I have a single VI demon I deploy an 'object of device' using a class polymorphic implimentation.

    This implimentation has a deficit of subtle,

    I'm not able to change the priority for execution to the launch

    There is a property node taunts that it is possible, but the assistance (and run the error message) says not available during execution.

    Anyone know of another method?

    Here's what I thought about so far:

    1. do you have 5 different demons with different priorities [Distasteful for the maintenance of the Code]

    2. make low priority and ensure that at least 1 VI in the driver has a highest priority [do not know if it works, mask implimentation]

    Kind regards

    Tim L.

    You might think about putting a timed loop or timed sequence in your daemon and then passing a value of digital priority to your demon. This is the best solution I can think.

  • Pass the value of the variable during execution

    Hello

    I have a package with a set of interfaces and three other variables.

    I want to pass the value of the variable at runtime, based on the value passed I want to decide which interface to run then. How can I do this? I got a set variable but I want to asssign the value during execution.

    Any help is greatly appreciated.


    Thank you
    San

    You have many options to achieve this goal.

    1. keep the run settings in the database, extract the Variables in a time of refreshment and use these variables in your Interfaces to get values of execution.

    2. change the value to the variables on the outside. You can declare a variable in a package as a step of the statement, and then use the variable in your interface in a successive step in your package. Then, create a scenario of your package and creating the scenario, it will prompt you to include the variables that you want to include as a startup parameter. Choose the one (s) concerned. Citing this scenario using Java or an OdiStartScen command or by using Webservices ODI externally, you can provide values of the runtime as a result.

    I hope this helps.

    Concerning
    A

    Published by: 922636 on August 29, 2012 23:53

  • definition of the background image of the file during execution

    So, I have another issue to resolve and my migration to 11.5 will be complete.  In the previous iteration, the project has been able to set the background image from an external file dynamically during execution.

    After the migration, it seems that the projector keeps the canonical path to the image of Member and looking for him there. In other words, loads of projector, but a file finder opens, saying: he cannot find the background image in the path of the source machine Director.  Setting the name of the file in the jargon does not stop this behavior doesn't happen.

    I tried to re - import the image as "link to external file" (which had the same results) and flat import (which does not load the file during execution, even if I put the file name in the jargon).

    Anyone know how I can do this, the value of the background image of a file during execution?

    Thanks in advance!

    I do it all the time.  Just make sure that the image is in the same location relative to the projector that's director file.  The easiest way is of course if the image is in the same folder as the .dir file, in which case, you'd sure as to put it in the same folder as the projector, and you can set the name of the file using:

    Member ("someExternalMember"). FileName = the moviePath & "filename.jpg"

    You can have it in subfolders as well if you want to make sure that the relative location is the same.

  • Filter the Table during execution and keep uncommitted line changes

    Hello

    I have a requirement which has been quite difficult for me so far.

    I use the first version Jdev 12 c.

    I have a table of AF that is connected to a ViewObject that is used for sending new data.

    When I add lines to this ViewObject, I put a field that I intend to use for filtering so that the number of lines is not displayed at the same time.  This field comes from a selection of LOV.

    I want to be able to change lines are displayed in the table based on what is the current value of selection LOV.  This isn't a problem for me, and it works perfectly using a view criteria and a variable transitional EO I put in place.

    My problem is that when I select a new value in the LOV and change to bind the variable view criteria, I want all changes uncommitted to the lines to be preserved in the View object.  Currently, the lines are not keep their changes, and I need to do this, because after that the user has entered data for a large number of lines, there will be a commit to the database for all new lines added.  Is this possible or should I look for an alternative?

    I also tried to use a table filter in the link of the page layer, but I get an error that I can't debug. It is marked as Houston-34014.  In this method, I try to access my bean in pageFlowScope to filter the table.  This bean variable is updated when the LOV selection changes.  Error messages settings are {0 = oracle.jbo.Key [-220-225], 1 = root}.  I also read that this filter parameter is a static filter and does not dynamically during execution.

    Any help would be appreciated, thanks for reading.

    Hello lhymel

    I think that your problem is solved, so please close this thread and open a new thread for tuning related problem

    Thank you

    -Ashish

  • Cannot change the value of the cells during execution of the VI

    Hello

    I'm changing the values in the table while the VI is on, but without success, can anyone show me please how to do this.

    Thank you

    MGarry

    MGarry,

    something like this:

    Please note that this does not reset the contents of the table if you rerun the VI. You can add code to it.

    Norbert

  • Changing the properties of the element during execution

    Is it possible to change the properties of the element when running on APEX. I'm looking for the equivalent to SET_ITEM_PROPERTY command in Oracle Forms.

    Yes, I want to

    It's the $x('P1_ITEM').size = number_of_chars_you_want

    P.S. Check this site: http://www.w3schools.com/HTMLDOM/
    It contains most of the properties of the DOM element.

    Hope that answers your question,
    Rutger

  • Adding series to the table during execution?

    Newbie :-)

    I'm trying to add series to a chart during execution because the number of series to draw is variable and only determined once the XML of a HTTPService returns...

    My chart looks like this:

    < mx:PlotChart id = "mainChart" showDataTips = "true" width = "100%" height = "100%" >
    < mx:series >
    ...

    If I add:

    < mx:PlotSeries xField = "Size" yField = "CompetitorPrice" displayName = "Competitor price" / >

    then the data plots OK, but try to create the same AS serial does not work (nothing appears):

    var newSeries:PlotSeries = new PlotSeries();
    newSeries.xField = "size";
    newSeries.yField = "CompetitorPrice";
    newSeries.displayName = "SeriesAddedAtRuntime!"
    mainChart.series.push (newSeries);

    Debugging presents the new series added and it seems OK... but it does not appear on the graph. No errors.

    I tried mainChart.executeBindings (); and mainChart.validateNow (); with no chance, but I guess as to what is to be the case here, as you can probably!

    What Miss me something to force an update of the chart with the new series added?

    Thanks in advance

    John

    It is not displayed because the table is not aware of the change in ownership of the series. I think that to run the following steps (give an or take a few syntax errors):

    var set = mainChart.series;
    var newSeries:PlotSeries = new PlotSeries();
    ...
    Series.push (newSeries);
    mainChart.series = series;

  • Disturbance of the signal during the flow of wegsites using ATV3

    I only have the dropouts on the websites and not with ATV3 apps - I also had static, but the new HDMI cable seems to have managed to get rid of it - also, sometimes I see continuous action on my MacBook Pro but action stops on my television, although the continuous sound - there is no problem with ATV3 applications , so I don't think that HDMI port is is the problem - I tried Netflix through the computer and have the problem but not on the Netflix through the ATV3 app - I El Capitan on my Mac, which is a year - old my ATV3 is two years and used almost every day - versions it's current

    It will be because of the network

    If during testing of wifi Ethernet

    To see a current state of the network to obtain a report of istumbler or similar. Look for the strength of the signal, noise and close networks

    Make sure that no other activity occurs (other streaming, web browsing, backup network etc.)

    Test on another network

  • Problem with pl/sql procedure, trying to get the value of the user during execution

    Hello

    Using oracle 11.2.0.3

    Can run sql that gets the value of the user during the fine workmanship and also via an anonymous block.

    uses of SQL & Enter_Product_Number

    anonymous block using: Enter_Product_number.

    However, get problems when trying to create a pl/sql procedure, use one of the above

    relevant below tried code part & and: buit works do not error, try bad bind variable if used: and ora-600 if try use &.

    How can we have a procedure from pl/sql that can call and receives a value of user during execution?

    Only way around what I can think of is to pass parameters to the procedure

    Thank you

    create or replace procedure ins_into_issues is

    v_nd_rec_cnt number (10);

    v_normal_rec_cnt number (10);

    Start

    Select count (*)

    in v_nd_rec_cnt

    refmast.issues I have

    where i.iss_product_num = & old_nd_product_number;

    Select count (*)

    in v_normal_rec_cnt

    refmast.issues I have

    where i.iss_product_num = & normal_product_number;

    -code below commented above works.

    end;

    Hello

    what something like this:

    create or replace procedure INS_INTO_ISSUES ( in_normal number, in_old number )  is
      v_nd_rec_cnt     number(10);
      v_normal_rec_cnt number(10);
    begin
        select count(*)
          into v_nd_rec_cnt
         from refmast.issues i
         where i.iss_product_num = in_old;
      --
        select count(*)
          into v_normal_rec_cnt
          from refmast.issues i
         where i.iss_product_num = in_normal;
    end;
    

    concerning

    Kay

  • Problem - change the country during registration!

    Hello. I'm Belgian and I try to buy access to the creative cloud. During registration, the program notes that I live in the United States and that he proposes to call the (800) 585-0774 to change the country option. But this phone number does not work. Could you help me please?

    Please see: pricing and membership creative cloud plans | Adobe Creative Cloud

  • Cannot view or change the signals in the timeline

    I'm pretty new to FCPX. But I know that I did this particular thing last week. I want to disappear a song at the end of my film. But the waveform for the song is not useful or editable. It's a very narrow (green vertical stripe in my calendar. There is a barely recognisable dark grey line through the song in the timeline panel, but I can't find any way to extend this option to make the actual waveform visible so I can put handles on it, and do the fade. I can't find all the commands to make the visible waveform.

    I tried the thing helps in FCPX and I tried the Apple on FCPX book, and I searched the internet. On the net, there are a few references to the problems of that kind for several years, including a command-W command option, which does not, so it must be an old key combination.

    I haver restarted Final Cut, I restarted my computer. Nothing helps me. What is the scoop, people? Am I missing something really obvious? Thanks for your help.

    You need to Clip Hight taller.  In the lower right pane Timeline is a menu to do with.  See the section "clip timeline and hight Adjust appearance" here.

    http://help.Apple.com/FinalCutPro/Mac/10.2/#/verb8e5d346

    You can also use the Option key with the up or down arrow to change the appearance of video via the keyboard.

    Also, here is info on Audio Fade handles.

    http://help.Apple.com/FinalCutPro/Mac/10.2/#/ver39580fed

    If you're too far zoomed out, you won't see many details (command with the - or = key to zoom in and out).

  • ScatterGraph does not manually change the axis to execution interval

    I use the ScatterGraph and the WaveFormGraph in VS2010 Winforms application.  I have the interaction mode axes set to EditRange.  The WaveFormGraph command allows to edit the axis range by clicking on the end of the axis labels and modify them.  ScatterGraph control is not even though the documentation I've read says it should.  The mode of the axis does not seem be the question that I have changed between fixed and AutoScaleLoose (which is not the choice to have everything showing changing data, if you want your range entered manually to maintain).  I tried a new project with a ScatterGraph control with the default settings and checked that it does not change the axis interval.  Is there a way to change the settings to allow you to manually edit a ScatterGraph range in this way when running?

    Thank you!

    Hi Lybro,

    You have activated the "EditRange" of the graphical object of point clouds InteractionMode? There are two places that the mode of interaction is defined, one for the axis and the other for the scatter chart, both must be enabled for writing at work. I just tested this with Measurement Studio 2013 and it works. Let me know if it helps.

    Kind regards

    Kevin

Maybe you are looking for