01-12-2016 09:08 AM
Just double checked everything and yeah there was a mistake in the connections. It is working correctly now. Thanks.
I am now trying to get the pulse width modulation working from this tutorial:
http://www.ni.com/tutorial/2991/en/
I dont really understand what ctr0, ctr1, ctr2, and ctr3 are. They aren't outputs on the 9474 module as it only has 10 pins, which include 8 digital output channels a common and positive power supply terminal. There isn't any ctr pins.
01-12-2016 09:39 AM
01-12-2016 09:48 AM - edited 01-12-2016 09:49 AM
It has to be here or the option wouldn't be available. I only get options for features which are actually on my hardware.
EDIT: CTR0 appears to be D3 oon the module. Got PWM signal succesfully but the code doesn't let me change the frequency mid-operation. I can only set the frequency at the start of the program.
01-12-2016 10:01 AM
01-12-2016 10:16 AM
Im not sure but i am using a 9474 and it seems to have a built in PWM for some reason.
Ok I will have a look into that and see if I can get variable frequency.
01-12-2016 11:28 AM
Hi,
just an idea:
On a cRIO several (but not all) DIO modules allow the ScanEngine to operate with PWM and CTR signals: the DIO modules have to be a certain type (with atleast 8 channels or multiples of 8).
I think the cDAQ follows the same rule: with a certain DIO module you can use the DIO channels for PWM and CTR signals, which are generated in the cDAQ chassis hardware.