Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

ni-6541 hsdio

I am trying to use the NI-6541 for two purpose.  1. use 5 I/O to generate waveforms, 2. use 4 I/O pins as SPI interface.

 

I am currently reading a text file and using the script function to generate my waveform.  Is it possible that while the script in running a pattern on I/O 0 to 5 and use other pins to generate SPI commands, ie .I/O 6 to 9?

 

I would like the pattern to run continuously while generating SPI comands.  If it's not possible with Scripts, is there a better method?

 

Thanks

0 Kudos
Message 1 of 6
(4,231 Views)

I hope you've seen the following tutorial. Its very useful: http://zone.ni.com/devzone/cda/epd/p/id/6200

I've used it (along with the SPI reference library) to build a SPI control VI using the NI-6541.

 

I don't know about having a continuous waveform on other lines at the same time.

 

 

0 Kudos
Message 2 of 6
(4,220 Views)

Thanks for the link.  I am currently using the NI-845x (usb to SPI) to generate SPI communication and wanted to see if I can take advantage of the extra I/O's on the NI-6541 to consolidate the functions.   This will be quite helpful if I can perform both tasks simultaneously.

0 Kudos
Message 3 of 6
(4,212 Views)

htram,

 

There is only one dynamic generation engine per device.  However, if you implement SPI using static reads and writes, you can definitely have it run in parallel with your scripted generation.  You just have to make sure you manage your channel lists and static masks correctly.

Message 4 of 6
(4,200 Views)

Hi

For more information on the LabVIEW API for Static DIO can be found here page 247.

Good luck 🙂

 

-Lab

0 Kudos
Message 5 of 6
(4,194 Views)
Thanks for the feedback Ryan.  I will check that out.
0 Kudos
Message 6 of 6
(4,163 Views)