knowledge-database (beta)

Current group: comp.lang.labview

Re: Grab data from files and plot on same graph

Re: Grab data from files and plot on same graph  
CoastalMaineBird
From:CoastalMaineBird
Subject:Re: Grab data from files and plot on same graph
Date:Fri, 21 Jan 2005 22:10:07 -0600 (CST)
1... If the user has to enter the paths into an array anyway, don't ask him=
/her to count how many there are - just wire the array into the FOR loop an=
d let the loop figure it out for you.

2... No need in indexing the a=
rray based on I - wire the array into the loop and let it pick out one on e=
ach iteration. That's what auto-indexing is for.

3... I'm not sure w=
hat your code is trying to do with the data from the file. You pick out co=
lumn 0 and then pick out column 1 and then bundle those. Is that the X and=
Y data for a plot? (You don't have a plot on your panel, so it's hard to t=
ell).

If #3 is correct, then you're almost there. You want to build =
an array - use the bundle as input #0, and the array from the left Shift Re=
g as input #1. The output goes to the right Shift Reg. Think about what th=
is is doing - each X|Y bundle is a plot - you append one plot to the array =
each time thru the loop (each file).

Whan that's wired correctly, th=
en pop-up on the left Shift Reg terminal and CREATE CONSTANT. That will cr=
eate an empty array of plots to be used as the starting point. Then wire t=
he right side Shift Reg out to an X-Y graph.
   

Copyright © 2006 knowledge-database   -   All rights reserved