Departure of analog playback corrupts waveform analog writing

I came across a strange illness that can happen if I run a diagnostic routine on my system.  My routine of diagnosis is essentially four while loops, each containing code to control specific items in the hardware of the system. Two of the articles are DIO and worked still no problem.

(Am under LV 2013 on Win 7 with an acquisition of data PCI-6014)

The other contains a similar read using AI8 and the last analog writing on AO0.

When I run the analog writing task, I am animals in a waveform that essentially pwm output.  In itself, this works very well.  The only parameter that I change for waveform generation is the total time in seconds.  I put in two seconds and I get the result adjusted for 2 seconds.

The problem occurs when I try to do that and read the analog input (a simple voltage to a pressure transducer) at the same time.

If I begin the task of reading during the writing task execution, modulation goes high signal and the rest, do not turn off until I have force him.   If I have the task of reading running (in a loop remember if I can monitor the pressure) the writing of acts task still more wiggy.  When I start the task it takes perhaps 100-200 ms with the modulated signal and stops.  Fourth start-up, the signal going back straight to high and remained there until this that forced to withdraw.

So, is it a kind of limitation on this old material on reading and writing (at least a waveform) at the same time?

The writing task was originally created in the front of the loop and I tried to create it daqmx and using this, but it made no difference.  I use a schedule vi daqmx to set the frequency of sampling clock based on the same waveform with a setting of finite samples.

Any thoughts are appreciated.  It's not stop me from going forward, but I would like to know why it is the way it is.

Thank you...


Tags: NI Software

Similar Questions

  • Error-50352 to DAQmx analog writing

    Hello

    I get the following error message when you try to write data points about 20 million to a Council of PXI - 6713:

    Error-50352 occurred at DAQmx Write (Wfm Analog 1Chan NSamp) .vi:1

    Possible reasons:

    The requested memory could not be allocated.

    Task name: _unnamedTask<1>

    I don't understand the error memory. When this happens, use LabVIEW is, according to the Task Manager Windows, only 750 MB of memory, perhaps 950 MB max, and I ran things successfully when LV was used 1.6 GB of memory.  I have increased my settings of virtual memory to 3 GB for Windows Vista 32-bit. I have 4 GB of memory total, and I have a core duo 1.8 Mhz CPU.

    My VI is attached. I read in a waveform of singles, do a conversion in rooms double and try to write to the Commission. I use DAQmx calendar sample clock instead of "Using the waveform", because using the sample clock results in one less copy of the data. I read the data in singles because that is how I write in advance, and it is much faster to read in simple it is double.

    Is this something that will have to be split into several Scriptures? If so, how does that affect performance? I have a very limited time)<1s) to="" write="" this="" data="">

    Thanks for any help and please let me know if I need to provide more details.

    Hi Djaunl,

    I ran your program with a DDHN file that I created and got the same error your saw.  I then ran the program with highest point running on - the light bulb it the top of the block diagram. I found that the error occurs on the second loop.  This leads me to believe that it was something to do with the implementation of the task.  When I replaced the clear DAQmx with DAQmx stop and this solved the problem.  The reason that this solves the problem, it is the DAQmx clear clears the task each time that the loop runs, thus freeing up your calendar information.  Whe you switch to stop DAQmx, task configuration information are not totally clear and the error is resolved.

  • Waveforms of writing to the worksheet to help to write on the worksheet vi

    Hello

    Problems with writing 2 waveforms of the myDAQ to a worksheet. Using the "write on the worksheet vi.' does not work as it records in the file, but when you open the file to look at the results, there is no data." I got a screenshot of used vi, unfortunately the file as an attachment could not be validated. Someone sees the problem and no solution?

    http://i50.Tinypic.com/2isil8w.jpg

    Thank you

    You need to do a little basic troubleshooting. Make a right-click on the son goes into the loop, and selection "probe". After you run the VI, the content of the probe and see if there is no data there. I had to put a delay in the loop of the acquisition or specify a number of samples to get the data in a consistent manner.

  • Problems with playback of waveform in MATLAB files

    Deal all,

    I acquired signals on 2 A/D channel (using the DAQ M USB-6215 map) and save them in the file of waveform using WriteWaveformsFile.vi. But the transformation (FFT, elippse fitting, fitting sinewave) I want to use these data in MATLAB. I tried some options like waveform of conwert bin file, but I can't get this data into MATLAB correctly. I also convert waveform data (or data from a waveform) using WriteToSpreadsheetFile.vi, but still I can correctly get data in MATLAB. I'm not sure what I'm doing wrong. Thanks for your help on any tip. I use matlab R2009a andLabview 8.5.

    Tomaz.

    Hello

    Saving the data in a file, please use Scripture for measurement files (express VI) and configure for *.lvm, without column header and time. So since this file *.lvm is a normal text file, try to read it in matlab.

    Thank you and best regards,

    srikrishaNF

  • Audio playback but waveforms have disappeared in all projects (CC)

    is this a bug or I have enabled some toggle random?

    Under the timeline make sure display settings 'Show Audio Waveform' is checked.

    Peter Garaway

    Adobe

    Premiere Pro

  • Output TTL triggers analog input with PCI-6251

    Hello, I'm new to LabVIEW and have a question that I hope I can get a response on this forum.  I am currently using a PCI-6251 DAQ card with a block of connection BNC-2120.  I would like raise an event on an input, for example a sine wave, which is connected to AI0 analog.  Then I would send a TTL pulse train via the digital output.  What I'm describing can be better understood by the images of this link:

    http://zone.NI.com/DevZone/CDA/tut/p/ID/3017

    In the tutorial page linked above, they do mention the card PCI-6251, but when I read the specs and compared, 6251 also has analog and digital Board, trigger functions, as well as digital I / Os... so I think he should be able to do what I want it to do.  Can anyone confirm this?  If anyone could help me by providing a VI that could do what I ask, just to help me get started, would be greatly appreciated.  Thank you!

    Hello!

    Please post on the Forums OR! My suggestion would be to use build it digital Pulse - Retriggerable.vi found in the Finder for example of OR. Open LabVIEW, go to help > find examples > input/output equipment > DAmx > generating digital pulses > generate digital Pulse-redeclenchables. Change the type of trigger for this departure vi > Analog edge and make the source one line APFI (pin 20 of your card is APFI0). This will generate a pulse based on an edge similar to a level that you specify.

    I hope this helps!

  • Waveform... Problem

    Well, I take (multichannel ADC) entry of A Microcontroller.i.e uC 6ADC uC has done its job and sends serial...

    My problem is when I use a waveform of writing file...

    the PDM contains more than 2 values at once

    That's why when I o/p is the evil waveform... its much igger (sense of time)

    How to build a waveform with instantaneous values of Amplitude

    What is the file .tar you home?

    Looking at your screenshot, I see the timestamps in your table.  You rely on Windows calendar to get the timestamps?  Do you know that Windows has only a resolution on its clock of approximately 16 milliseconds?  That's why you see several pieces of data with the same time, then he jumps 16 milliseconds.

  • Control code Source Robo get corrupted

    Using RH10 and RSC, my files are get damaged.  I use Windows 7 64 bit and I apply the patch for 64-bit.  We noticed little things go bad recently and thought it was RH10 since no problem has not been observed in RH9.

    I knew RH10 made some changes to the network, could it be done my project?  I'm pulling everything to implement out of version control to avoid corruption.  Projects must be in Source code control.

    Everyone knows about this problem?  Some corruption is local and some remote is.

    CorruptedVersionControl.jpg

    Due to our server with very slow access and RH10 locking up, we believe that the source of the corruption occurs when writing files on disk or on our server SourceControl.

    Restart the source control server fixed a lot of problems.  This PC gets restarted every month when IT backs up.  In addition, the server is only serving 6 projects for 2 people,... nothing else.  We will restart this PC a week now and see if our problems disappear.

  • error-200288 AO

    Hello!

    I'm programming an analog output, to whom I write a single voltage in 'manual' mode value or a waveform in "scan mode" depending on the user input. The user can switch between them. Overall the program is big enough, so I'm writing just some scrrenshots vital parts:

    1. I initialize the channel in order to generate a unique value (Img1).

    2. when the user changes the output of the scanning manual mode, a waveform is generated (Img2a). During the passage of the analysis in manual mode this step is left aside because no waveform is necessary. The respective sub - VI changes the schedule of the task to the sample clock. I don't know if it is really necessary to generate the waveform. I could probably just use the clock frequency of the sample instead of reading the actual value you want. I copied this part from a previous version of the program. He probably had a reason to be there, but I can't ask the person who wrote it.

    3. a sub - VI puts an end to the task, resets the timing, and wrote the single value (Img3b), or the waveform (Img3a) according to the selected mode. Then it restarts the task.

    My problem: when you switch the waveform in "scan mode" that is written, I get the error 200288 say I'm trying to generate samples after the final of the sample. The help says I must stop first, then change and restart the task to rearm the software trigger. I think that's what I was doing. So I don't understand why I get this error. The funny thing is that the error appears when I go in "scan mode" after the second time I have start the VI. The first time the waveform of writing very well seems to work without errors. I really don't understand why it does not work on several occasions. All advice is appreciated. Thank you in advance.

    In fact... He timed acquisition.  It depends directly on samples being released at a specific rate, which disrupts your interior while loop.  While this inner loop waiting for someone to press the button, this buffer to fill.  Because you do not call DAQmx writing soon enough, this buffer is overwritten, and you get an error.  Who is?

    Look at this.

  • Regulator PID that VI is not expected

    I am writing a multichannel PI controller using the PID vi (in the PID toolkit). All channels have the same point of setpoint, output range and PID adjustment of the values. In the help file for the vi of PID, he says:

    "The array instance DBL this polymorphic VI can be used in PID control applications multiple loops." In this case, the primary input array length will determine the length of the output array. Other paintings of entry need not necessarily to have the same length as the main entrance Bay. Other paintings of entry will be resized by this function for the same length as the table of primary entry as follows:

    • If the input array is longer than the main entry, the input array is truncated to the length of the entrance Bay. In the table of additional values are not used.
    • If the input array is shorter than the main entrance Bay, the last value of the input array will be repeated until the size matches that of the Bay entrance.

    In this way an input value that should be used for each calculation output didn't need to be specified in the array passed into this function repeatedly. Instead, the table can consist of a single value that will be used for each calculation output. »

    > I take this to mean that I don't have to laboriously repeat the same data for each channel; That is to say. I can wire a table 14 poles "process variable" entry of PID.vi but only for example number 1 on the set temperature etc. In practice, however, this does not work. See attached vi (NB this is not yet complete, so you can't run it!) and note the broken wires!

    Dave

    Hello

    The reason he has a cut wire is on some entries have that one value wherever the array type needs a picture on all inputs, even if the table has only one item! You can see in the code, I went back that everything I've done is but a building block to convert table effectively the type of a single variable in a table with only one type of data. I also had to change analog writing for multichannel and change the data type of the shift register, I presume this would be necessary.

    Kind regards

  • cRIO-9114 don't reset the host.vi programming interface

    Hi, I use Labview 2009 with a target FPGA 9114 cRio controlled from a host PC.

    Host opens the target FPGA (open FPGA vi reference) and then executes a loop to write output voltages via the FPGA - target.vi in an analout 9264 module. Works very well.

    When the loop in the host.vi is stopped, I tried that reset just as method of FPGA interface outside the loop to restore the default values defined in the FPGA - target.vi the analog output voltages. However, the values are not reset, but remain at the last value in the loop.

    The only thing that works is by using the method of interface FPGA download instead of resetting one after execution of the loop.

    Any ideas why the reset function and/or stop does not work?

    Thank you very much!

    Can you post your code? I guess that the analog value is never sent when you stop. The program closes faster than analog writing. That would be my guess based on the way you have described.

  • Confusion of output CONT

    I'm completely new to DAQ - MX but enough experianced in LabView/.net. I have a simple task of vew to play with my USB-6509: I need numeric constant values for a time to indefinent control the output relays.

    My problem is that your examples of numerical values show involve a loop at each clock cycle. I could get around the loop of indefinate of multithreading, but that solution seems ugly, and looks like there should be a better way to do it.

    How can I configure the USB-6509 to simply generate a value until he is told otherwise, beyond a loop in each clock cycle?

    A unique DAQmx writing is all you need. I'm not sure digital but if you do a similar writing, tension will remain until another analog writing. Digital might be allowed by a work stoppage and a clear task, but in all cases, you do not have a loop.

    The 6509 is software timed, so it would not be all "clock cycles" anyway.

    Edit - Sorry for the double post.

  • Why firefox will not keep my active cookies settings? It changes their return once I put them.

    I am enrolled in a course of mathematics online. It has been necessary to me to allow cookies. I tried to allow cookies in firefox, but whenever I do, I click ok and then when I come back, the settings are the way they were. I can change other things, but not cookies.
    Please help me, I'm unable to access my course of mathematics and have already spent a lot of time on outages, for this and other questions I solved.
    Thank you

    It is a common problem. Try resetting firefox to solve the problem, but in case it does not try one of them: -.

    That your cookies are not saved, it could be a third-party program change it back to its previous setting, the substitution of preferences user.js file.

    Your installation of Firefox may have been customized to add a configuration file program that blocks certain preferences or prevents certain changes saved. If try reinstalling.

    Firefox may be unable to save your settings if the prefs.js file (or the prefs.js.moztmp file, if it exists) is write-protected or there are other prefs backup files.
    File preferences may be corrupt, Firefox prevents writing to it. If you delete this file, Firefox will automatically create another when it comes to.

    Try one of the above... This should work.

  • This will remove all your custom settings and the settings of many extensions.

    Hello

    I was reading this article of knowledge and he says:
    "This will delete all your custom settings and many extensions settings."
    What are the custom settings?

    for example one of these and what else
    bookmarks?
    Add - ons?
    Top toolbar - Customize the toolbar
    Add on the toolbar
    Firefox/preferences
    Authorization Manager settings
    the new page open

    Corrupted preference file
    File preferences may be corrupt, Firefox prevents writing to it. If you delete this file, Firefox will automatically create another when it comes to.

    Here's how to delete the prefs.js file.

    This will remove all your custom settings and the settings of many extensions.
    Open your profile folder:

    In the menu bar, click the Help menu and select troubleshooting information. The troubleshooting information tab will open.

    In the section the Application databases, click view in the Finder. It will open a window with the folder of your profile.
    Note: If you are unable to open or use Firefox, follow the instructions for finding your profile without having to open Firefox.

    In the menu bar, click Firefox and select Quit Firefox

    Locate the prefs.js file (and, if applicable, the prefs.js.moztmp file).
    Delete these files and files prefs - n.js where n is a number (e.g. prefs - 2.js).
    If there is, remove the Invalidprefs.js.
    Restart Firefox. You should now have reset all preferences.

    Based on information from preferences not saved (mozillaZine KB)

    See also http://kb.mozillazine.org/Profile_folder_-_Firefox

    #1: there are too many pref for all kinds of adjustment which will offer a recipe of what you lose and how to keep certain parameters.
    It is possible to copy specific lines of a prefs.js to this file in another profile or restore some settings after deleting this file in the current profile folder.

    All the prefs that show as a user defined and appear in bold on the topic: config page are stored in the prefs.js file.

    This includes the changes you make and data Firefox itself and extensions store as data/parameters in a pref.
    It's

    #2,3: the localstore.rdf file stores the toolbar configuration and other data.

    #4: the current versions of Firefox shows the menu entry "Tabs" at the top menu ' display > toolbars "and" Firefox > Options ' and in the menus toolbar pop-up if the tabs are not in the default position on the top.

    If the notches located on the top and the menu entry is not available and you want to move the tabs under the navigation toolbar, then you have to toggle the pref browser.tabs.onTop false on the subject: config page.

    A restart of Firefox is necessary for updating the menu entry to display or remove.

    Note that this pref will no longer effect when the code Australis lands on the output channel (code Australis will probably land in Firefox 29).

    #5: see https://support.mozilla.org/kb/Clear+Recent+History

    Compensation of the "Site Preferences" clears all exceptions for cookies, images, pop-ups, installing the software, stored passwords in permissions.sqlite and other site specific data stored in content - prefs.sqlite (including zoom on the page).

    Deletion of cookies will delete all specified (selected) cookies, including cookies with an exception allowing you want to keep.

    #6,7: history of search bar is the story of the search bar (Google) on the Navigation toolbar.

    All recorded data to a form on a web page is included in the data in the form, but you can not separate and distinguish the two.

    Browsing history is the history of the web pages you have visited.

    #8: session cookies are always kept in memory and never stored on the disc in cookies.sqlite

    You can only delete specific cookies manually in the Cookie Manager or leave cookies expire when you close Firefox to make them behave like session cookies.

    Cookies of other compensation will include all cookies and don't obey the exceptions that you have made.

    #9
    Data stored in storage DOM is not stored in cookies.sqlite, but it is generally stored in the webappsstore.sqlite file or possibly in the form of data in IndexedDB.

  • convert 1 d undulating 2D signals

    My problem is that I want to write a graph of daqmx writing that will be read by daqmx read. The way I have it now is a form of wave 1 d. My code is attached with the post. My goal is to create a waveform of 8 channels of all zeros, then select what channel I want to choose to apply a waveform. If I choose channel 1 and 3. These two will be affected by a sine wave, and the rest will be a waveform of all zeros.

    I mean if I have a waveform of all zeros and I feed him to the subset of spare board (upper receiver) and I have an actall waveform and feed to the subset of table to replace (low sink). I used a 1 d numerical control or index of the ListBox in the new array. If my index value is 1 and 3. This means that row 1 and 3 that have been all zeros will be replaced by the waveform (sine wave) and the remaining lines (0, 2, 4, 5, 6, 7) will always be a waveform of all zeros.

    But what to display, since my waveform is a 1 d array, I can't show more than one waveform on the chart. How can code this in a way where I get a table 2D waveform for each channel. I know I can't write a waveform daqmx writing 2D array, but what can I do if I choose a multiple waveform to display. At the moment each chart are displayed one after the other. seet photo

    Thanks in advance. See attached picture

    Note attachments removed by the request of the user of the admin-


Maybe you are looking for