LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

making two graps into one

I have attached a vi. I am trying to have only one graph. Is that possible? When I choose the frames, I automatically also choose which graph. Possible in labVIEW 6.0?
0 Kudos
Message 1 of 4
(2,915 Views)
Yes, it is possible, but first we need to find out what you actually want. 😉
  • What is this VI supposed to do?
  • What is your definition of "when I choose the frames"?
  • What data should be on the charts (both, one or the other, etc.)?
  • Charts don't make much sense in a VI that only runs once.
  • Shouldn't the code be in a while loop for example?
 
 
Message 2 of 4
(2,891 Views)
Questions and answers. * What is this VI supposed to do? Measure three things. * What is your definition of "when I choose the frames"? My electronic circuit has a switch, thus I sometimes RUN program A and sometimes program B depending on which circuit is switched on. * What data should be on the charts (both, one or the other, etc.)? One chart should have data (x,y1) and the other (x,y2) * Charts don't make much sense in a VI that only runs once. There is a for loop with n iterations that have been omitted to save space. * Shouldn't the code be in a while loop for example? The code is supposed to be in a for loop. I need to have only one graph but my program is supposed to collect data (x,y1) or (x,y2). I do not want to collect x, y1 and y2 together only either (x,y1) or (x,y2) for any one test.
0 Kudos
Message 3 of 4
(2,871 Views)

If you make the data type the same in each case, you can wire the output of all cases to a single output tunnel. Since you have an Acquire Waveform, you can make the data types in the other cases a waveform datatype with the Build Waveform function. Here's a picture of what you could do in the cases that don't normally return that data type.

Message Edited by Dennis Knutson on 05-22-2006 08:00 AM

0 Kudos
Message 4 of 4
(2,847 Views)