Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

Use counter as controller

Hello everybody,

 

I am relatively new to the use of Labview with DAQmx tasks and counters so please bear with me if it sounds like am saying lots and lots of platitudes... I am trying to learn...

I have looked at the examples and in the forum and found lots of interesting tips however I am still having problems to solve this issue.

 

I am trying to use the output of two counters as control variable. Basically the idea is that in the moment in which the counters have reached a specific amount of counts (that I am giving in input, indicated as X-position and Y-position in the VI) they should send a signal that turns off the two engines (T/F kind of steering).

I can turn on/off and give a direction to the engines and I managed to get the counters to count the steps however I still can't get to turn off the engines in the moment in which the counters reach the indicated amount of counts....

 

I have seen that there are people VERY very handy with Labview... maybe one of you has a useful tip on how to solve the issue

 

Thank you in advance

Kind regards

0 Kudos
Message 1 of 2
(3,098 Views)

Dear TrueValensFox,

 

I've made some modifications to your code to make it easier to understand. We are using one digital output write to write to the four digital outputs. Please select four digital outputs, else the task will not work. Please let me know if this works for you.

 

Best regards,

Martijn S
Applications Engineer
NI Netherlands
0 Kudos
Message 2 of 2
(3,016 Views)