LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Encoder Output (NI-9474), A - B Channel, synchron and mutable

Hi

this is my first time I write in a forum. So tell me, if I did something wrong.

I also hope that my english is understandable.

 

I work with:

- Labview Version 16 (Software)

- NI- cDAQ-9184 with 2 unused mods and the third mod is the NI-9474

 

My Goal:

I want to output a two channel AB encoder signal. I have to able to change the frequency during the runtime. In addition, the two signals must be synchronized. The frequency range should be from 1Hz to 12kHz.

 

My current stand:

1. Try:

Write a boolarray on digitaloutput with whileloop and a time delay

=> synchronization -> ok

=> mutable -> ok

=> max stable frequency 10Hz

2. Try:

Make a counter pulse output

=> no synchronization, with the NI-9474 i cant trigger on the output

=> no mutable, i must kill the task and make a new one with a different frequency

=> max stable frequenz 200kHz -> ok

 

 

So, now i have a few questions...

 

Question 1:

How can i make the counter pulse output mutable, without kill the task everytime?

 

Question 2:

How can i synchronize the two channels?

 

Question 3:

Is there other way to control the outputs, than the counter puls output and the normal output ?

 

Question 4:

Is this project even possible?

 

In the appendix i have my Test-Vi. It's not nice, but practical.

 

I hope you can help me.

 

Greetings from Switzerland

Roman

Download All
0 Kudos
Message 1 of 1
(2,179 Views)