LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Waveform Chart restarting intermittently.

Hello all,

 

I have a VI with a waveform chart that seems to reset itself intermittently... it'll run for 5 to 90 seconds and then restart for no apparent reason. 

 

Things I've tried...

  • I've dropped in a new chart from the menu (thinking that I might have unknowingly reset something), hooked it to the data stream and it does the same thing, but if I hook that chart to a random number generator then that chart works fine.   So I'm thinking that I'm getting something in my data stream that's doing the reset. 
  • Watching the data stream in a probe watch window while running doesn't show anything weird... not like the data stream is dropping to zero and then coming back up.
  • I've adjusted the Chart History Length from the default 1024 to 10k thinking I was having a memory issue... no joy. (If it was a buffer issue then I'd think that the timing would be more consistent.)
  • I've put the chart into a separate loop and that only seemed to make things worse... would only run for a couple of seconds before restarting.
  • I played with each of the settings in MAX that I could find and seemed relevant.  Nada.
  •  

Hardware...Chassis is a cDAQ-9189, I have a total of 79 analog output channels coming from my task and the data is being fed directly into my waveform chart with the plot legend turned on so my guys can select which channels they want to watch... signals in question are predominantly thermocouples (4x NI-9213 modules).  While I'm trouble shooting I only have a single TC channel turned on and it reads perfectly... just restarts the chart randomly.   

 

Software... LabVIEW version 21.0

NIMAX... version 21.0.0.0f0,  Task is set to Continuous Samples, 100 samples @ 100Hz

 

If anyone has any thoughts I'd appreciate a point in the general direction.  🙂

 

TIA!

 

Chad

0 Kudos
Message 1 of 2
(633 Views)

"Resetting" is not a clear term to me. Does it lose all history at that point?

 

Do you have property nodes for the chart anywhere in the program and what do they do? What is the update mode for the chart?

What is the datatype wired to the chart (dynamic, waveform, scalar, array, etc.). Is the number of channels always the same, but some traces potentially hidden using the visibility checkbox?

 

If you say 100samples at 100Hz, I assume that is for multiple channels as you mentioned earlier.

 

Can you share some simple code that demonstrates the problem?

0 Kudos
Message 2 of 2
(615 Views)