FLIR Lepton using LabVIEW

304 views
Skip to first unread message

cn...@uncc.edu

unread,
Oct 21, 2016, 4:13:56 PM10/21/16
to Flir Lepton
Hello all! I was wondering if someone has captured raw pixel data using a NI myRIO.  I am working on a project that is using the myRIO and was curious if anyone has done this.  It seems that the processor in the myRIO meets the specs to be able to handle continuous streaming of data but I am having trouble with the synchronization part.  Specifcally, I am having trouble establishing synchronization.  One thing that I've noticed and confirmed is that using the  Express VI LabVIEW offers for the myRIO slow things down a bit.  For the SPI Express VI, the maximum clock speed is 4MHz, which in theory, should work, however I am afraid that some background processing is actually slowing this down.

So far, I've created an array and have captured random inconsistent bytes using the express VI.  The results look something like this:


D6DCAD000000000096EEF0B03557BF0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004FFFFFFFDCD0DCADDCD2DCADDCD4DCADDC
D6DCAD000000000096E6F1B0557BF0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004FFFFFFFDCD0DCADDCD2DCADDCD4DCADDC
D6DCAD000000000096EEF2901D57BF0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004FFFFFFFDCD0DCADDCD2DCADDCD4DCADDC
D6DCAD000000000096EEF3604057BF0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004FFFFFFFDCD0DCADDCD2DCADDCD4DCADDC
D6DCAD000000000096EEF4401A57BF0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004FFFFFFFDCD0DCADDCD2DCADDCD4DCADDC
D6DCAD000000000096FEF8070435A7E1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004FFFFFFFDCD0DCADDCD2DCADDCD4DCADDC
D6DCAD000000000096F6F8150125A7E1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004FFFFFFFDCD0DCADDCD2DCADDCD4DCADDC
D6DCAD000000000096FEF8220365A7E1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004FFFFFFFDCD0DCADDCD2DCADDCD4DCADDC
D6DCAD000000000096FEF83095A7E1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004FFFFFFFDCD0DCADDCD2DCADDCD4DCADDC
D6DCAD000000000096FEF83D02C5A7E1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004FFFFFFFDCD0DCADDCD2DCADDCD4DCADDC
D6DCAD000000000096FEF84A04A5A7E1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004FFFFFFFDCD0DCADDCD2DCADDCD4DCADDC
D6DCAD000000000096FF00E01F5A7E0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004FFFFFFFDCD0DCADDCD2DCADDCD4DCADDC
D6DCAD000000000096F701B0435A7E0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004FFFFFFFDCD0DCADDCD2DCADDCD4DCADDC
D6DCAD000000000096F702900F5A7E0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004FFFFFFFDCD0DCADDCD2DCADDCD4DCADDC
D6DCAD000000000096F70360345A7E0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004FFFFFFFDCD0DCADDCD2DCADDCD4DCADDC
D6DCAD000000000096F7044075A7E0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004FFFFFFFDCD0DCADDCD2DCADDCD4DCADDC
D6DCAD00000000009707080702A5A7E1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004FFFFFFFDCD0DCADDCD2DCADDCD4DCADDC
D6DCAD00000000009707081404E5A7E1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004FFFFFFFDCD0DCADDCD2DCADDCD4DCADDC
D6DCAD0000000000970708220215A7E1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004FFFFFFFDCD0DCADDCD2DCADDCD4DCADDC
D6DCAD0000000000970F082F0475A7E1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004FFFFFFFDCD0DCADDCD2DCADDCD4DCADDC
D6DCAD00000000009707083D0165A7E1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004FFFFFFFDCD0DCADDCD2DCADDCD4DCADDC
D6DCAD00000000009707084A03D5A7E1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004FFFFFFFDCD0DCADDCD2DCADDCD4DCADDC
D6DCAD0000000000970710E0155A7E0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004FFFFFFFDCD0DCADDCD2DCADDCD4DCADDC
D6DCAD0000000000970F11B0345A7E0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004FFFFFFFDCD0DCADDCD2DCADDCD4DCADDC
D6DCAD0000000000970F12900F5A7E0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004FFFFFFFDCD0DCADDCD2DCADDCD4DCADDC
D6DCAD000000000097071360355A7E0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004FFFFFFFDCD0DCADDCD2DCADDCD4DCADDC
D6DCAD00000000009707144035A7E0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004FFFFFFFDCD0DCADDCD2DCADDCD4DCADDC
D6DCAD00000000009717180702D34401000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004FFFFFFFDCD0DCADDCD2DCADDCD4DCADDC
D6DCAD0000000000971F18150234401000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004FFFFFFFDCD0DCADDCD2DCADDCD4DCADDC
D6DCAD0000000000971F182202734401000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004FFFFFFFDCD0DCADDCD2DCADDCD4DCADDC
D6DCAD0000000000971F182F04634401000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004FFFFFFFDCD0DCADDCD2DCADDCD4DCADDC
D6DCAD0000000000971F183D01A34401000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004FFFFFFFDCD0DCADDCD2DCADDCD4DCADDC
D6DCAD0000000000971F184A04034401000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004FFFFFFFDCD0DCADDCD2DCADDCD4DCADDC
D6DCAD0000000000971720E01034400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004FFFFFFFDCD0DCADDCD2DCADDCD4DCADDC
D6DCAD0000000000971721B03534400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004FFFFFFFDCD0DCADDCD2DCADDCD4DCADDC
D6DCAD0000000000971F22900A34400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004FFFFFFFDCD0DCADDCD2DCADDCD4DCADDC
D6DCAD0000000000971723602834400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004FFFFFFFDCD0DCADDCD2DCADDCD4DCADDC
D6DCAD0000000000971F24304D34400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004FFFFFFFDCD0DCADDCD2DCADDCD4DCADDC
D6DCAD00000000009727280702DA1761000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004FFFFFFFDCD0DCADDCD2DCADDCD4DCADDC
D6DCAD0000000000972F281502A1761000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004FFFFFFFDCD0DCADDCD2DCADDCD4DCADDC
D6DCAD0000000000972F2822024A1761000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004FFFFFFFDCD0DCADDCD2DCADDCD4DCADDC
D6DCAD00000000009727282F047A1761000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004FFFFFFFDCD0DCADDCD2DCADDCD4DCADDC
D6DCAD0000000000972F283D01CA1761000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004FFFFFFFDCD0DCADDCD2DCADDCD4DCADDC
D6DCAD0000000000972F284A03DA1761000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004FFFFFFFDCD0DCADDCD2DCADDCD4DCADDC
D6DCAD0000000000972F30E016A1760000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004FFFFFFFDCD0DCADDCD2DCADDCD4DCADDC
D6DCAD0000000000972731B03BA1760000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004FFFFFFFDCD0DCADDCD2DCADDCD4DCADDC
D6DCAD0000000000972732900AA1760000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004FFFFFFFDCD0DCADDCD2DCADDCD4DCADDC
D6DCAD0000000000972F33602EA1760000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004FFFFFFFDCD0DCADDCD2DCADDCD4DCADDC
D6DCAD0000000000972734404A1760000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004FFFFFFFDCD0DCADDCD2DCADDCD4DCADDC
D6DCAD00000000009737380702FA1761000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004FFFFFFFDCD0DCADDCD2DCADDCD4DCADDC
D6DCAD00000000009737381502A1761000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004FFFFFFFDCD0DCADDCD2DCADDCD4DCADDC
D6DCAD0000000000973F382202AA1761000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004FFFFFFFDCD0DCADDCD2DCADDCD4DCADDC
D6DCAD0000000000973F38301A1761000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004FFFFFFFDCD0DCADDCD2DCADDCD4DCADDC
D6DCAD00000000009737383D020A1761000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004FFFFFFFDCD0DCADDCD2DCADDCD4DCADDC
D6DCAD0000000000973F384A047A1761000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004FFFFFFFDCD0DCADDCD2DCADDCD4DCADDC
D6DCAD0000000000973740E020A1760000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004FFFFFFFDCD0DCADDCD2DCADDCD4DCADDC
D6DCAD0000000000973741B042A1760000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004FFFFFFFDCD0DCADDCD2DCADDCD4DCADDC
D6DCAD0000000000973F429012A1760000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004FFFFFFFDCD0DCADDCD2DCADDCD4DCADDC
D6DCAD00000000009737436036A1760000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004FFFFFFFDCD0DCADDCD2DCADDCD4DCADDC
D6DCAD0000000000973744409A1760000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004FFFFFFFDCD0DCADDCD2DCADDCD4DCADDC

Any help is greatly appreciated!

Thanks,
Cam


cn...@uncc.edu

unread,
Oct 21, 2016, 4:20:12 PM10/21/16
to Flir Lepton
By the way, this array is a 60 x 164 array because I have not combined two byres into pixel data.

Thanks in advance again!
Cam

Willie N

unread,
Nov 19, 2016, 2:03:10 PM11/19/16
to Flir Lepton
Also attempting to get Lepton data to the myRIO, and also have this problem. Been clocking the SPI and it is taking 4-5ms for my SPI loop to execute on one row of pixels. This means the whole frame takes 240ms minimum, which is much longer than the 37ms window we have to read each frame. This is why it keeps sending synchronization packets. I think the problem is that the myRIO writes the arrays each cycle, and tries to update the computer display every time. This takes a long time, and massively affects the speed of the loop.
If you figure out a way to get it to start working on the myRIO let me know, and I will do likewise.
Best,
Willie

Willie N

unread,
Dec 12, 2016, 10:49:07 AM12/12/16
to Flir Lepton
Was able to successfully code the myRIO to get images from the Lepton, it required heavy use of the myRIO's FPGA. I will probably post the code to GitHub or something like that soon, after I get the green light to publish my code from my Professor. Let me know if you are still interested in getting this to work on a myRIO.

abigail...@brown.edu

unread,
Jul 9, 2018, 10:57:28 AM7/9/18
to Flir Lepton
Hi Willie, I would love to see your labview code/know how you connected it if you don't mind! Feel free to email me rather than posting here. Thanks so much!
Abby
Reply all
Reply to author
Forward
0 new messages