10-21-2015 09:38 AM
Hallo every body,
Iam new in Labview FPGA, also i have simulated the PXIe 7841R and i want to generate a square pulse with a bandwidth of 1ms and a periode of 2ms.
for that i used a while loop and in the while loop a flat sequence with 4 compartements:
1c-I used a digital IO port and i wrote a True in it
2c-I use a Wait component with a constant =1ms
3c-I used the same digital IO port and i wrote a false in it
4c-I use a Wait component with a constant =2ms
i also attached a LED to the input of the DIO at 1c and a local variable of the same LED to the input of the DIO at 2c .
The result shows a blinkinf LED with a high takt not respecting the timin i gave.
wenn i use the debugging tool of labview which causes a small delay i see the wanted result.
So i think the problem ist that the loops run with the board frequency which is 40 Mhs or 25 ns very quick as the entended timing.(Iam not sure 😞 )
can you plz help me?
Thx.
10-21-2015 10:26 AM
Please show us some code. How do you determine that the loop does not run at 1+2ms. This is probably too fast to see by eye.
Why do you think you need all that duplicate code?
10-21-2015 10:31 AM
10-22-2015 12:47 AM
Hi every body,
here is a pic of my code.
i just want to generate a square pulse.
you can also give me better ideas, because as i said am new in Labview and Labview FPGA.
thx a lot 🙂
10-22-2015 01:35 AM
Hello asmbeth,
directly verify timing on windows with simulated hardware is not working.
Here some help for debugging FPGA code
Testing and Debugging LabVIEW FPGA Code
Using the LabVIEW FPGA Desktop Execution Node
Hope it helps.
10-22-2015 02:38 AM
Hello Duffy2007,
Thx for you answer, i had a look on the both articles, they are very informativ.
But i really need help creating a square pulse, du you know any idea how kann do this?
thx a lot.
10-22-2015 02:41 AM
Hello asmbeth,
your code should working.