LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

zeros in charts

I think I have initialized them in this version.
Doesn't matter.
0 Kudos
Message 21 of 41
(1,897 Views)


exo wrote:
I think I have initialized them in this version.
Doesn't matter.


Please restate what your currrent problem is.  More recent e-mail said "I made changes. They didn't help. It fact since I don't see the file output, things are worse" How is it worse? Describe what steps you are doing.  When you don't see file output, which indicator are you looking at "file" or "output".  Have you tried putting probes at stragegic places of the code to see what the results are at different steps.
 
Wait!!! I think I know your problem.  Are you just not getting a file at all?????  In your write to file function, you don't have a file path wired.  Also, WIRE UP YOUR ERROR CLUSTERS on those functions.


Message Edited by Ravens Fan on 01-16-2008 11:42 AM
0 Kudos
Message 22 of 41
(1,894 Views)
Just focus on for example output. Output is a concatination of three string. A number indicating the time and two temperature readings. If I load the vi and run it, the number starts at whatever the sample rate is and then is updated by the sample rate each time the loop executes. If I stop the program and then start it again, output is cleared but then when the loop starts,it starts with the last number increased by the sample rate when it should start back at the beginning.

The reason for the precious terse postings is because it follows postings going back some. Not trying to make this more difficult than it is.

Thanks.
0 Kudos
Message 23 of 41
(1,887 Views)
I believe all that you are seeing is the normal, expected behavior of a chart. A chart has a history and will retain the data it has unless you open the VI from scratch or re-initialize the chart. Look at the shipping example called 'How to Clear Charts and Graphs' for how to programatically clear the chart.
0 Kudos
Message 24 of 41
(1,884 Views)
I'll look but the chart clears; it's the output indicator that doesn't.
0 Kudos
Message 25 of 41
(1,880 Views)


exo wrote:
Just focus on for example output. Output is a concatination of three string. A number indicating the time and two temperature readings. If I load the vi and run it, the number starts at whatever the sample rate is and then is updated by the sample rate each time the loop executes. If I stop the program and then start it again, output is cleared but then when the loop starts,it starts with the last number increased by the sample rate when it should start back at the beginning.
Your orange shift register is also uninitialized.  Initialize with a constant zero if you want it to reset between runs.

The reason for the precious terse postings is because it follows postings going back some. Not trying to make this more difficult than it is.
Neither do we.  But when you are given some steps to try, and you do some things but not others, it's hard to tell what you did and what is now working and what is not working.  So saying things like "it doesn't work" doesn't help much.  Yes the problem may have been desribed 10 postings ago, but we have no idea if you fixed that problem or are still having the same problemSmiley Wink  Reiterate what is not working and what your are expecting the results to be.

Thanks.


0 Kudos
Message 26 of 41
(1,872 Views)
Thanks to all.
Whoever say initialize the shift registers had it right. However, I wasn't initializing the shift register that matter.
0 Kudos
Message 27 of 41
(1,860 Views)
I get the principle but I'm not sure of the coding to stop the loop immediately instead of waiting as much as two cycles. I start implementing your code but don't quite get what you are saying.

Thanks,
0 Kudos
Message 28 of 41
(1,844 Views)
I get the principle but I'm not sure of the coding to stop the loop immediately instead of waiting as much as two cycles. I start implementing your code but don't quite get what you are saying.

Thanks,
0 Kudos
Message 29 of 41
(1,844 Views)
Here is the modified code.  I also cleaned it up a bit.Smiley Happy
0 Kudos
Message 30 of 41
(1,837 Views)