03-10-2017 12:14 PM
Hi,
I am currently developing an application in LabView and I need to generate a PWM signal using a PIXe-6341. I found an example to do this (Counter Output) but i do not see the signal (i am measuring from PFI12 output, using D GND port as ground). How should I connect the wires to see the signal? I am not pretty sure if I am monitoring the correct port.
Thank you in advance.
Solved! Go to Solution.
03-10-2017 06:47 PM - edited 03-10-2017 06:49 PM
You have several choices for WHERE the signal comes out.
Not sure about your particular device, but I've done it with other PXI boards.
Note that there are SOME conflicts inherent in some boards: Not all functions are simultaneously available.
For example, on the PXI 6602, some of the counter outputs conflict with some digital input pins.
I have to EXPLICITLY set the output pin to be PFI32, or whatever. If I don't, the pin stays as an input pin and nothing happens. Check for that in your docs for your device.
Here's my code:
I create the CO PULSE FREQ task using a chosen base frequency, then set the CO.PULSE.TERM to /CTR/PFI32 or whatever, then set the timing to Continuous.
Every sample, I set the FREQUENCY the same, but adjust the DUTY CYCLE to 0.00001... 0.99999, depending on data.
The key point is that not every PFI pin is available without you asking. The docs will tell you which pins are available for what. Some pins might be available for multiple functions, so you might have to override the default.
Blog for (mostly LabVIEW) programmers: Tips And Tricks
09-07-2017 04:51 PM
Thank you, you totally enlightened me out.