LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Crio code for PWM does not work properly

I have made a code for Crio digital channel which generates  a square wave based on the frequency and duty cycle i give from the Host vi i.e, from my PC. The fpga code works fine till the reference in the Host vi is not closed. Once in the host vi if the reference is closed the pulses stop generating.

Can any once help me in this regard.

0 Kudos
Message 1 of 6
(3,128 Views)
Close reference will stop and reset the FPGA VI. So you should not be closing the reference till the PWM generation is not complete. I assumed that you are reerring to RT VI when you say host VI.
------

"A VI inside a Class is worth hundreds in the bush"
യവന്‍ പുലിയാണു കേട്ടാ!!!
0 Kudos
Message 2 of 6
(3,116 Views)
It’s a windows host vi. What I want is that the pulses need to be continuously generated till I say stop from the Windows Host vi. If we wont close the reference in the windows host vi, the resource will be locked and in future there will be a problem of memory allocation for the Crio resources. So actually what should happen is that pulses need to be generated from the Crio output pin even after closing the reference in thw windows host vi.Which is not happening. Iget continuous pulses if i dont close the reference, which is not the right way i hope.
0 Kudos
Message 3 of 6
(3,104 Views)
Hi kpraveen, you should be able to right-click the Close FPGA Reference and select its action to be just Close (instead of Close and Reset which is the default). That should do what you want.
Message 4 of 6
(3,083 Views)

Hi Kpraveen ,

   Based on the suggestions given above , can you please tell all of us whether your problem has been resolved or not ?

Thanks

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

The problem has been solved bu the suggestin given bu Mota.

0 Kudos
Message 6 of 6
(3,008 Views)