05-13-2009 03:10 PM
I'm trying to build a Host vi in which I can choose either to send out a square wave or a constant value to FPGA analog out put. I know that this might be solve by using Square wave generator express vi in FPGA.vi, how ever, in order to save FPGA card usage, I want to use the Square wave generator function on host vi.
The first problem I encountered was Square wave generator function outputs an array instead of a scale so it cannot be connect to the output I/O node of FPGA function. Then I tried Square wave PtByPt. However, the description of the functino is somewhat vague to me. What I get now is a constant value defined by amplitude instead of a square wave. If I set the amplitude at 4, then the wave is a constant line with value 4, and whether it's 4 or -4 is dependent on the frequency I set. I don't know if it's caused by the wong setting of time parameter of the function.
Can someone help me to figure out how to output a square wave on Host vi? Thank you.
Solved! Go to Solution.
05-14-2009 05:36 PM
Hi Solijang,
Your timebase input is not configured correctly. You should take care to see that step time<0.5*fmax. In addition you must also append values to your graph as they come. Please refer to the attached VI. Hope this helps.
Ipshita C.
05-17-2009 01:48 PM
05-18-2009 01:40 PM
Here is the same VI in 8.5. Hope it helps!
Ipshita C.
05-18-2009 01:46 PM
05-18-2009 02:00 PM