Indexing of dynamic data

I'm trying to store all the information through dynamic data, the main loop cable, by indexing. I want just to capture all the data that flows through these wires and put them in Excel at the same time. My only thought on indexing was to create a separate loop outside the main loop just if I could the values of the indices. I tried to put indexing in the main loop, but then I capture only one second of data. If I put another while loop in my main loop to index, my program enters an infinite loop (maybe because my stopping conditions were not correct).

I enclose my entire program to this message. The problematic loop is highlighted in yellow.

If anyone has any suggestions or advice, please answer! Thank you!

I did some work on your VI and I had a few thoughts:

1. you must get rid of the DAQ assistant - done

2. you must organize your code better.

3. you should look into a state machine - look at the example file NOR to see how it could be done.

4. Add an event structure to manage the stop function. This should help with the problem you are experiencing.

5. you should always try and adapt your code in a window.

6. you will need to check that all the calculations and graphs work after I changed things around.

I hope this helps.

Tags: NI Software

Similar Questions

  • Table 1 d of dynamic data index

    Hello.

    I have 2 son of dynamic data. Basically, I want to access each item of two, with a single function (module) in a moment.

    I use table to build, and with a probe, I see for wire 1 (items: x 1, y1, z1,...) and for the 2 wire (items: x 2, y2, z2,...).

    Now, I want to use a function (module) good enough to choose for example to y2 2 and wire1 z1.

    Thank you.

    Hei, I got it!

    I used the table of generation 3 and 1 index table 2D. Innitialy, I put merger signals instead of build table, so I was stuck there.

    Thank you for being around.

    Here's a vi. My project is more complex, so I made an example for you. (LV 2010)

    Can it get any easier?

  • Medium-sized dynamic data analog input read DAQmx read

    Hi, I'm new to labview. Is there an easy way to index using the dynamics of data returned by a readout DAQmx x samples to calculate a moving average? My thought was to read the analog input for X samples pump with the data in another loop through the data, but I can't quite understand how index using the returned data set to extract the measurement value double returned for each sample.

    Any ideas on that?

    Thank you...

    If you get a type of waveform data, why did you ask on dynamic data? No, of course not would you use the conversion of dynamic data on a waveform.

    If you want only one channel, then your DAQmx Read could be changed to 1Chan NSamp. If your channel list only has one channel, you will get a table 1 d with a single element that can be indexed. To get the average of a waveform use the statistical function with the waveform. You use the average Point by Point, and not the average function that has a table for an entry.

    Make sure you always have context-sensitive help on. You can avoid many of these rookie mistakes simple.

  • How to record a fixed time of dynamic data interval when acquiring continues?

    Hi, maybe someone has an idea how to solve this problem:

    I do the continuous acquisition of dynamic data and when I see something interesting, I would like to save some data (i.e. the last 90 seconds). I guess the first step is written data in a table? I can set up the table so that it always contains just the last N seconds (or last N points, discard the rest as the measure of the loin) so I can then save this data, for example by pressing a button (possibly without stopping the .vi, or maybe just a break it.) This last step is not necessary)?

    Thanks for all the suggestions!

    Hi Tomaz79,

    You can generate as a black box on an airplane. You can initialize an array with the size of your 90 s write all data in this table by crushing at the specified index. With Quotient & rest, you will get the correct index for the next value. If you find your compelling value, you can be sure you'll get the last dry 90.

    Mike

  • Write to the file of measurement with a loop For using the value of the dynamic data attributes

    I looked and looked, but couldn't find a solution for this.

    I currently have 15 points of different data that I try to write in an Excel file.  I have all combined in a table and lie with the function "write into a file position.  However, the column names are always "Untitled", "Untitled 1" etc.  I then used the function 'Set the Dynamic Data attributes'; but for this I have to do 15 different functions "set data dynamic attributes.  It was suggested to use a loop with the function 'Set the Dynamic Data attributes' inside of her, but I can't find how do.

    I have several arrays consisting of 15 different values for 'Signal Index' 'Name of Signal' and 'Unit', but also a unique 'get Date/Time In Seconds' related to 'Timestamp '.  The problem is that the error I get when I try to connect the output with Scripture at the entrance to measure file:

    The source type is dynamic data table 1 d.  The type of sink is Dynamic Data.

    How can I fix it?  I have attached a picture of my installation; Sorry if this is gross (I'm new on this!).  Thank you!

    It will get rid of the error, but it is not quite correct. What you need to do after that is to click on the output or the tunnel entry and select 'replace with the shift register. In addition, the array of values that you have wired to the Signal Index is wrong. Arrays are 0 based. Just wire the iteration Terminal here. And, finally, take the size of the table and this connection to the N terminal are stupid. Don't wire nothing to this.

  • index of dynamic query uses

    I forgot how to use sql and Oracle dynamic index was linked.

    For example I would like to have the query like this:
    open v_search_results for
       'select * from T1, T2, ..., TN
        where T1.Col1 = ....
              and ...
              and TN.ColM like ....
        ';
    (Please note that I have the query as a string inside the symbols apostrophs.)

    Suggest I index on the columns of the tables T1, T2,..., TN.
    These indices are used if someone now opens the cursor "v_search_results" variable to retrieve these data? Or the engine database ignores indexes in dynamic queries?

    Execution plan will not change between static and dynamic SQL. It's all SQL for oracle. If the CBO decides if the use of the Index is the right thing to do so it will use.

  • How can I draw dynamic data that I get a hardware DAQ against each other?

    Hi all

    I am trying to acquire voltage and current data of DAQ hardware. My goal is plotted against votlagein current a continuous path. As the votlage is increased at intervals of 1 Volt, every second I want to see how the current. However, this data is dynamic and I need help find how to draw in a single chart. Any thoughts on how to draw the two different dynamic data against each other in the same graph?

    You help will be very appreciated.

    Thank you

    If I understand what you're saying, looks like you want to have the update of XY graph with each new data point (or points) acquired, but also choose to keep the previous data on the XY graph.  If that's what you're after, I build on my previous example.  For the method of use of the express VI build XY graph, you can simply double click on it and uncheck the "erase data on each call.  For the other method of construction of the dashboard cluster, you will need to add a few records to offset to maintain the previous itterations table values.  Here's the updated image:

  • Plot multiple charts XY (dynamic data type)

    Hello world

    I searched but could not find the solution. I'm tracing several XY graphs with dynamic data type.

    I have here an example five 2D-arrays of X/axis Y to draw.

    I need them in dynamic data in order to trace in Diadem using Diadem protocol.vi.

    I get all the values of the X/Y axis as values Y.

    Any help is really appreciated,

    Yan.


  • Producer / consumer set loop of dynamic data item type

    Hey all,.

    I do a simple exercise of producer / consumer in a loop. In my loop of producer I audio Aqcuerir and in the loop of consumer I'm projecting on a chart

    Everything works as I had in mind, the only thing that bothers me is the way that I had to set the type of the element to the block "Get the tail" at the beginning.

    I knew no better way to get the kind of data that I used to just take an another "acquire its" Express VI and which hang. But that may not be the only way to get there, right?

    Note: I know that I might not need to use a producer / consumer design tend to do, but I need to get hold of technology for school work so I came with this exercise just to get a hang of it.

    Thanks in advance,

    Al.

    Al,

    You just need to feed the correct data type in this entry, which you did by getting the output of a second acquire its Express VI.

    You can also use the "Convert to Dynamic Data" function to do this.  When you drop to the bottom of the function, you will be asked to give the input type.  Tests I've done, it seems not to matter, but for example if you chose the entry to a single scalar type, you need to feed a digital constant (change to double type) in the entrance and use the output of dynamic data such as line item data.

    I don't like the dynamic data type because it is not very clear as to what it is.  Another thing you could do would be to use the "Convert from Dynamic Data" function to change the output of the VI of its acquisition to a different data type for more or less to avoid the original problem all together.

  • Track of multiple graphs on a single diagram of waveform with dynamic data types

    I'm putting multiple charts on a single diagram of waveform and data contract error. I was wondering if it has something to do with the fact that the dynamic data is used (I have had no problem with other types of data in the past). Does anyone know how to fix this? I have attached the following .VI. There will be a lot of. Live on the bottom which does not load, but they are not related to this problem.

    Thank you!

    Brian

    I don't know what you're doing now, but a part of your origianl code is simply ridiculous. Your DAQ assistant takes a single point. You convert that into an array. If you had converted into a scalar value (which is) first place, your graphics update would have been fine.

    If you want to remove the DAQ Assistant, and then select generate DAQmx code. You'll be a little more closely, but it seems that it generates a NChan DAQmx Read 1Samp instead of a 1Chan 1Samp DAQmx read.

  • Set the attributes for dynamic data waveform t0 zeros?

    HI -.

    A beginner to labview here, so please be nice ;-)

    I have a simple setup with mainly express screws where I follow the steps below in a while loop

    (1) collect signals with the DAQ Assistant, that generates dynamic data. It is the collection of samples of N

    (2) changing the attributes of the dynamic data using the express VI 'Set the Dynamic Data attributes'

    (3) storing dynamic data revised to a file by using the writing to the file of the measurement.

    The problem I was see is that whenever I have insert the express VI 'Set the Dynamic Data attributes' in the data flow, I find myself with a file where synchronization of the signal (i.e., the waveform t0) was cancelled. This seems to happen any dynamic data attributes, I edit. For example, even if I try to set the name of signal I find myself with out having a nulled-out t0

    FYI, I'm using Labview 2009 9.0f3, 32-bit

    I have attached a code simplified showing what looks like a bug to me. Any help would be appreciated!

    It looks like a bug to me as well. Also, unlike other screw Express, you do a right click on it and select open the face before seeing what the problem is. It's pretty simple to find a work around. I converted to a waveform, has obtained the t0 and handed that back as the timestamp for the signal of slected.

  • Dynamic Data in Array - time values

    Hello

    It's me again.

    I have read the lines of a lvm-file and save it in a table by using dynamic data type conversion. The first column, I have in the file is at the same time; I wish I had the time as the first column of the table too, but I couldn't find how to do this. I found this thread , but I think that I can not use this way because I read the unique lines and treat...

    The attached picture should show how I mean this. So, is it possible to get the time (from file) as a column in the table?

    Thank you

    mkrtwo

    Hello

    I'm afraid, because most of us never use screws express, you can have a hard time finding someone willing to get acquainted with them to analyze your code.

    My advice is to get rid of the express vi (not just because you'll get more responses ).

    Using the palette file I/O, and then something like string from picture to picture the range of string to convert your data into a 2D array can give just the output that you want.

    Best regards Florian

  • How to change dynamic data

    Hello

    In my project, I use card PCI 6221.

    I can able to get data from a graphic design, DAQ card and save OK file.

    But I need to manipulate dynamic data before drawing the graph and backup in the file.

    I entered sensor, input voltage I need to edit as 10mv = 1unit. before writing to the file.

    How I can do this, any ideas please.

    Kind regards

    Hari

    Hi David

    I found the solution, thanks.

    Kind regards

    Hari

  • clear history graphic waveform dynamic data 1 d are used

    I'm new to Labview and uses a waveform graph.  To clear what I need to provide a table empty.  I did it with scalars entered, but in this case, the entrance to the chart is a table 1 d of dynamic data beam. I can't understand how create a table empty appropriate table 1 d of dynamic data type to initialize the plot (the story line).

    It seems that there should be a better (easier) way to erase the plot...

    Thanks for all the ideas.

    Hi rockybooth,.

    Right click on the connector to the history of the property and select "create constant. You should get what you need.

    It will be useful.

    Mike

  • Dynamic data of several channels in table, then save in Excel

    Hello

    I am acquiring data from several channels (4-5) and I'd like to collect samples at low rates (10 Hz for 3 minutes max). For various reasons I use Dynamic Data type, although I know that it is not the best way (some say it is a wrong data type ). I also want to save data to a file (the best option would be data excel file).

    If I acquire data 10 times per second, it is quite slow to save in excel (this is the slowest option of all types of data). So I would like to fill a table or matrix of acquired data and then write Excel file (I use scripture to measure file). But I don't know how to do - if I convert DDT in DBL, build an array and connect it to change registry, it works but I lose the information in column names and I'm wasting time. If I connect to build the table a DDT and then shift record another, it returns the table 1 d of DDT. I would like to have 2D DDT, which collects all the information loop.  Is there a suggestion how to solve?

    I'm sure it would be easier solved my problem with the double data type but I also use select signals VI which is the VI I am not able to replace at this time.

    Good day

    Lefebvre

    I don't know if there is a question here, or what.  Doing what you say you want to make, acquire the data of 4-5 channels at low rates (10 Hz for 3 minutes) and save the data in an Excel file (I assume you mean really Excel, i.e. a file with the extension .xls or .xlsx) is really a very easy thing to do in LabVIEW, especially if you are not using :

    • DAQ Assistant
    • Dynamic Data
    • Write to the action file.

    Indeed, you seem to realize this, but I guess you want to 'do the hard', in any case.

    Good luck.

    Bob Schor

Maybe you are looking for

  • 192 MB of memory instead of 256 MB on Satellite

    Why does my computer properties display RAM 192 MB system information shows 256 MB BIOS 196608 kb or 192 MB? Fact my need change memory is it damaged? Thank you Paul

  • HP Photosmart C5200: need to connect the HP Photosmart C5200 printer to my mac 10.11.4

    I want to be apple to use my printer for my mac! How can I connect and that it work, wtc. Any help is apperciated.

  • I can't get Flash Player to work on the majority of websites

    Original title: Help, Flash Player? recently, Flash Player has seem to start tail light.It could be my computer, but I'm not sure. I have a Windows XP, btw. Majority of the flashPlayer - requires sites were rendered useless because they do not detect

  • HTML WLC ISE WebAuth

    Hi all Am trying to build several Portal comments, the selection of the feedback portal based on the wlan, they come from. The game works... good url is sent to the client using the av pair is the portal itself that gives me problems. I built a set o

  • 32 GB or 64 GB of RAM for 2015 iMac 5 k?

    I'll buy an iMac maxed out 5 k soon. The question is how much RAM to buy. I'll start with the pre-installed 8 GB of RAM minimum and then get an extra 32 GB or 64 GB.There a year, I have never even considered 64 GB cost due, but the prices are really