10-28-2005 03:23 AM
10-28-2005 08:22 AM
10-28-2005 10:25 AM
11-01-2005 04:35 PM
11-03-2005 01:14 AM
11-03-2005 01:48 AM
11-03-2005 10:28 PM
11-07-2005 09:39 PM
11-08-2005 05:21 PM
No, I actually saw it and made an example, but then got sidetracked with other things and forgot about it. Sorry about that.
@RichL wrote:
I am not shure if you got noticed with my last message, since I used your first name, or if my question is too trivial and no challenge for you. Anyway I try it again:
@RichL wrote:
thanks for the VI! I modified it to my purpose in trillion different ways, however I have a fundamental problem (being a novice in LabView!): the in coming data of my system is generated outside the while loop, so every time new data is coming in, the loop is started again, initializing a new array. What happens is that the one line read is repeated continously till I press the stop button. Then I see a new line which is repeated so many times. I have inlcuded my VI where ArrayIn is a 1-D string Array of fixed length 6 representing the data which comes in in bursts of 10 or 20, about every second.
Your VI (Tablestop.vi) will not work because "Array In" is outside the loop and only get read once per VI run. All iterations of the FOR loop will get the same data from the tunnel.
If the data is generated elsehwere, you could use a LV2 style global to transfer the data. In the attached simple example, we have two loops. The upper loop generates new data at random intervals and writes it to the data exchange VI.
The VI for the data exchange acts as a buffer with a fixed number of entries that are kept in uninitialized shift registers. It opertates in one of three modes.
The lower loop calls the VI at regular intervals and if new data is available, updates the indicator.
This works equally well if the writer and reader loop are in different VIs.
There are many other ways to do this, of course.
@RichL wrote:
One other question concerning arrays: Why are some 1-D arrays displayed in vertical order (as your array created by the for-loop), others in horizontal order (as in the array exercise from LabVIEW)? It took me a while to understand why you rotated the rows; a assumed the lines had to be rotated.
1D arrays only have one dimension, there is no difference between vertical and horizontal. 1D array indicators can be shown horizontally or vertically, same difference. 🙂 This is purely cosmetic.
If we rotate the rows (=colums of the transposed indicator), it simplifies the code, because autoindexing works that way. If you want to rotate the columns you would need to explicitely index the columns at each iteration in the small FOR loop. You can do it either way. rotating the columns would save the transpose iteration.
11-15-2005 01:18 AM