From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
10-23-2014 02:35 AM
Hi,
I'm a newbie to labview fpga and sbRIO. I am trying to acquire analog data by varying a potentiometer. I have done this using NI USB 6008, but how do you acquire using sbRIO? What code do I need to write in the fpga target and RT target? Is the actual code (code used while using NI 6008) written on the RT target?
Should I just add the analog input nodes on the fpga target?
Help!
10-23-2014 03:46 AM - edited 10-23-2014 03:46 AM
Hi kdm,
when you get access to a new device you should read its manual at first. After done so you need to make sure you installed all the needed dirvers for your hardware. Then you start by studying the examples coming with the hardware drivers for your device.
Did you do all those steps?
Did you understand all the examples provided by NI for your sbRIO?
10-23-2014 04:07 AM
I'll throw in two links:
http://www.ni.com/singleboard/setup/
This should be the starting point for anybody new to an sbRIO.
http://www.ni.com/white-paper/11199/en/
Even more specifically, this paper covers both Scan Interface (*spits*) and FPGA programming, and is well worth a read if you're truly a fish out of water.
10-23-2014 04:13 AM
Hi GerdW,
I am using sbRIO 9641. Yes, I read the manual and I have installed all the needed drivers.
Can you please send me the links to example codes for sbRIO?
I found this http://www.ni.com/example/31180/en/ , but before going through this, I would like to study a simpler example.
10-23-2014 04:26 AM
10-23-2014 07:28 AM
Why does this vi indicate values when I've nothing connected to AI0 (It is supposed display 0)?
I have attached the code.
10-23-2014 07:30 AM
10-23-2014 08:07 AM
Especially when dealing with RIO, you need to include your entire project. Zip up all of your code (project file, VIs, controls, etc.) and post the zip file. Single VIs are next to meaningless in this situation since we are dealing with entire systems now.
10-24-2014 12:16 AM
Here is the project.
10-24-2014 05:22 AM
Hi Gerd,
When I run it, the AI0 value keeps increasing. Don't know why. Isn't it supposed to read zero?
And when I connect a potentiometer (+ve to AI0 and gnd to AGND), it reads 0 and does not vary as I turn it.
Can anyone give a clear explanation?