Quantcast
Channel: Measurement Studio for .NET Languages topics
Viewing all articles
Browse latest Browse all 1999

hardware timing of digital outputs

$
0
0

Hi Folks

 

I am cimpletely new to DAQmx and am struggling to come up to speed.  I am using a NI PCIe-6353 card in my device.  My programming environment in Visual Studio 2015 using Visial Basic with .NET 4.5.1.  I am not using Measurement Studio, just calling the .NET api directly from my code.

 

I have a set of 6 LED's that are attached to 6 of the digital output ports on this card.  I have been able to sucessfully turn the LED's on/off, but now I want to send PWM pulses to the LED's and control the duty cycle to change the intensity of the LEDs.  I know there is some way to use the internal counters on the card to generate a PWM pulse stream, and then use that pulse stream to somehow change the output to the digital lines, but I hnoestly don't have a clue about how to make that work.  I've search through the examples on my system. but noine of them show how to drive a digital output from a timer.

 

Can anybody give me some example code that can point me in the right diection?

 

Thanks

 

- Mike

 

 


Viewing all articles
Browse latest Browse all 1999

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>