TDMS loop to make the plot of trend

I am trying to create a field of trend of peak values of waveform on the 32 channels of my data.  The only way I came with was to put my TDMS reading within a box structure.  If you want to build a trend select you the 'Build Boolean trend' and this case has the PDM read inside a loop that runs through all the samples.  To just scroll the data plots timewaveform and spectrum, you would be in the case of false that is not in a loop.  I have just a scroll bar will offset reading TDMS of entry.

I get an error with the TDMS reading inside the loop for.  I'm guessing this has to do with the file TDMS of the PDM Open entering the loop for.  I get this error:

Possible reasons:

LabVIEW: end of file encountered.
=========================
NOR-488: Invalid Argument or arguments to the function call.

When you use TDMS loop, you will need to be a little careful when you do not the name of the Group of wiring.

In the TDMS documentation read:

If you do not connect the data to this entry, LabVIEW reads the data from the first group when you run this function for the first time. If you run this function continuously for several cycles without wiring at the entrance to the name of the Group , LabVIEW reads the data from the n - th group to the nth cycle.

Tags: NI Software

Similar Questions

  • How to make a graphic inside a while loop to maintain the previous values

    At first I tried to use a the VI Express XY graphics to create a track of points.  However, the chart is a trace linear between the first point in the new line and the last point of the previous line.  It then creates the new line as you wish.

    I tried to use a loop with group a cluster for the chart, but the chart resets the plot at each iteration (as expected) and I can't find a way to maintain the previous data.  I tried using shift registers, but was unable to find a way to do it, and I tried also the cluster of a painting company, but can not find a way to make the cluster to a 1 d of a cluster of 2 elements array.

    One option is to have is to find a way to maintain the previous data, but the preferred option is to create a new path to each iteration to see the color change for each new parcel.

    I take stabbed it because I don't know exactly what you want. But I think that's what I've shown here. You must use a shift on your outside register while loop, as I showed. Your image where you tried to use a shift register shows a misunderstanding of the shift registers and how well they work, then I'd take a peek at these tutorials.

  • Make the background loop seamlessly in illustrator

    Try to make the background loop seamlessly in illustrator I notice that it is not looking for seamlessly.how can I make a transparent background in illustrator?

    Here's my project file Adobe Creative Cloud

    Ensure that the anchor points of the right side are on the same X value.

    Use the transform Panel to verify this.

    Do th same on the left side.

    Currently, they are not in a straight vertical line.

  • How to make the loop audio clips in the first or elsewhere

    HOW CAN I DO AUDIO LOOPING CLIPS IN THE FIRST OR ELSEWHERE?

    None of these answers are correct.

    My brother found this thread, looking for help and left in frustration, asking for the answer instead.

    Kevin Monahan response is only semi-finished.

    Here's the full answer:

    Looping a video or audio clip on the timeline, right-click and select 'nest...".

    Name the nest, what you please.

    Now, double-click on nested clip you just created. This allows to enter the nested sequence.

    NOW you can select the clip, copy and Paste several times. (Just keep hitting CTRL V, and the read head automatically moves forward to place the next clip.)

    Return to the main sequence.

    Now you can use the selection tool to extend this nest as much or as little as you like.

    It is a far superior method, because a nested sequence is a SINGLE ELEMENT that can be resized, given effects, moved, lengthened and shortened very easily.

  • "print" command in Mathscript recording is not the plots in BMP format!

    Hi guys,.

    I am creating a vi that automatically generates a pdf for my project report. I found a way to record the report directly in pdf format (in other words, I have 'print' my report to a (PDFCreator) Virtual PDF printer that saves the file in a specific folder with the date/time under his name.) "So, this was the first step to make the automatic procedure).

    I'm stuck in the next step, which is adding to the report no graphics bad appearance of labview, but the plots of the victims of the Mathscript.

    Yes, after you have added as input 'a' my data to the mathscript node, I use the following commands:

    Figure

    Plot (a)

    print the image

    Now, what is this sequence is to do a beautiful land of my data and then save it as "image.eps" in the default folder.

    However, the eps format is not at all useful to me because I can't import the plot with the 'Add Image to Report.vi '. This vi supports the formats BMP, GIF, WMF, EMF and JPG only.

    So, I want to save as BMP mathscript plot. It's supposed to be possible, but I have not been able to find a way. Using the command 'Print' for Labview Mathscript 2011 reads as follows:

    http://zone.NI.com/reference/en-XX/help/373123B-01/lvtextmath/msfunc_print/

    Syntax


    print

    Print (a)

    Print (file)

    printing (, file)

    Description


    Print the trace window, or save it in a file in BMP or EPS format. If the trace to save window is a plot of the image or a 3D terrain, the file must be in BMP format. Other types of plots, formats BMP and EPS are supported.

    There is no way for me to choose what format I want, and it automatically selects the eps. If I use the command

    print image.bmp

    It gives me an error. So adding the endpoint .bmp is not the way to go.

    Overall, it is essential for me to export the plot in BMP format (in order to import it into the generation of report), but I can't find a way, althouth it is supposed to work.

    Any ideas?

    Thank you

    PS. I run Labview 2011 SP1

    Hello

    You must use the following command

    Print ('test.bmp')

    Instead of

    print test.bmp

  • Legend of the plot does not update?

    My legend of conspiracy will not show the new names I'm wiring. It displays the default plot 0, track 1, and so on, rather than the column headers it is supposed to read the data file.

    Any ideas? See the attached VI and the associated text file that I am trying to trace.

    In the example you have validated, your table for the colors of the plot is empty if the because the loop will not run.

  • How can I make a plot in an invisible graphic 3d

    Hi all

    attached, it is only a halfway completed vi which shows how would I land/plots in the invisible 3d graph. Unfortunately as I don't know how "item" can make reference to the plot, I want to make invisible.

    any ideas?

    You are almost correct.

    The entrance of the element is a string whose value is the name of the plot of the target. You can view all the names of plots in the context menu-> "CWGraph3D" group-> item 'Properties'-> tab 'Traces'-> 'Plots' list.

  • TDMS read fails on the channels of different lengths

    Experts in LV...

    It seems that there is an error in the PDM to read functions.   I have a TDMS file generated by a built executable, this file has a group of 9 channels.  Channel 5 is data taken at a higher rate (IE 20 MHz) compared to the date in the other 8 channes (1 Mhz).  1 Mhz channels have 110 000 points, of course, the 20 Mhz channel has 2 200 000 points.

    If I read this by using the playback feature TDMS passing an array of the names of Channel 9.  It runs and returns a table of 9 waveforms with Y0 dt values correct and the correct.  However Channel 4 (the 5th string, that long) a garbage in the data for all points since the stop the 110 000 in other channels.  This trash is as numbers-10 ^ 304 and zero.  The first 110 000 points are correct.

    The file itself is not damaged.  If I read the file in a loop 1 channel at the time, and to build the table of waveforms I get all 9 waveforms and the correct data of variable length.  A trivial example to read the actual data file is attached with the data file (I hope that boards that leave be attached).  Intrigue albums has corrupted data to read it all-in-one and the bottom has the accurate version of loop data.  The waveforms of tables on the left show that corruption occurs precisely at the location 110 000 table where the other tables

    Yes, the data file is too long for the forums.  You can get the program file and the simple example data

    TDMS error.zip

    No Council or if it is a real mistake.  I don't see anything in the documentation that I'm doing something wrong.  The fact that it returns a length of valid array and no error code is leads me to believe it's a bug of LV.

    Hi sth.

    Thank you for your results. The issue you reported is for playback of several channels of scaling in staircase once. (PDM read on several channels in staircase of unscaling works very well). The .tdms file, you provided, including the scaling of the data.

    I can give you two workaround solutions. The first is what you mentioned, read each channel of scale inside a loop. The second is that always read all channels once, but rank all length strings in descending order. (The first is the channel with a maximum length; the last is the channel of a minimum length).

    Kind regards

    Jie

    OR R & D

  • Delay loop before stopping the while loop

    Hi all

    I modified this code to the example in the forum. I forgot what thread. The file name is "control.vi of loop speed.

    I want to measure pressure and compare with the pressure of the target. Once the pressure reading is higher than the pressure of the target, I want the output high for 5 seconds and turn it down.

    When he goes back to the bass, I want the to exit the loop, or when I pressed the stop button. I don't know how to do it. Help, please.

    Thank you

    I can't view your VI (I use LV 2014). Please see my attachment for an example. See what happens when you make the numerical value > = 1. Enable execution of mark if she makes no sense.

  • Rotate the Plot chart legend of XY

    Is it possible to rotate the legend of the plot for the plot names letters run from the bottom to the top rather than in the whole of the operator interface?

    The names of my plots are bigger and I need to show at least four plots at the same time. Put the scales to the right/left/above or below without rotating can cause a short XY Chart!

    Any ideas for me?

    Concerning

    Waris K

    Hello

    I don't know if there is a native way to do it, but you can 'cheat' to do this:

    You can move the table where the captions are, or even make the table turn into lines instead of the column.

    Is the idea ok for you?

  • How to make the table from separate text semikolon

    Hello

    I have a text with multiple lines. The lines are separated with \r\n.

    In every row is the same number of values that are separated by a semikolons.

    How can I (easy) make the tables of each value online?

    Currently, I solved it by creating a loop and using game-model, register shift, to insert to the table... But this looks very great.

    How can I make this easier?

    Thanks for the help

    Hello

    We must define the separator.

    See the image as an attachment.

    Mike

  • Def sequence (table grapes) with loops, clocked by the relatively long software.

    Hello and apologies in advance I am an infrequent user of LabVIEW.

    Running on a VI to control a peristaltic pump and valve used to control some for a biosensor nanogap Microfluidic devices. I have the pump and the valve works manually (i.e., I adjust the values on the fly) but I am now trying to allow the user to define a sequence of steps that are then executed one after the other.

    User input: number, flow, duration of valve, pump direction (boolean).  Ideally the user can then run several different steps by adding more steps, so I thought of an indexed cluster array where each element represents a step?

    I would like the user to enter the time in minutes and seconds. The minimum will usually be 30 seconds and could be as long as an hour. I'm not sure of the best strategy for the timed loop, if I understand the use of the block 'waiting (ms)' can cause problems. I thought about getting a timestamp, a value added to it and the comparison? Are there any other suggestions?

    Any advice would be appreciated.

    I use an acquisition of data USB-6009.

    PS the VI LabVIEW is probably an education version, so may cause problems when opening?

    Just ask yourself how you should architect your code? Using a table of parameters of the step is an eay easy to do. And the wait is not necessarily a bad thing, it depends on your application and if you need the calendar to be exact in a certain way. You can use wait it until Mrs several place for synchronization.

    You can lookin to a State Machine architecture to make the best UI feature.

    The Computer of State Simple model that comes with LabVIEW is really the best way for new developers to become familiar with LabVIEW using a semi scalable architecture.

    Here is a large example of the works of a state machine:

    • States: Init, slowed down, exit, DoThing1, DoThing2, DoThing3
    • Each State contains code that could take some time. Ideally, not too long because this is how long your code might not meet.
    • The idle state contains a structure of event for all of the user interactions.
    • The front panel has a button that says "do the 1 thing.
    1. Loop iteration 0: Application starts, the first State is Init. Init State made the initialization stuff and tells the application to go to the idle state when finished.
    2. Iteration of the loop 1: request goes to the idle state. He's sitting there, waiting for the structure of the event.
    3. Time passes, and then the user presses the button 'do 1 thing ". There is no code or minimal code, within the occurrence of the event. The output of this state of the event tells the application to go to the State of DoThing1.
    4. Iteration of the loop 3: Application passes to the State of DoThing1. Here, there is code that does a few things. The output of DoThing1 State tells the application to return to the idle state.
    5. Iteration of the loop 4: Application goes to a State of rest where he waits again to the structure of the event.
    • Each State can tell the application to go to any State they want. You want to reset? Return to the Init State. You want to put an end to the program? Go to the exit State. You want each State to start another (such as a sequence)? Have DoThing1 out of DoThing2, which DoThing3, which outputs Idle.

    You can create a report that runs the cluster setting input and operates it. The risk with a long wait, is that the code will not be able to receive entries to user during this waiting period. So if you make a long wait, you can use a VI of elapsed time to check several times if the wait is over.

  • CAN MAKE THE IMAGE OF ITS SHARE IN A LIBRARY

    IN MY PROJECT, I WANT TO MAKE AN IMAGE OF SMALL PIECES OF PARTS OF THE IMAGE. I JOINED THE LIBRARY FILE WITH THE SMALL PARTS OF THE IMAGE AND THE ENLARGED IMAGE WISHING TO MAKE ON TOP OF PARTS OF IMAGAES. NY IFA CAN HELP ME ITS REALLY USEFUL... A THANKS IN ADVANCE...

    RAGIL

    RAGIL says:

    But here I want to insert multiple images to make a bigh image... so what's the next step?

    Do it in loops, where is the problem?

    Andrey.

  • good way to make the if-else statements

    I have a question that came to me of some high school students doing the FRC (first robotics competition).

    They wanted to know how to properly write an if-then structure in LabVIEW.  I know there are simple expressions in the range of comparison that would allow me to do this but I want to teach them good coding at the front.  Also, I would code to stay pure and expand expressions on the other.  What do progress recommend users to LabVIEW?  I was thinking all convert table and simply using a while loop with a registry to offset to make the comparison.  I would like to know what you think?

    Best regards,-SS

    The ANSII C (from DevC) code example might look like the following:

    #include
    #include

    int main (int argc, char * argv [])
    {
    gyro double x = 0.0;
       
    for (gyro = 0.0; gyro)<=0.9; gyro="" +="">
    {
    If (gyro<=>
    x = 0,373;
    ElseIf (gyro > 0.3 & gyro)<=>
    x = 2.123;
    ElseIf (gyro > 0.6 & gyro)<=>
    x = 4.323;
    on the other
    x = 5.533;
                  
    printf ("gyro = %f, x = %f\n", gyro, x);
    };
     
    System ("PAUSE");
    return 0;
    }

    I'm going to propose something like this:

    But be careful with the double in this case (idea of Ben with the multiplication is really good).

    Andrey.

  • the names of the plots on the chart and use these channels in the menu of the ring

    Hello everyone!

    I table 1 d which is more a cluster of 2 elements: one is a number and other string. These string contains the information on the name of signals. I connected this table 1 d to reshape the array with a dimension of 10.  Then the consistent table is connected to the table in the cluster. This cluster has led is still naked to get the name of the plots. The problem is that I don't want these 9 unbundle blocks to get the name of the plots. Is there anyway I can do it without use of unbundling 9 times. I though that the use of loop for or while loop, but I need some suggestions.

    So I have two questions:

    How to get the name of plots is without using unbundle so many times?

    Second is how to display the names of these plots on my menu ring?

    I must have missed something, I didn't see any large cluster on your drawing. Change this large cluster in a table, because there a lot of the same element. Then proceed as attaché.

Maybe you are looking for

  • iPad lost offline

    Hi I lost my ipad connected sui always on icloud offline

  • Firefox after opening a new tab

    When I open Firefox, it opens on my startup page, then immediately opens a new generic tab. I think I once clicked on "make your start page xxx", but never once completed the process. How to get there at my start page?

  • wlidcli.dll

    my computer tells me that I'm missing wlidcli.dll file. where can I find.

  • Several switches a function of control

    Hello I want to use four different switches to control an on/off control.  I have attached the VI I tried, but instead of having the four switches can be controlled, only the first switch will control, while the other three are just acting as indicat

  • Windows Vista Ultimate Edition asking for Activation

    I also have problems with Windows Vista Untimate. The system keeps asking me to add an activation code, but I use my own software Windows Vista Ultimate Disc. I suspect that I my not having all multimedia software to update or something because of th