09-11-2014 02:04 AM
hi i have a tab control where on giving time inputs such that the start time is the current time stamp, it shows a graph on the next page & state based on electricity price and load generated by the program. however the amplitude for the 1st instant is missing. i want it to stART from zero.
In the image, the dotted line should start from zero amplitude such that there is a vertical line at the current time. the red and blue lines change with time and do not need to be modified.
09-11-2014 02:12 AM
Well, the program does exactly what you tell it to do. If you want something else, you need to fix it.
We cannot troubleshoot unless we can see the actual code, so please attach it.
09-11-2014 02:40 AM
here is the code (tabs-FS) and the subVIs probably responsible for the graph. look into 'calc' state and X-Y graph subVI in 'final' state of tabs-FS. Such a graph is seen only when 'fast' scheme is selected in the'calc' state. the entire project is too large to attach.
09-12-2014 01:08 AM
Hi shreya,
lots of missing subVIs…
You should start debugging in this "XY-graph" subVI. It contains a lot of internal buffers (aka feedback nodes) so any problems with building plots correctly are probably hidden in there!
- Remove the FOR loop as it's not needed for indexing two columns of your array.
- Why the hell do you need to convert an array to a cluster to index two elements?
- Why do you use InsertIntoArray when you should use BuildArray?
- Did you some basic debugging checking the correct operation of this subVI?
09-12-2014 03:10 AM
i was trying to figure that out myself as i didn't create the program. I've removed the loop and used index array for inputs to the graph. turns out what i wanted to achieve could only be done by making the first load value = 0 in the Write Load File subVI. Thanks a lot. 🙂