02-18-2020 09:52 PM
Hello guys! I am new to labview and DAQ. I am trying to figure out how to create a program that is able to send the following signals(picture). I am unsure if I am able to create a clock with a DAQ, I have the USB-6221 model. I would love if you can guide me to the right resources or give me some tips on how to start it. The program should be able to control a light source that has 9 different group of LEDs. Thank you!
02-19-2020 02:33 AM - edited 02-19-2020 02:35 AM
Hi mgrzego,
@mgrzego wrote:
I am trying to figure out how to create a program that is able to send the following signals(picture). I am unsure if I am able to create a clock with a DAQ, I have the USB-6221 model.
The NI6221 can output digital waveforms on port 0 of its DIO channels.
So you can create (digital) waveforms for 3 DO pins (Data, Clock and Load) and output them when needed.
@mgrzego wrote:
I am new to labview and DAQ. … I would love if you can guide me to the right resources or give me some tips on how to start it.
See those "Training resources" offered in the header of this LabVIEW board to learn LabVIEW basics.
Then open the example finder in LabVIEW and play with all those example VIs.
Read this to learn DAQmx basics.
Then play with those example VIs about DAQmx and digital outputs.
…
02-19-2020 09:41 AM
Adding to what GerdW already said...
Yes the 6221 can generate a digital waveform on port 0, BUT:
- it can't supply its own sample clock signal. You'd need to supply that from another task (such as a counter output). Do some sarching on "correlated digital io", which is the term used for this mode of operation on your older M-series board
- there are only 8 distinct output lines on port 0. You mention 9 groups of LED's. It isn't clear whether you need 9+ distinct signals or whether you have a protocol that allows the 3 DO signals you mentioned to define the behavior of your 9 groups.
-Kevin P