LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

starting value of signal missing

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.

0 Kudos
Message 1 of 5
(2,585 Views)

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.

0 Kudos
Message 2 of 5
(2,579 Views)

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.

0 Kudos
Message 3 of 5
(2,569 Views)

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?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 5
(2,526 Views)

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. 🙂

0 Kudos
Message 5 of 5
(2,515 Views)