LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Outputting 100 numerical readings

Sorry I couldn't open your vi's. Another tip when posting vis is to save them previously as older versions of LV, since many of us still use older ones, either because we don't need the latest one or still just too expensive to upgrade. Saving in older versions allows all people with later version to open it.
About your problem with nesting arrays, I assume the problem is either:
1.- If you're using Chart, you can right click on it and select history lenght, and change it to any other size.
2.- You end up instead with 5 - 20 points arrays, to correct it, you must either link them all into a single array of 100, or rechape the array to make it 1 X 100 instead of 5 X 20. The reshape vi is in the Array tools menu.
3.- If you're using Chart, try the other displays available, all have their unique characteristics to show the same data. If you're not sure which one to use, a good way to do is just put them all on the same front panel, then wire them all with the same data array, so you can make comparisons and select the one which best fit your needs.
Hope this help you some more.
0 Kudos
Message 11 of 15
(1,637 Views)
Arghh. I'm still confused. Here's my basic dilemma with the numerical array versus waveform graph issue. I saved these two small VIs in version 7.1 which was my only previous version option. The problem is, I need a two dimensional array but only a one dimensional graph. Can't seem to figure out how to get both, other than the convoluted way I ended up doing it. That's working and I'm fine with it, but welcome suggestions to simplify.
 
 
 
 
Download All
0 Kudos
Message 12 of 15
(1,622 Views)
As I said before, "reshape array" will do what you need.
 
You can reshape a 1D array to 2D and a 2D array to 1D with a lenght corresponding to the product of the original dimensions (see image).

In your particular case, you could display your results in a table and even color the results accordingly. Here's a simple example (LabVIEW 8.0).
 
(I also simplified a few other things, e.g. the subVI) Your code had way too much dead wood (unneeded sequences, cases, etc.). ;).
 
See if it makes sense. 🙂


Message Edited by altenbach on 02-26-2008 01:35 PM
Download All
0 Kudos
Message 13 of 15
(1,617 Views)


Dragon64 wrote:
Sorry I couldn't open your vi's. Another tip when posting vis is to save them previously as older versions of LV, since many of us still use older ones, either because we don't need the latest one or still just too expensive to upgrade. Saving in older versions allows all people with later version to open it.


Hello Dragon64,
 
California posted in LV 8.0 which is not that new.  8.2 and 8.5 have come out since then Smiley Wink  So I don't think it's that polite to ask him/her to save back to a version older than 8.0 just for you to be able to help.  Smiley Surprised
 
The VI you posted is in LV 5.1.1 which is way too old for people to be able to open in LV 8.5.
 
-Ravens Fan
LV 7.1, 8.0, 8.2, 8.5  WinXP


Message Edited by Ravens Fan on 02-26-2008 05:50 PM
0 Kudos
Message 14 of 15
(1,605 Views)
Sheesh. I'm back. This project got put on the very far back burner for a few months, but now it's top priority again. Go figure. Thanks to all for your generous help. Altenbach, rewriting my whole program is way beyond the call of duty. Thanks very much. I'm going to have to spend some time studying it to see whether I can understand what you've done.

I did try the "reshape array" function when you first mentioned it, but I couldn't get it to work for some reason. I'll hit it again...

Jon
0 Kudos
Message 15 of 15
(1,502 Views)