LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

why the measurement reading is always "0"?

I try read the measurement of power supply, Array 3645A. But all the reading is always "0". I need help to figure this out.

 

Thanks and best regards,

 

Yibing

0 Kudos
Message 1 of 2
(2,263 Views)

Daxiaobao,

 

Looks like a straight forward NI/manufacturer driver. Double check the following....

 

  1. How many time does your loop execute if you do not press the Stop Output button? If only once, then there is an error being generated somewhere before which could be causing your 0 reading.
  2. Move your DBL indicators outside the loop (enable indexing). This should give you the answer to #1. And at the same time if you are ever capturing your real voltage and current measurements it will be in the DBL array you just created.
  3. Do all of this in "debug mode". Enable highlight execution + retain wire values.
  4. This may sound silly....But are you setting your voltage level control (U16) to say 5000 (since in mV)? If you're leaving it at 0 then reading 0 is about right 😉
  5. Also, I'm not sure what timing features are being used in the sub-vi's inside your while loop. If none, then I would put a wait inside the while loop somewhere. Just good practice to free up resources.
  6. When you run your program in "debug mode" are you seeing the values you setup (voltage) change on the front panel of the instrument? If not, start there, you have a communication issue.

Good Luck! 🙂

 

Best Regards,

 

Chazzzmd

0 Kudos
Message 2 of 2
(2,234 Views)