LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Prototyping kit to read analog voltage signals

I've recently began a project using our newly acquired robot prototyping kit with sbRIO-9631 control. I've purchased a IR sensor array to use with the robot, but can't seem to figure out how to incorperate it into my block diagram. What must I do to display the signals?

0 Kudos
Message 1 of 9
(3,606 Views)

broncoeng,

 

Hey, sounds like you will have an exciting time coming up.  Check out the two links below.  Specifically, check out the examples mentioned in the second link relating to Sensor Drivers and you should be on your way.

 

Getting Started Guide for the Robotics Prototyping Kit

https://www.ni.com/en/support/documentation/supplemental/17/archived--ni-robotics-hardware-setup-wiz...

 

Best Regards,

ChrisLS

National Instruments
Applications Engineer

Visit ni.com/gettingstarted for step-by-step help in setting up your system.
0 Kudos
Message 2 of 9
(3,581 Views)

broncoeng,

 

What is the type output provided by the IR sensor array?  For example, does it connect to the sbRIO-9631 with serial, digital IO, analog IO, or some other type of connection?  This will be a factor in whether you will need to interact with the sensor from the FPGA or Real-Time processor.  Any other details you can give on the sensor array and what you ultimately plan to do with it would be helpful.

 

-Chris M

0 Kudos
Message 3 of 9
(3,558 Views)

The there are 8 analog outputs of 0-5 V, so I figured I would be connecting to the sbRIO with the analog I/O. My ultimate plan is make a simple line following robot, then expand with the object avoiding capabilities of the prototyping kit. Any suggestions will be helpful!

0 Kudos
Message 4 of 9
(3,518 Views)

Bueller? Haha:)

0 Kudos
Message 5 of 9
(3,488 Views)

In order to pull your data into LabVIEW you will have to drag your FPGA I/O items onto the block diagram.  These will be located in your LabVIEW project under your SBRIO.

 

Are you working from some previous code or will you be developing you application from the beginning?

 

Chris LS

 

 

 

 

National Instruments
Applications Engineer

Visit ni.com/gettingstarted for step-by-step help in setting up your system.
0 Kudos
Message 6 of 9
(3,472 Views)

Thanks for your help Chris!

 

I'm going to read through that link and see what I can't figure out. I've pulled the FPGA I/O (Mod A, AI0) to the block diagram before but didn't know what to do with them exactly... the link looks like it will help.

 

I'm trying and find previous code, or similar code, to get the robot to simply follow a line...with no luck. I was going to try to use the "roaming" VI that comes with the kit as a starting point but got stuck when I tried to use my new sensors (why I'm here:) ). Do you know of any example VI's that will show simple block diagrams of acquiring the analog signals?

 

 

0 Kudos
Message 7 of 9
(3,443 Views)

If you're just warming up on cRIO there is a great bank of information here: http://www.ni.com/gettingstarted/ The beginning your application section has a great bank of information. The man caveat with sbRIO is that much of the hardware resources appear under the sbRIO target in your project. Also, look at the compactRIO examples in LabVIEW's example finder. You wont be using a Real Time VI, but the FPGA code should look largely the same. I hope this helps!

Verne D. // Software R&D // National Instruments
0 Kudos
Message 8 of 9
(3,398 Views)

duplicate.

Verne D. // Software R&D // National Instruments
0 Kudos
Message 9 of 9
(3,397 Views)