LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

MyRIO SPI on FPGA

Solved!
Go to solution

Did you complete your interface? Did it work?

0 Kudos
Message 11 of 15
(1,211 Views)

how can i find nirviemutemplatemethod_errors.vi?

Thanks

0 Kudos
Message 12 of 15
(1,045 Views)

@pepin_v

@pepin_v wrote:

Hello,

Thank for your really fast answer.  Smiley Happy

New thread maybe, but I consider it as the same topic - SPI for myRIO. The default personality can read up to 16bits. I think, it is because it uses U16 datatype for read data. But I’m not sure. So my original question (and entreaty) was, if you have your own SPI implementation, where you can set length of the data.

You are right about MAX31855. You can read just 14bits for temperature data, but you need 32bits for all data – thermocouple temperature, cold junction compensation temperature and errors indication (see https://cdn-shop.adafruit.com/datasheets/MAX31855.pdf page 10). And I have problems with reading just 14bits. I have to play with my code more, as I can read data using myRIO default SPI commands but the data read are wrong.  

Any advice appreciated because all info I found was for LINX (using Arduino) and nothing for myRIO itself. Some tutorials for FPGA SPI are available, but all are quite complex (=universal) and I haven’t found just simple reader with a various messages lengths.

Kind regards

pepin


Actually i just need to read the temperature data (14 bits), but i have an errors or i still dont know how. sorry im newbie. how can i read just the temp data of max31855? or can you share your vi?

Kind regards

nursyam 

0 Kudos
Message 13 of 15
(1,043 Views)

Hi,

recently I actually have to come back to MAX31855 :-). A searched online and all you need is to read more frames - two actually (16bit data length) for 32 bits using myRIO I/O Monitor. It worked for me well. And it worked well using  myRioSPI RT functions as well. I plan to finish my .vi for reading more MAX31855 simultaneously in about a week. Hopefully.

But you can find bunch of examples online searching for MAX31855 and labview.

0 Kudos
Message 14 of 15
(1,036 Views)

I deal with the problem too. If anyone knows how to find nirviemutemplatemethod_errors.vi, please let me know. Thank you.

0 Kudos
Message 15 of 15
(319 Views)