Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

Delay of 1 microsec.

 

we are generating sine weighted PWM  using carrier of 2.5 Khz , we want to generate 1 micro sec delay between each iteration of while loop. Output pulse  Ton and T off time are in microsecs .

 

0 Kudos
Message 1 of 5
(6,364 Views)

Hello,

 

I would like to know what is the hardware platform on which you are going to use this setup. The reason is your Windows OS will only allow you till 1 milli-sec. But for 1 micro sec you will require Real Time OS. Now you will have to use the Timed Loop structure which will allow you to have a selection of 1 MHZ sample clock. So you can refer to this loop under Programming>> Structures>> Timed Loop.

Hope this helps.

 

Thank You.

Priyank.

0 Kudos
Message 2 of 5
(6,344 Views)

Hi

 

The Hardware platform is core2 quad processor with windows OS. and using cDAQ-9178 with NI 9474 card. I also tried with Time loop but windows is not supporting 1MHz sample clock. can I configur my PC for Real Time LabView module in that I have one function "wait for"in that I can select microsecond unit and use in while loop. I have also tried this but I have'nt get the expected result. do u know who to use RT module or who to creat RT project. Is there any other method to generat 1microsecond delay. 

 

0 Kudos
Message 3 of 5
(6,332 Views)

Hi

 

The Hardware platform is core2 quad processor with windows OS. and using cDAQ-9178 with NI 9474 card. I also tried with Time loop but windows is not supporting 1MHz sample clock. can I configur my PC for Real Time LabView module in that I have one function "wait for"in that I can select microsecond unit and use in while loop. I have also tried this but I have'nt get the expected result. do u know who to use RT module or who to creat RT project. Is there any other method to generat 1microsecond delay. 

 

0 Kudos
Message 4 of 5
(6,331 Views)

Hi,

 

The problem is what you are trying to achieve is itself not possible on Windows operating system. The clock on Windows is a 1KHz clock, so you cannot go above this value. To achieve the 1 MHz rate you will require an all together different system which supports the Real Time OS. We have range of hardware which can work on RT. Now the modules that you are having are C series modules which can be used on cDAQ as well as on a hardware called cRIO which has a RT OS and here you can achieve the 1 MHz clock. Apart from this you can make your desktop as a RT target. But I doubt if you can achieve that much rate on this.

 

Thanks.

0 Kudos
Message 5 of 5
(6,315 Views)