LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

plotting XY graphs - with negative numbers

thanks to all for their help!!

thanks very much!


0 Kudos
Message 11 of 13
(734 Views)
Here are a few more coding tips:
  1. As already mentioned, your sequence has no meaning. Delete it.
  2. You can use autoindexing on the 2D array.
  3. You can resize index array and get all desired values at once. When you don't wire an index, it will be one higher than the index above it. The >0 can be done on the entire array once instead of 9 times.
  4. You can do the running sum in the same FOR loop. There is no need to sum increasing subsets over an over again, just add the new value to the previous sum with each iteration. 
  5. To multiply, (or not) with -1, you don't need two pairs of identical diagram constants, two selects, and two multiplies. Just use a "negate" in a case structure.

Here's an image how your entire code (except for the DAQ) could look like.:D

(there could be bugs, because I cannot test. Many more simplifications are probably possible). 



Message Edited by altenbach on 04-07-2008 07:42 AM
Message 12 of 13
(718 Views)
thank you again!!!

i have many things to learn!!

many thanks!!
0 Kudos
Message 13 of 13
(701 Views)