10-12-2010 07:57 AM
Hi,
I am trying to generate a digital square waveform on the P0.0, I use a PXIe-6358. I got to the stage where I can generate the signal at a desired frequency however it appears only on PFI14. Can you please advise how to route it to P0.0 or to any other pins on the Port0? I have seen here some discussions about similar problems but none of them seemed to be suitable for port0.
Thanks,
Krivan
10-12-2010 02:38 PM
Can you post the applicable LabVIEW code? Or, at the very least if that part of the diagram isn't too complex, an image, preferably in .png format, Not in .bmp.

10-13-2010 06:29 AM
Hi,
sure, the labview code that generates the pulses with a counter is attached. In this code the pulses are measurable on PFI12 [ctr0] . Can you please suggest how to route this signal to P0.0.
Thanks.
10-13-2010 08:26 PM
Hi krivan,
This diagram from the X Series User Manual shows what signals can be routed to P0.x: X Series Digital I/O Circuitry. Unfortunately, it does not include anything other than DIO signals.
The straightforward solution is to use a PFI line for your counter output. This is how the general-purpose counter/timers on the X Series devices were designed to work. You don't necessarily have to use PFI12. Use the CO.Pulse.Term property to control which PFI line the counter output is connected to:
If you must use port0 for this, it is also possible to generate a square wave using hardware timed DIO instead of general-purpose counter/timers. This example doesn't do exactly what you want but it should be a good starting point: Continuous Write Digital Port - Internal Clock.
Brad
10-14-2010 05:29 AM
Hi Brad,
thanks for the ideas.
I have already tried the example vi you linked in but this way I haven't got 50% duty cycle pulses. For that reason I used the counters but to use it's output signal I must be able to send the output of the counter to port0. I would certainly use PFI lines but there is a board here that will connect to my PXIe cards and it must get the waveform at a specific point that happens to be the P0.0...
Thanks,
Krivan
10-14-2010 12:34 PM - edited 10-14-2010 12:34 PM
Hi krivan,
In that example, the "Pattern" control is set to [1, 2, 4, 8, 16, 32, 64, 128]. You need to change it to a pattern that will produce a square wave, such as [0xFFFFFFFF, 0x00000000] (which is actually 32 square waves: one per line).
Brad