01-25-2013 06:26 PM
Hi,
I'm using Labview 2012 for controlling the digital potentiometer (AD7376) in variable resistor mode.
What has to be done :
1) Clock source is conncted externally using PFI12/ counter output terminal.
2)The trigger (manual) is connected to Port1.0 as an external inverted trigger (CS_inverted) to start the clock pulse.
3)7-bit Data is written through port0.0 serially at rising edge of the clock. Once the clock cycle completes 7 cycles, the trigger is set to high manually so that data is latched. This is manually done bacuase I have connected the 3 inputs to LEDs and I know when it completes 7 clock cycles and stop the trigger.
Help needed:
1) To automatically stop the trigger (set CS_inverted to high) after it completes 7 clock cycles.
2) To view the timing diagram in the same graph.
01-28-2013 11:22 AM
@Easwar wrote:
Hi,
I'm using Labview 2012 for controlling the digital potentiometer (AD7376) in variable resistor mode.
What has to be done :
1) Clock source is conncted externally using PFI12/ counter output terminal.
2)The trigger (manual) is connected to Port1.0 as an external inverted trigger (CS_inverted) to start the clock pulse.
3)7-bit Data is written through port0.0 serially at rising edge of the clock. Once the clock cycle completes 7 cycles, the trigger is set to high manually so that data is latched. This is manually done bacuase I have connected the 3 inputs to LEDs and I know when it completes 7 clock cycles and stop the trigger.
Help needed:
1) To automatically stop the trigger (set CS_inverted to high) after it completes 7 clock cycles.
2) To view the timing diagram in the same graph.
according to your timming graph...you need to send out 3 signals all at once,"one channel for all lines." take a look at the NI example: \examples\DAQmx\Digital Output\Digital (Pipelined Sample Clock) - Continuous Output.vi
01-28-2013 02:43 PM
you should also check out this discussion on SPI communication with useful links......
01-28-2013 03:04 PM
Thanks a lot apok !. I will get back to you if I have any questions.
01-28-2013 03:17 PM - edited 01-28-2013 03:19 PM
I was able to control a dig pot using Arduino UNO and labview drivers in this discussion, plus at a percent of the cost of a M Daq...