LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

NI sbRIO 9631 + encoder, timing chart to FPGA program

Hello ,
Sorry for my English
That is the problem.

An Input (In) signal comes from an encoder, so its period changes according to the speed of rotation.
diagram chartdiagram chartD1, d2, d3 and d4 are output signals see timing diagram.
Timing chartTiming chartT1, t2, t3 and t4 is the duration of activation of the signals. D1, d2, d3 and d4.
D1 is activated at each IN period.
D2 is activated at each 2 IN period.
D3 is activated at each 7 IN period.
D4 is activated at each 36 IN period.

I have an NI sbRIO 9631 card, I am a beginner.
My NI sbRIO 9631My NI sbRIO 9631I realized part of the program, as I did not encode it with me I could not carry out test.
InterfaceInterfaceProgramProgramthe questions:
1) how to make the counter of the encoder?  (i make counter for button)
2) how to realize DELAY of d1, d2, d3 and d4?
3) The start button is virtual, the best is to put it phisic.?

4) At startup set all output to 0.
I have attached Illustrations to explain all this

thank you.

0 Kudos
Message 1 of 3
(3,207 Views)

Hi Smert, 

 

So a couple of things, are you using a motor? Im not sure if that was part of your picutre. 

 

As for the questions that you had: 

 

1) The encoder is an digital input. you can just use the digital input as another signal to use as a timing signal or a counter input. 

2) I'm not sure what you mean by realize delay. but you can use a counter from your internal timing clock to generate a faster signal that can trigger the period of the encoder based on the speed of the rotations. - actually just using the signal we talked about in the previous question with case structures might work. 

3) a physical button needs a value change tied to a digital input. you can buy ones pretty easily from like amateur robotics stores. 

4) you can do that by following these steps. 

How Can I Programmatically Reset All the Controls on My Front Panel?

 

Thanks, 

 

David Raji

0 Kudos
Message 2 of 3
(3,134 Views)

Hi David Raji.

Thank you for your help, I will see this.

 

No, the encoder is attached to a wheel of a vehicle

0 Kudos
Message 3 of 3
(3,112 Views)