LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Ball and Beam Conrtol Help

Solved!
Go to solution

Thanks you very much, I will start modifying it and see how get on 🙂

 

 

0 Kudos
Message 11 of 17
(1,738 Views)

I cant seem to run that VI.

 

Error -200077 occurred at Property Node DAQmx Timing (arg 3) in DAQmx Timing (Sample Clock).vi:2->PWM-Counter Output.vi

 

Possible reason(s):

 

Measurements: 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

 

Task Name: _unnamedTask<17>

 

I guess that my card cannot do some of the clock tasks? 

 

Edit: When i change the Hardware Timed Single Point option i get this error:

 

Error -200778 occurred at DAQmx Start Task.vi:2 

 

Possible reason(s):

 

Measurements: Sample Mode is set to a value other than Hardware Timed Single Point. This is the only value supported for counter generations when Sample Timing Type is set to Sample Clock.

 

Change the Sample Mode or the Sample Timing Type.

 

Property: SampQuant.SampMode

Corresponding Value: Continuous Samples

Property: SampTimingType

Corresponding Value: Sample Clock

 

Task Name: _unnamedTask<1A>

 

Message Edited by adamkse on 02-26-2010 03:19 PM
0 Kudos
Message 12 of 17
(1,729 Views)

The code is just an example for a specific device.  You have to make modification as you seet fit for your device.  As a last resort, you can always generate the PWM in a loop (software based).

 

Yik

------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
0 Kudos
Message 13 of 17
(1,720 Views)

Thank you, I think I was getting close to what I need. Your help is much appreciated 🙂

 

Adam 

0 Kudos
Message 14 of 17
(1,707 Views)

No problem.  Let me know what the program look like at the end.

 

Yik

------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
0 Kudos
Message 15 of 17
(1,699 Views)

I will do.

 

Thanks again.

Adam

0 Kudos
Message 16 of 17
(1,663 Views)

This works but still needs some tuning

 

 

0 Kudos
Message 17 of 17
(1,637 Views)