LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW interface to CMUcam5 PIXY camera

Hello,

Im curious to know if you had success with this project? I am trying to make an autonomous RC car that will follow strips of colored tape for a school project. I was planning on using the PIXY camera to teach it the tape to follow, but was wondering if I would be able to interface with LabView and the MyRIO? Anything advice helps.

 

Thanks

0 Kudos
Message 11 of 17
(1,260 Views)

Hi pcurls23,

 

I don't know a lot about PIXY cameras, but the myRIO should be able to interface with any data assuming it isn't too fast, or too many channels, which shouldn't be an issue. The myRIO 1900 User Guide and Specifications shows that the max sample rate is 500 kS/s, which seems fine.


My only concern would be, would the myRIO somehow be on the car itself (battery-power?) or would it wirelessly transmit its data?

 

Let me know!

Timothy D.
Applications Engineering
National Instruments
0 Kudos
Message 12 of 17
(1,249 Views)

Hi Timothy,

 

The myRIO would be onboard the car along with the battery.

 

Thanks for reaching out!

 

Pat

0 Kudos
Message 13 of 17
(1,246 Views)

You shouldn't have any troubles using the myRIO and LabVIEW, then! I can't speak to the specific project, but if you have SSP, you can always reach out to us and make a service request if you have specific question.

 

Best,

Timothy D.
Applications Engineering
National Instruments
0 Kudos
Message 14 of 17
(1,237 Views)

Hi Tim, hopefully my question wasn’t already addressed in some other thread, if so point the way. We are a FRC team that recently obtained a Pixy2 cam. We are beginners with labview and we’re having a hard time finding any sample code. Any ideas?


 

0 Kudos
Message 15 of 17
(1,118 Views)

I have used the Arduino to tie the PIXY2 to the RIO com port. I followed the directions from the PIXY website/wiki pages and it all worked. Of course you have to write the LabVIEW VISA read com port to get the data then parse it out as you need it. I suggest only using the last line of data from each read as that would be the most recent. Configure your com port to ignore end of character so you pull all the data on every read - it spits out a lot that's good - high res.

PIXY website and at the bottom is the Wiki link. https://pixycam.com/pixy2/

 

0 Kudos
Message 16 of 17
(1,110 Views)

Charmed Labs released an FRC LabVIEW driver for Pixy2: https://github.com/charmedlabs/Pixy2LabVIEW

0 Kudos
Message 17 of 17
(1,090 Views)