LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

FPGA STCL Multiple Clock Sources

Solved!
Go to solution

Hello everyone,

I have encountered some problems in using FPGA. My device is USB-7856R. I want to generate a trigger (gating signal), which lasts for about 20μs at a high level, and then stays at a low level until the next high level comes (100ms later). At the same time, I also need to detect the digital square signal (about 1MHz) obtained from DIO2. I use the counter method and use SCTL to select the 80MHz clock(because of accuracy and speed).
I want to put these two VIs into the same VI, but I am prompted to use multiple clock sources. Can you tell me what to do? Thank you very much.
Or is there another way to achieve digital trigger output?

0 Kudos
Message 1 of 3
(284 Views)
Solution
Accepted by topic author CIel123

Hi Clel,

 

I believe this is one way of achieving what you are trying to do. Do not consider this as a fact but from what I know you are putting IO nodes off the same connector and all the DIO on that connector would need the same clock to operate. Your clock in top while loop (Cycle time) will be different than the 80Mhz (12.5nsp) cycle time. I would suggest reading some articles about this to better understand. I did not have time look up one for you.

 

 

Xonmyth743_0-1625839163306.png

Xonmyth743_1-1625839249377.png

This is just to give an idea to approach what you are trying to do until someone comes up with a better answer. Hope this helps 😬

 

0 Kudos
Message 2 of 3
(239 Views)

Thank you for your suggestion! I will try it!

0 Kudos
Message 3 of 3
(231 Views)