LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

send series of SPI commands from DAQ

I have created my SPI waveforms and then split them up and sent them to 5 different lines on my DAQmx (I have two CS lines). 

 

The slaves here are two PGAs and the MOSI line is setting the gain to one of 11 programmable gains; I have a Ring (drop-down menu) set up for the user to select the gain which is fed in to the MOSI data port on the SPI swap VI. My problem: I need to send initial commands to the slave to configure a pin on the slave (PGA), before I use the Ring to select the gain. How can I send initial commands on the MOSI line to "set" the slave, and then use my Ring to select/change the gain? How can I send a series of commands via SPI before the user selects the command to send to MOSI?

 

I am using the DAQ 6356 which has no way to recognize SPI protocol so I used SDW to generate my waveforms.

0 Kudos
Message 1 of 2
(2,061 Views)

Please refer to this forum thread.

Jeff S.
National Instruments
0 Kudos
Message 2 of 2
(2,039 Views)