LM3s8962, frequency PWM to change on the fly

Hello

I'm trying to understand how to change a PWM frequency by programming in real time. The basic property IO node does not, or at least I n t know when to call it.

In case you wonder why, I want to order a stepper motor.

Thanks in advance.

Never mind

Solved by starting the PWM outside the main loop, using the basic i/o., inside the main loop, using the basic IO property node, put put fallow frequency use (hudreds of p x 100 Yes) cycle.

See you soon,.

Tags: NI Products

Similar Questions

  • Change on the fly application background image

    My main application screen has a background image, set (it is abbreviated):

    Class BBScreen extends screen implements {FieldChangeListener}

    public BBScreen()

    {

    Super (Manager.NO_VERTICAL_SCROLL);

    setTitle ("my app");

    BM1 = Bitmap.getBitmapResource (...);

    vfm0 = new VerticalFieldManager (...) {

    public void paint (Graphics graphics)

    {

    graphics.drawBitmap (..., bm1,...);

    Super.paint (graphics);

    }

    };

    Add (vfm0);

    }

    }

    However at some point during execution, I want the background image of the bm1 to bm2.  How to set the new picture and that the painting occurs?  Thanks for the pointers.  FD

    Try something like this:

    public class BBScreen extends MainScreen implements FieldChangeListener{    Bitmap bm1 = Bitmap.getBitmapResource("image1.png");    Bitmap bm2 = Bitmap.getBitmapResource("image2.png");    Bitmap mainBitmap;    public TestScreen()     {        super(Manager.NO_VERTICAL_SCROLL);        setTitle( "My Title");           mainBitmap = bm1;        VerticalFieldManager vfm0 = new VerticalFieldManager(...)        {            public void paint(Graphics graphics)            {                graphics.drawBitmap(.., mainBitmap, ...);                super.paint(graphics);            }         };        ButtonField btn = new ButtonField("Change Background");        btn.setChangeListener(this);        vfm0.add(btn);        add(vfm0);        }    public void fieldChanged(Field field, int context)     {        mainBitmap = bm2;       this.invalidate();   }}
    

    Concerning

    Bika

  • Changes on the fly in DW

    Hello!

    In a big dilemma here. Long story short, I need Freehand to access older files created by our designer. A through a 3rd party company (Aventis systems) and bought the software - or thought I had. They sold me Dream Weaver, who, to my knowledge, is a web design program. All I have to do is change existing Freehand files. Aventis is also refuse a refund as they say that DW is a compatible solution to Freehand.
    I know zilch about DW; so my question is - I am able to open and edit files Freehand in DW?

    The company bought you the wrong software.

    Freehand drawing is a drawing application to generate vector graphics.

    Dreamweaver is a code editor for HTML, CSS, and JavaScript files.

    Not even close.

    What you need is Adobe Illustrator, you can download it for free for 30 days with the cloud of Creative.  After the 30 day trial, you will need to subscribe to the creative Plan of cloud

    Graphic design software | Free download Adobe Illustrator CC trial

    NOTE: Tests have been changed to 7 days.

    Nancy O.

  • Is it possible to filter design on FPGA reconfigurable on the fly?

    Hello world

    I wonder if it is possible to design multi-channel filters on the FPGA reconfigurable on the fly? For example, it is possible to have X bandpass filters in an iteration, and Bandpass Filters Y with different specifications in the iteration following without having to recompile the FPGA code? Is there a simple way to achieve such a purpose?

    I have built such flexibility in the OTR (where each iteration has different filter settings) but hope to implement on the FPGA so.

    If someone could provide ideas as to whether or not such a conception is possible, it would be greatly appreciated.

    Thank you in advance for your help!

    Steven

    Hi Steven,

    How do you try to generate the FPGA code for this filter, you are using the IP generator?

    If so, this knowledge base article describes fixing the coefficients for multichannel to change on the fly filters.  There is also a nice example in there also.

    Also, if you use this IP generator, this help document describes the more Options box that has the ability to change the coefficients to be 'rechargeable' so that you can change these on the fly it too.

  • In the latest versions of FireFox, there's a display option which allowed a change in the size of the fonts and objects on the screen temporarily on the fly. This seems to be missing from version 6.

    In the latest versions of FireFox, there's a display option which allowed a change in the size of the fonts and objects on the screen temporarily on the fly. This seems to be missing from version 6. It was very useful and should be added to version 6.

    https://support.Mozilla.com/en-us/KB/how-do-i-customize-toolbars

    If you mean the - and + Zoom control so it is always there in Firefox 6.0

    or
    View-> Zoom

    Edit: I see that you are using Windows 7 where the menu bar is hidden as a Firefox orange button by default. Some menus objects much may not be visible in the menu of the Firefox button. Show the Menu bar or use the - and + Zoom controls buttons.

  • Amplitude varying on the change of the input frequency

    Hello

    I using NOR-5752 scanner to measure the analog inputs of high frequency. NOR-5752 is connected to the module FLEX RIO 7966R and entry to the NOR-5752 is provided using the SMB-2145 terminal outlet box.

    Now, I'm the animals the 0.5Vpp @ different frequencies of tektronix generator of functions directly and by measuring using the digitizer. On the change of the frequency, measured amplitude is changed.

    All,

    For the NI 5752 frequency response strange behavior is expected.  CDA in NI 5752 is the TI AFE5801 (http://www.ti.com/lit/ds/slos591d/slos591d.pdf), and if you look at Figure 19 (p.13), you will see that frequency response of the ADC is only flat after about 1 Mhz.  I checked this with our R & D Department and they said they are not aware of any combination of parameters that gives a uniform frequency response at these low frequencies.

    If a flat frequency response is necessary for these lower frequency ranges, then the 5751 NOR is much better suited because it has a different ADC.  (http://www.ni.com/pdf/manuals/375602b.pdf)  The frequency response of this device is very flat in the low frequencies (see Figure 11 p.15).

    So both devices, NI 5752 and the 5751 OR are designed to measure different frequency ranges.  I hope this helps.

  • Header does not get changed when on the fly optione activated.

    I tired to change the header of the report using a reminder & it was working fine when I generate the report by keeping the option "on the fly report' disabled. When I try to execute the same sequence with "on the fly report option" on I do not see header information that I could see when "on the fly" option is disabled. I did find the cause and found the following link http://digital.ni.com/public.nsf/allkb/05F43468942BE32E86256D980074E200 but it did not work very well. I was not able to understand the reason of not revealing the header information when "on the fly" option is enabled.

    kpraveen,

    I looked at the files attached to this knowledge base and saw that they were modified versions of files delivered with TestStand 3.0.  Because we have made some changes to these files from this version, there is no guarantee that they will work with the latest version of TestStand.

    If you need this behavior in a newer version, you can change yourself the sequence reportgen_ files.  You will need create sequences modifyheader and modifyfooter in the sequence thost files, then call these the result of OTF process sequence sequences.  We are currently working on a set of more detailed guidelines, and I'll post here when they are available.

  • Change IP iSCSI on the fly?


    Hello

    Just, I came across an interesting, whatever it frustrating problem.  Among the two survey periods that I use for my iSCSI configuration was 'borrowed '.

    I am running ESXi 4.1 Update 2 +.  The iSCSI configuration is a typical separate vSwitch containing two vmnic, each attached to their own port vmkernel for failover purposes.

    I am running with a single path, so he has not failed yet.  Can I change the IP address on the port of vmkernel iSCSI in question on the fly?  I guess the real question is, I have to reboot the host after changing the IP address?

    Thanks in advance!

    -Bob

    No you will not have to restart the ESXi host after changing the IP address of the iSCSI vmkernel

  • PXI-5421 generating an arbitrary signals on the fly

    I have a card PXI-5421. I need to generate an arbitrary waveform with different frequencies. I need to have a trigger to switch between Forms of waves of different frequencies. I use the script to do this. I'm not able to update the frequency of the next wave on the fly without stopping the program. In other words, can I download signals in real time? The code is attached.

    Hey Kakrott,

    You should be able to achieve this with your PXI-5421. The example of 'switch between the waveforms FGEN"in the examples of LabVIEW makes something similar to what you're trying to do. As explained in the documentation: "this example shows how to switch between two different wave forms while generating, using updated data every time." This example uses a trigger to change what waveform is generated.

  • Use a channel when you declare two and it changes when the program runs.

    Hello

    For the use of a map of 4461:

    With the use of the library DAQmx:

    When I use 'Create Channel.vi' I can to use 'Ai0:1' to use the 2 input channels. Then I use the Nchannel Read and split the signal with for example a "Board index".

    But is it possible to change the channel numbers 'on the fly' so when the program is running?

    The same question with the outputs

    When I use the channel to create for outings and I use Ao0:1 to use 2 output channels, can but I change to a single channel when the program is running. Nchan write.vi is used, and this requires 2 channels. The use of a channel will give you an error.

    Is there a nice way to handel this?

    Greetings.

    You can change the output to a level of 0 volts instead of what you read. It should be just a case statement and the writing remains the same.

  • 4462 PCI gain is editable on the fly in VB 2005 express?

    Hello

    My current setup of chanil comes from shape:
    myTask.AIChannels.CreateVoltageChannel (physicalChannelComboBox.Text, "", _)
    AITerminalConfiguration.Differential, Convert.ToDouble (minimumValueNumeric.Value) _
    Convert.ToDouble (maximumValueNumeric.Value), AIVoltageUnits.Volts)

    Where 'physicalChannelComboBox.Text' = ' Dev1 / AI0:3.

    This creats all channels at the same time, but I need to have different voltages, Min and Max.

    This is a MAX 4462 configuration.

    I'm doing this configuration in VB

    MajorVersion, MinorVersion DAQmx]

            8       6       [DAQmxChannel]          AI.Coupling     AI.Max  AI.MeasType     AI.Min  AI.TermCfg      I.Voltage.Units ChanType        PhysicalChanName        PPI2/PrimaryVolts       DC              42      Voltage -42             Differential    Volts            Analog         Input   Dev1/ai0        PPI2/PrimaryCurrent     DC              0.316   Voltage -0.316          Differential    Volts            Analog         Input   Dev1/ai1        PPI2/SecondaryVolts     DC              31.6    Voltage -31.6           Differential    Volts            Analog         Input   Dev1/ai2        PPI2/SecondaryCurrent   DC              0.316   Voltage -0.316          Differential    Volts            Analog         Input   Dev1/ai3        [DAQmxTask]     Channels        SampClk.ActiveEdge      SampClk.Rate    SampClk.Src                     SampQuant.SampMode      SampQuant.SampPerChan   SampTimingType                                  Rising                  195000          Continuous Samples      2000                            ""                              Sample Clock    PPI2    PPI2/PrimaryVolts, PPI2/PrimaryCurrent, PPI2/SecondaryVolts, PPI2/SecondaryCurrent[DAQmxDevice]   BusType DevSerialNum    PCI.BusNum      PCI.DevNum      ProductNum      ProductType     Dev1                    PCI             0x127B518               0x5             0x6             0x7170  PCI-4462
    

    I wish I could watch the values of data in time and change the gain/rainge of each channel while he was still recording data. How can I change the gain on the fly.

    Thank you.
    John

    Yes, it will work.
    Remember that you cannot change AI Min and Max during execution of the task.
    Well well... unless you will not see a difference when running

    Gavin Goodrich
    Software engineer
    National Instruments

  • Injection containers QML on the fly?

    Hello, I'm quite new to the Blackberry development, so far, I can say that I love it. I'm working on an application that requires me to be able to change the QML that is inside a container on the fly. For example:

            // MAIN CONTAINER PLACEHOLDER
            Container {
                id: mainContainer
                // Any way to inject fully built qml files right here, and swap them out on the fly?
            }
    

    I have a menu on the left in the form of a ListView when you press a button at the top left, the current view moves to the right and allows you to use the navigation. When you select a new navigation item, I want to replace what is in the "key container" with the QML file that is appropriate for what the user has selected.

    Thanks in advance for any help!

    You're better off using a delegate control for your particular problem.

    Take a look at the example of Cookbook qml stunts to see how it is easy to do.

    http://developer.BlackBerry.com/Cascades/sampleapps/

  • Creating new fields on the fly

    Hey all - try to set up the button, or whatever, to allow the user to add and remove the TextInputs on the fly. But I just can't 'thinking' how to do it. I think a change in the variable name for each new field, or some sort of table or object but just cannot nail down.
    Any help?

    Thank you
    M

    Nice - Nice. That's exactly what I need levancho.
    That's what I came with. I am a newbie to Flex/AS, so let me know if there is a better way to do it.
    Thanks for everyone for entry!

  • 11.1.1.2 Oracle: Oracle Business Rules: rules update on the fly

    Hello

    I understand that in the latest version of Soa (11.1.1.2), rules, already built on Jdeveloper can be changed from the em console.

    I installed everything, but could not find my path to such a facility. Please provide advice.

    Kind regards
    Anand.

    Hi Anand,
    This service is provided by SOA composer not by EM.

    Try to access http://host:soa_server_port/soa/composer.

    You will be able to set/change the rules on the fly using this composer of SOA

  • Crash on the fly after Archive & amp; Install 10.3.5

    Hello
    I did an Archive & install, Boot Mac installer disk it came with, and upgrade to 10.3.9 but after the relocation of FreeHand MXa, 11.0.2 want to run more.
    If I try to launch it crash after 2 seconds.

    I try to remove it with the istaller (using remove THEM) and then reistall it once again, but nothing changes. Crash on the fly after only a few seconds.

    I use befoure repair permission disco and after installation.

    Many thanks for any HELP.

    Hello
    I did an Archive & install, Boot Mac from the installation disk that it came with, and upgrade to 10.3.9 but the reinstallation of FreeHand MXa, 11.0.2 won't run more.
    If I try to launch it crash after 2 seconds.

    I try to remove it with the istaller (using remove THEM) and then reistall it once again, but nothing changes. Crash on the fly after only a few seconds.

    I use befoure repair permission disco and after installation.

    Many thanks for any HELP.

Maybe you are looking for

  • How can I stop firefox from opening a tab in Tools/Options

    Firefox 38.0.1 Suddenly instead of an open box now I have an open tab when I go in Tools/Options - how can I recover the box and the aperture stop tab, I'd rather be able to see my tab running below the box in Tools/Options, and now I can't. This mak

  • Incompatible NB550D with Advanced - 6230 N?

    HelloI replaced with an Advanced - 6230 N Intel Wifi card. After that the computer does not start.If I remove the Intel card, then it boots without any problem. It seems that my NB550D doesn´t asThis new card at all.No clue on how to make them work t

  • iTunes fails a few pieces of cd import

    I'm putting a 7 - cd audiobook on my ipod touch via itunes.  Then I import the disks in a new playlist in itunes.  I used the button name identification information and number of my disks, which worked well.  But when I look at my playlist, I noticed

  • DeskJet 1050 - J410a: HP Deskjet 1050 does not print after upgrade of Windows 10

    Dear forum, I recently upgraded my HP Windows OS 8.1 for Windows 10 desktop computer. My deskjet 1050 printer, which worked fine before the upgrade, does not properly more print after the upgrade. I used HP Print and Scan Doctor several times, indica

  • My contacts have been compromised this morning and sent spam emails

    My contacts have been compromised this morning and sent spam emails. I did a scan and no viruses detected, is there anything else I need to do