SPI with U3 | LabJack
 

SPI with U3

4 posts / 0 new
Last post
ao.med
aouich007's picture
SPI with U3

Hi everybody,

I'm working on sending signal from DSP to Labjack by SPI.so I used the VI exemple in the LJUD named : SPI Large.

the problem is that I cannot acess the sample time field.I guess that it's coded in a dll file inside the VI.

can anyone help me to figure out a solution for this problem?

File Attachment: 
LabJack Support
labjack support's picture
I am not sure what you mean

I am not sure what you mean by "sample time field"?  Perhaps you mean that you want to control the SPI clock rate, and thus you want to write a value to LJ_chSPI_CLOCK_FACTOR?

https://labjack.com/support/datasheets/u3/high-level-driver/example-pseu...

https://labjack.com/support/datasheets/u3/low-level-function-reference/spi

You can see in the example "SPI Large.vi" that it is indeed writing to LJ_chSPI_CLOCK_FACTOR.  It is set to 0 in the example.

ao.med
aouich007's picture
So we can modifi this field

So we can modifi this field (LJ_chSPI_CLOCK_FACTOR) !!

But what's the maximum speed we can reach with spi in Labjack U3??

LabJack Support
labjack support's picture
A value of 0 corresponds to

A value of 0 corresponds to the maximum speed which is about 80 kpbs:

https://labjack.com/support/datasheets/u3/low-level-function-reference/spi