DASYLab

cancel
Showing results for 
Search instead for 
Did you mean: 

Output Constant at End of File?

I am inputting a simple ASCII file that represents input displacement and subtracting that value from a measured actual displacement. My problem is that when the program reaches the end of the file, it no longer outputs any value and my comparison value (the two channels subtracted) remains the same. Instead I would like to to continuously output 0 at the end of the file. The block I am using is  a simple read data block that references a file. I have tried to set the "value at end of file" in options, but this seems to be a trigger rather than a constant value. How do I output a continuous constant at the End of a file? 

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

I think that you're almost there...

 

Try this - split the Read function into two, so that they're completely disconnected. The Read variable module should use the same timebase as the original data.

Then, set the Option to zero the same variable at end of file.

 

PrintScreen-0005.jpg

PrintScreen-0006.jpg

 

PrintScreen-0007.jpg

Measurement Computing (MCC) has free technical support. Visit www.mccdaq.com and click on the "Support" tab for all support options, including DASYLab.
0 Kudos
Message 2 of 2
(5,627 Views)