Why does the period display NaN? What does it mean "NaN"?

I have a vi that is supposed to measure values of period 3 and 2 tension using DAQmx.  The vi is attached.

When I run the vi, I get no error, but one of the counters display NaN instead of a period (in seconds) value.  Why would this counter not appearing?  See the .jpg image of the screenshot, which shows the lights on the front panel, after execution and stop the vi.  Note that the period 2 shows "NaN" but, period 1 and 3 show a real value.  "NaN" only displays in "period 2" executing too. ' " "Period 2" never displays a numeric value.  Moreover, as "NaN" actually mean?

Appreciate your thoughts.

Thank you

Dave

(using 3 counters in the cDAQ-9174 and the module OR 9401 plugged into the chassis cDAQ; periods are measured from the encoders)

NaN means not 'a number '.

In your code, Mean.vi will return NaN (with the error-20003) if the input array is empty.

What happens if you connect the signal of the 1 meter or 3 to counter 2? If NaN disappears, then there is a problem with the signal currently connected to the meter 2.

  1. Your current code, using usrs to (unitialized shift registers), will produce NaN when running for the first time.

  2. The size of the usrs to will increment at each iteration.

  3. If your VI is used as a Subvi, the means will be bad for the first 15 iterations since they will be calculated with the values of the usrs to--> previous lengths.

You must use PtByPt.vi means that will calculate the average of the X last values without above mentioned problems.

Tags: NI Hardware

Similar Questions

Maybe you are looking for

  • No display of content pages

    When you try to browse to a Web site such as hotmail or google, there is no indication on the page.

  • USB 3.0 ports will not be detected / working after fresh Windows 7 install (dv6-6184)

    I'm sure that I don't have the right drivers. I installed the Renesas drivers from the HP download page, but they do not solve the issue (so I uninstalled them). Could someone please tell me the right drivers? Thank you!

  • Available memory

    Hey, is there a tool/vi, who can tell me progamatically how much memory my computer has available? I looked around and can't seem to find it. Thank you!

  • Error code 39 for CD/DVD drive

    Original title: no CD/DVD drive I can't play any CD or DVD tried uninstall/reinstall, but get error code 39 ideas? Thank you

  • E. ACT_NOT_READY.

    Whenever I try to load down a book excerpt she draws I get the following error message: E.ACT_NOT - READY. My computer is allowed and I down loaded as epub library but the book presents itself as the subsidies agreement documents. What I am doing wro