LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

external ADC

The RESET signal should either be connected directly to the digital supply, or it can be connected to any digital IO pin, which should output logic high (TRUE) signal.

 

If you enable Auto-Trigger, then you can skip using the CONVST signal.

 

Also note that Auto channel select should be used with Auto-Trigger mode and TAG bit output enabled, while in your code TAG bit is disabled.

 

Number of bytes to read is defined by number of channels you want to read from the ADC. According to the settings it will output sequentially data for all 8 channels, so there will be 8*2 bytes of data.

 

Number of bits selected in the code is correct.

 

Thanks,

Arev

0 Kudos
Message 11 of 13
(795 Views)

Attached is the modified code. There are 3 SPI write functions. And everything is in Auto mode with TAG enabled.

1) Write CFR

2) Read CFR

3) Read Data

 

I'm still not getting any useful output, It stays stuck at 7.xxx

 

RESET pin is connected to a 5V. 

 

I dont know whats happening now. 

0 Kudos
Message 12 of 13
(752 Views)

Also, with Auto enabled, TAG has to be enabled. And with TAG enabled, 19 bits of data correspond to one channel (16 data + 3 address), whereas myRIO will only take data bits in powers of 2. How will I separate the data and channel from the 19 bits if they are coming in as a continuous stream ?

0 Kudos
Message 13 of 13
(749 Views)