06-15-2006 08:15 AM
06-15-2006 09:31 AM
06-15-2006 10:11 AM
Hello and thanks for your answer!
I have tried the things you suggested and a couple of other things(i have spent some time on this problem already). It doesn't seem to work. I have attached my vi with the new changes for the phase chart.
I have tried the thing you suggested for the log-problem, but the "x scale", "mapping", "logarithmic" tab is greyed out and cannot be pushed. I have also tried the "properties", "scale", "log" from the block diagram, but it just pops back when i run the vi.
The funny thing is that everything works for the y-axis???
Regards
06-15-2006 10:33 AM
06-15-2006 02:24 PM
Yes, your right. I was a bit too fast there. Well it still doesn't work. Now i have changed the waveform charts with xy-graphs and this works.
This has resulted in a new problem though. With the waveform charts I made the charts clear at every run by checking "file" / "vi properties" / "execution" / "reentrant" / "clear indicator when called". This doesn't work with the xy-graphs.
I have seen the examples with the empty array to the "Create" / "propertynode" / "History Data". The problem is that i don't have the "History Data" in the menu when I click "Property node". I'm using LabView 8.0. Is the "History data placed somewhere else or caled something else in this version?
06-15-2006 02:40 PM
06-15-2006 03:24 PM
Well, I'm having a little problem with the timing of the "Reinitialize"-"invoke node". I can only get it to work when it is in the end of the loop. It then clears the graph allright, but then it draws the old graphs again when when it is run. I have cleared the graph by "Data operations" / "Make these Values Default". This is also the case if i reinitialize the graph manually by "edit" / "Reinitialize values to default"
Is there a way to get it to set the graph to default before the loop begins and to make it clear the graph completely, so that it only draws the values for the one run?
I have attached my vi with the invoke node set to clear the graph in the end of the loops iterations.
06-15-2006 04:10 PM
06-15-2006 04:31 PM
Ok, now it reinitializes the graphs before the loops, but it is only cleared for a short moment and then all the old drawings can be seen again. Somehow it doesn't clear the graph completely. There still is some in the memory. Do you have an idea on what could be wrong or any other suggetions on how to clear the graphs on every run?
regards
06-15-2006 04:49 PM
A simple method for clearing the waveform graph is to pass in an empty array. Right click on the waveform graph in the block diagram and select "create", "local variable". Wire an empty array into this local variable to clear the graph. To force the graph to be cleared before your main loop, place a sequence structure with only one frame in your block diagram and put the local variable inside of it. Wire the empty array through the sequence structure and onto the border of the loop.
I hope this answers your question.
Casey Weltzin, National Instruments