LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQ and LabView Help

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!signal cycle.JPG

 

0 Kudos
Message 1 of 3
(2,013 Views)

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.

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 3
(1,968 Views)

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

ALERT! LabVIEW's subscription-only policy coming to an end (finally!). Permanent license pricing remains WIP. Tread carefully.
0 Kudos
Message 3 of 3
(1,949 Views)