11-01-2017 11:43 AM
Hi guys,
First post, forgive clumsy question structure. I have a for loop, with a while loop nested in it, as shown in picture. The intent is to create as many separate files as parameters I have set, each beginning at time=0 going to end of test. This works in the first loop (in the first file saved per execution) but in the following files the time begins, and ends at 3.592396E+9. Why is this happening and how do I get this file to start from 0 on each new for loop iteration.
Also incl. is a pic of correct and incorrect file time beginning values.
Thank you very much.
11-02-2017 08:24 AM
Hi nbenz89,
I suspect that the issue has to do with how the dynamic data wires are handling the while loop restart. However, it is hard to tell from the screenshot. I recommend that you post your code if it is small enough, or post a VI Snippet of the code in question.
Thanks
11-02-2017 10:30 AM
Thank you for the response, attached is the code. Any advice appreciated greatly.
11-02-2017 10:43 AM
Hi nbenz,
what's wrong with a value of 3.592396E+9? It fits perfectly to your post yesterday:
I too think this problem comes from your over-use of ExpressVIs and DDT wires.
KISS: use "plain" datatypes as much as possible. You will get much more control over your data…
11-02-2017 10:53 AM
Which express VI? I have used the DAQ assistant to generate code, and as far as I can tell the only express VI I still have is the write to measurement file.vi, which may not even be an express vi
11-02-2017 12:28 PM
@nbenz89 wrote:
Which express VI? I have used the DAQ assistant to generate code, and as far as I can tell the only express VI I still have is the write to measurement file.vi, which may not even be an express vi
If it has a blue border, it is an Express VI.