From Saturday, Nov 23rd 7:00 PM CST - Sunday, Nov 24th 7:45 AM CST, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Saturday, Nov 23rd 7:00 PM CST - Sunday, Nov 24th 7:45 AM CST, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
03-19-2018 04:48 PM
Dear all,
let me, please, ask you for the feedback for my first VI Analyzer test.
The test checks usage of path constants on block diagram (I believe that sometimes it can cause issues because of hard-coded paths), and if path constant is not empty, then it drops a failure.
It's quite trivial and simple, but anyway, does it make sense to extend it (for example, search also not valid path values, etc.), or it will not be useful anyway?
Thanks a lot in advance,
Sincerely, kosist90.
Solved! Go to Solution.
03-20-2018 10:46 AM
Here is my feedback on the test:
03-20-2018 10:58 AM
Thanks a lot, Darren, for reviewing the test!
Such a little of code, and so many points to fix
03-20-2018 05:12 PM
Dear Darren,
I've updated code according to your comments. Also checked by VI Analyzer for wire bends, etc. on the block diagram; seems that it passed.
Now it checks also array of path constants. Also, as you've suggested, if path is empty, not a path or relative path - test does not fail.
Could it be like that now, please?
Thanks a lot in advance,
sincerely, kosist90.
03-21-2018 01:22 PM
The improvements look good. I have some additional feedback:
03-21-2018 04:29 PM
Dear Darren,
thanks a lot!
I've updated it according to your corrections.
Thank you,
sincerely, kosist90.
03-23-2018 02:59 AM
@Darren wrote:
- Note that the For Loop has an error shift register instead of tunnels. You almost always want a shift register for errors on a For Loop. This allows your code to handle the zero-iteration case correctly, and it also allows you to report the first error that occurred, as opposed to just the error from the last iteration (which is what happens when you use error tunnels).
I've just realized - could it be also some VI Analyzer test, which would check, whether error wire goes by shift register inside the loops? Or there exists already such a test, please?
03-23-2018 11:13 AM
@kosist90 wrote:I've just realized - could it be also some VI Analyzer test, which would check, whether error wire goes by shift register inside the loops? Or there exists already such a test, please?
There will be a For Loop Error Handling test in VI Analyzer 2018 that checks for this situation.