Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

sbrio-9631 noob question

Since I have no idea what your FPGA VI does, I can't comment on whether that will work or not, but I believe this is the simplest way to control an LED and still be practical(RT broken bc FPGA not compiled):

sbrioDO.jpg

 

Also,  check with a DMM or voltmeter in case someone fried your LED 😛

Rob K
Measurements Mechanical Engineer (C-Series, USB X-Series)
National Instruments
CompactRIO Developers Guide
CompactRIO Out of the Box Video
0 Kudos
Message 11 of 16
(2,225 Views)

Hi Kyle81,

 

Another good resource that has been recently added to the web is the CompactRIO Developer's Guide. The developer's guide is currently focused on helping you build a good architecture for "control" applications, but there is a lot of information in there, and a good bit could be applied to a data acquisition application. The core of the guide is based on the CompactRIO Scan Mode, which isn't available on Single-Board RIO, but there is a section on how to mimic the scan mode with LabVIEW FPGA programming for Single-Board RIO.

 

I hope this can serve as your giant tome (printed, I think the guide is about 300 pages) and get you up and running, and successful with Single-Board RIO.

 

Out of curiosity, what were the reasons you (or your professor) decided to use Single-Board RIO for the application rather than CompactRIO?   Generally speaking, CompactRIO is better suited for the lab/research, with its higher end processors and FPGAs, more available RAM/storage, rugged enclosure,  direct screw terminal connectivity, and modular design with 8 slots of available I/O.

 

Cheers,

Spex
National Instruments

To the pessimist, the glass is half empty; to the optimist, the glass is half full; to the engineer, the glass is twice as big as it needs to be has a 2x safety factor...
0 Kudos
Message 12 of 16
(2,201 Views)

test2.JPG

Okay... So I got the LED to turn on and off... I'm not even gonna go into some of what could easily be described as noob mistakes. 

 

The above VI though, I got a little brain freeze to figure out how to make the output go from 1 to 0, while holding the 1 for so long, and holding the 0 for so long.... I know its gotta be easy...

 

 

Also, in response as to why my professor went with a sbRIO board instead of a cRIO board, is actually unbeknownst to me... I think he got a smokin' hot deal from NI on these boards. Maybe he didn't even know about the capabilities of the cRIO boards, or was just so enamored by the FPGA chip. Maybe I'll ask him when he comes back from China.

 

 

Thanks again for all your help.

 

-Kyle

0 Kudos
Message 13 of 16
(2,179 Views)

Kyle,

 

The timing functions you have in the structure are loop timers. Considering you have no loops, this is probably a poor choice of a timing function.  Look into the Wait function, and set it up to use either ticks, us, or ms.  I would definitely suggest looking at the above links that I and others have posted in order for you to get started, as many of these are basic questions that are covered early in our online tutorials, and will help you get up and running as fast as possible!

Rob K
Measurements Mechanical Engineer (C-Series, USB X-Series)
National Instruments
CompactRIO Developers Guide
CompactRIO Out of the Box Video
0 Kudos
Message 14 of 16
(2,158 Views)

 

Hi.

 

I need some examples for sbRIO 9631. If u work on this robot , may be u can help us... we couldn't find anything on the internet. And we are new for the labVIEW.   Plesae help us 🙂

0 Kudos
Message 15 of 16
(1,540 Views)

Hi Roboticca,

 

Thanks for using the NI Discussion Forums.  Because this thread is old and your questions are not related to the original thread, I would recommend you create a new thread when you have a question.  In general, you will get more views and chances for someone to answer your question.

 

It sounds like you are using the NI Robotics Starter Kit ("DaNI") which is based on the sbRIO-9631 single-board computer.

 

There are a lot of good tutorials online for getting started with that kit.  I found this set after searching ni.com for "dani".

 

Getting Started with the LabVIEW Robotics Starter Kit

 

Getting Started with NI LabVIEW Robotics

 

Top Five Robotics Training Resources

 

I hope this helps you out.

 

Regards,

 

 

Spex
National Instruments

To the pessimist, the glass is half empty; to the optimist, the glass is half full; to the engineer, the glass is twice as big as it needs to be has a 2x safety factor...
0 Kudos
Message 16 of 16
(1,532 Views)