DAQmx change amplitude of wave on-the-fly

Hello!

I'm trying to program my DAQmx device. I have a table of double (waveform custom), a variable amplitude depending on another (feedback), frequency of 50 Hz operation. I want to change the waveform between starts with the new amplitude.

I have the error like:

200288 error has occurred in the DAQmx write (analog 1-d 1Chan NSamp DBL) .vi:1780001

Possible reasons:

Attempted to write a sample beyond the final sample generated. The build is stopped, so the sample specified by the combination of the position and the offset is never available.

Specify a location and a shift that selects a sample up to, but not beyond, the final sample generated. The final sample generated can be determined by querying the total number of samples generated after that a generation stopped.

Attempted to write example: 40
Property: RelativeTo
Corresponding value: Position of the current entry
Property: Offset
Corresponding value: 0

Task name: _unnamedTask<28>

How can I do?

Thank you

I have toke

https://decibel.NI.com/content/docs/doc-25373

and change a bit litle and it works!

Tags: NI Hardware

Similar Questions

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

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

  • 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

  • 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

  • change of KING imaq1394 during the capture

    Hello

    I use c ++ to implement an application that performs a continuous drain on my firewire camera. According to the manual, there are two ways to do so after an imaq1394CameraOpen2:

    (1) imaq1394SetupGrab-> imaq1394Grab2 (several times)

    (2) imaq1394ConfigureAcquisition-> imaq1394GetBuffer2-> imaq1394StopAcquisition (several times)

    Both options seem to do pretty much the same thing if I put continuous = 1 and bufferCount = 3.

    What I didn't understand is the last rectangle parameter. I could put what, but unless I changed the IMG1394_ATTR_FORMAT7_ * with SetAttribute before ConfigureAcquisition, the size of the image would not change, which has been upheld by GetAttribute. Unfortunately, this doesn't seem to work while an acquisition is running. So here's my question: do I have to stop, delete, configure, and start each time I change the return on investment or y at - it another way to do?

    Definition of attributes such as shutter time or acquire works very well on the acquisition.

    I use a Redlake Megaplus II ES11000 with NOR-DAQ IEEE 1394 version 2.0.1 of pilots.

    See you soon,.

    Tom

    Hi Tom,

    In fact, it must cancel the acquisition to change the return on investment. If you want only to move the KING but it has the same size, you may be able to use raw register written in the right registers on your camera to change the position on the fly.

    -Eric

  • Why do I only a part of the graph of the wave even if I added the whole wave using the shift register?

    It seems only to read 200 samples and then stop. Shouldn't get a chart to continuous wave after using the shift over a time register loop?

    You must remove VI begin to break out of the loop...
    You can not 'start' a task that is already running...

    You also remove the VI start completely from your code... If you do not use start VI, a measurement task starts automatically when executing the DAQmx reading VI.

    Find the attached VI.

  • RMS / amplitude and phase to the fundamental frequency

    Hi, does anyone know how to find the RMS or amplitude and phase to the fundamental frequency of a signal measured in Labview?

    I tried with the Analyzer for harmonics of buit - in, but he can't give the values of the phase angle. I also tried the FFT VI spectrum, but I don't think the results are good.

    Thank you.

    Hi again

    Harmonic distortion Analyzer is a polymorphic VI, this means that if you connect a single signal in and then you get a unique signal, and if you connect a table of signals in out you a table.

    The VI I is not polymorphic, but you can easily change to work with multiple signals. If you look at the standard implementation for the harmonic distortion Analyzer N-channel then, he simply called the channel 1 harmonic distortion Analyzer a loop for. So you can easily call my VI in the same way. See attached screenshot:

    Best regards

    Anders Rohde

    Technical sales engineer

    National Instruments Denmark

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

  • 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; 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.

  • Why can't change my email address in the profile change for communities?

    Why can't change my email address in the profile change for communities? I won't be able to get the email with the former in the future.

    Because the e-mail address is connected to your Apple ID, which is used to connect to the CSA. You must change the Apple ID.

Maybe you are looking for

  • Safari preferences page

    I recently updated my OS to OS X El Capitan (10.11.4) on a desktop iMac computer. Of course, after that, Safari also improved. Now I'm unable to open the page in Safari preferences. I tried the post regarding this problem for the Mac Pro, but it did

  • Hide ActiveX SequenceView the Setup/cleanup

    Hello I use the advanced for LabWindows of TestStand 4.2 operator interface and I want to hide the part of installation and cleaning of the sequence. How to customize what is displayed? Thank you Yannick Willener

  • Vista seems to be corrupt JPEG files which XP was ok with

    JPEG files which I have kept for many years and transferred on CD have been very well until I changed from XP to Vista a few years previously. My work with videos and still images has been very well with Vista t but glancing back older jpegs, I find

  • Graphics card does not properly.

    I just built my own computer (form will be displayed at the end of this post) and am currently trying to install everything I had on my other computer (games, programs, etc.). When I went to test this graphics card on a game I downloaded on my crappy

  • Problem with video card only detect audio TV (no passthrough) via EDID

    See this old marked question 'Answered' when it was clearly not: http://answers.microsoft.com/en-us/windows/forum/windows_7-pictures/problem-outputting-51-surround-sound-via-tv-to-a/2edeb051-46d8-4428-81d9-23782ad12543 Here are once again this issue: