LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

acutator control

0 Kudos
Message 11 of 23
(1,307 Views)

Pitty it dooes not work i ge a error with the sample clock

I use a 6008 i thik it cannot handle it

 

 

what now?.......... 

0 Kudos
Message 12 of 23
(1,303 Views)

I there a way so that i can have the digital line give samples until a programme value  , let say tank has   a value of 480 so the  acutator must run until this values is reached

???????????????....... 

0 Kudos
Message 13 of 23
(1,283 Views)

any one ? solution to act .vi

i am really stuck here

 

0 Kudos
Message 14 of 23
(1,247 Views)

cees10-

 

aeastet’s code looks very similar to what you are looking to do. However, you are correct, it will not work correct with your 6008 since there is no hardware clock. I would suggest modifying his code to remove that section of the code and do software timing. With your code, you shouldn’t have a while loop around the whole thing. Nested while loops makes for bad days.

Regards,

Mike S
NI AE
0 Kudos
Message 15 of 23
(1,228 Views)

Hi Mike

well i tried to rmove the timer only got more errors that i also could not solve

i tried to remove the while loop but then it would not run digital and analog together

i am really stuck here

 

0 Kudos
Message 16 of 23
(1,220 Views)

Hi cees10,

 

After taking a quick look at your code, I am a little confused as to why you are using two parallel loops inside of a third outer loop. What are you trying to accomplish with this architecture? Be aware that even if you stop one of the inner loops, it will not restart it's looping until the second inner loop has been stopped as well, at which point both loops will begin looping again. Is this you intended behavior?

 

Thank you for choosing National Instruments.

 

Aaron Pena

National Instruments

Applications Engineer

http://www.ni.com/support

0 Kudos
Message 17 of 23
(1,205 Views)

Hi aaron

Well as a beginner of Ni products and labview i tried several things i does not have to be a parallel loop

and third other loop  ,but wih playing around i just try what  works ,

I wanted the digital port to stop or start on a field with a certain (calc value) as soon that value is reached the motor can stop

 

the value , is a value of potension meter wich represent a certain postion  .

 

 

0 Kudos
Message 18 of 23
(1,191 Views)
If I understand right, it sounds like you want to remove the two inner while loops and then put the initialization code (I/O Point, Create Channel, and Start VIs) on the outside of the main loop to the left, and the exit code (Clear Task, Simple Error Handler) on the right side of the loop. This way you should have all code running in parallel in one loop, but still initializing your task once. It should also leave you with only one Stop button.
Will
CLA, CLED, CTD, CPI
LabVIEW Champion
Choose Movement Consulting
choose-mc.com
0 Kudos
Message 19 of 23
(1,156 Views)

Hi Will

Well to say it simple i want to do anything ,if i get my motor to stop on a certain value

 

can you tell me how t do that

 

if i program a value  let say 560

and the pot meter reach 560 the motor most stop (this by a signal on digital port)  

Thats all what i want  

0 Kudos
Message 20 of 23
(1,148 Views)