LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why do I get this error when running the PID Control-Single Channel.vi: "Requested value is not a supported value for this property."

Error -200077 occurred at Property Node DAQmx Timing (arg 3) in DAQmx Timing (Sample Clock).vi:1->PID Control-Single Channel.vi

 

Requested value is not a supported value for this property.

Property: SampQuant.SampMode
You Have Requested: Hardware Timed Single Point
You Can Select: Finite Samples, Continuous Samples

 

Author: Pcorcs

0 Kudos
Message 1 of 10
(3,646 Views)

Because, with your DAQmx device you are not allowed to to use "Hardware Timed Single Point", it does not have that feature. 

You can only use the two other setting that is mentioned.

0 Kudos
Message 2 of 10
(3,642 Views)

Then I guess the vi I found on the ni developer zone will not work. OK, this will save me time in trying to toubleshoot it any futher. Thanks.

0 Kudos
Message 3 of 10
(3,638 Views)

This example may still be a fine starting point for you if you remove the hardware timing.  Try setting the mode to finite samples, remove the "Get Terminale Name with Prefix" VI, and don't wire the source input to DAQmx Timing.  You might need to set the Samples per Channel input to 1 for both the input and output tasks.  It's also possible this will work if you remove DAQmx Timing entirely.

0 Kudos
Message 4 of 10
(3,633 Views)

Actually I have already tried a few things you suggested and got as far as the DAQmx Write vi. The error at the DAQmx was a buffer error indicating i needed to set it to 2 instead of the default of 1. Tried using the DAQmx Input and Output Buffer vi to change buffer, with no luck.

0 Kudos
Message 5 of 10
(3,627 Views)

Could you post your modified VI, instead of a second copy of the same VI you already posted?

0 Kudos
Message 6 of 10
(3,625 Views)

Take out DAQmx Timing and Wait for Next Sample.  Put some other wait function inside the loop (the standard Wait (ms) will work fine) so your loop doesn't spin too fast.

0 Kudos
Message 9 of 10
(3,615 Views)

OK, I will try running the vi with your suggest Monday and get back to you.

Thanks again.

0 Kudos
Message 10 of 10
(3,603 Views)