LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

My plot disappeared from my waveform graph

I made a VI that allows a user to view simulated waveforms with harmonics.  Using the waveform graph indicator with a one-dimensional array input, the user can select the magnitude of the fundamental as well as the magnitudes and phases of additional harmonics.  This VI worked fine on my machine after I finished it and ran it within LabVIEW.  After I was done and satisfied, I created a new project and added the VI to the project, then built an .EXE application so that others could use it if they'd like.  After I added the file to the project and built the .EXE, however, the plot on the waveform graph disappeared.  I can think of nothing else I changed between it working fine and now.  Everything else appears to be running fine; the waveform is just not plotted to the graph.  Any help anyone can offer would be great.  Thank you very much.
0 Kudos
Message 1 of 2
(2,771 Views)

Well, I don't see the graph update in development mode.

 

You need to make some major changes in your code. I think your prime problem is that you use the Insert Into Array. This will not work if the initial array is empty. You probably need to be using Build Array. You use local variables where NONE are required. Get rid of them all and learn how to use a shift register to update. You've got the Exit LabVIEW scattered all through the VI and you really don't want to use that unless it's an exe. After the VI stops (and it's not doing that correctly either), test to see the App.Kind with a property node and then Exit if it's the run-time.

0 Kudos
Message 2 of 2
(2,764 Views)