04-11-2012 09:36 PM
Hello, I am having an issue with my cRIO hyrbid setup. I am currently using Labview 2010, cRIO 9074, x1 NI 9234, and x3 NI 9512.
Summary:
What you are trying to accomplish?
-I have built two VIs. One that acquired data from an NI 9234. This vi is the one that uses the FPGA due to 51.2kHz sampling frequency needs. The other is to control the motion and encoder reading of three NI 9512s (scan mode). They both work fine separately (on the same FPGA bitfile), but when I copy and paste the VI for the NI 9234 into the VI for the x3 9512s and click run, the motors fault out.
What steps are necessary to reproduce any problems?
click run on the attached (prepared program_2VItesting.vi).
What steps, if any, you have taken to solve any problems and the results of your attempts
-I have confirmed that if i run the two VIs separately, they work fine. The very first time i combine the two VIs the 9512s work for a second (i.e. the motors move a little). Then it faults. I then used distribution manager to clear the fault and run it again (note: there is no fault code, i just clear the red light on the module by changing to configuration mode then active mode). Every time after the first time the motors do not move at all.
- I have confirmed that i did correctly setup the hybrid mode based on this kB:
http://digital.ni.com/public.nsf/allkb/0DB7FEF37C26AF85862575C400531690
I have attached the vi of the two VIs combined together(prepare program_2VITesting.vi). The top half is the copied and pasted FPGA program (as noted by the open VI reference) and the bottom is the scan mode (as noted by the timed loop). I also attached the seperate VIs (JustDAQ and prepared program) that can both function right now by justing pressing run.
Am i just missing something simple here?
Thanks,
Troy
Solved! Go to Solution.
04-11-2012 09:50 PM
I could only attached three things before. here is a screen shot of my project file
-Troy
04-12-2012 04:34 PM
Hello Troy_B,
Thanks for the post, here is a useful KB describing how to use Scan Engine and FPGA simultaneously. Please take a look at this documentation and make sure you have everything configured correctly for Hybrid Mode.
http://digital.ni.com/public.nsf/allkb/0DB7FEF37C26AF85862575C400531690
Note:
Here is an example of what your final project should look like with Mod1 in Scan Mode and Mod2 in FPGA Mode:
Hope this helps!
Paul-B
04-12-2012 04:40 PM
Hey Paul,
Can you take a second to reread my first post. I sited the same Kb you did and confirmed that I already did that. Also, I attached a picture of my project file so you could see for yourself it's configured correctly. Or at least I think. Thanks for your help on this.
-Troy
04-13-2012 04:40 PM
Hello Troy_B,
It seems like you have create a service request for this issue and are currently working with an Applications Engineer. Please let me know if this is incorrect. We will continue to work on this issue using that service request.
Paul-B
04-24-2012 06:13 PM
So it turns out you just have to put the cRIO into configuration mode when you setup your open your FPGA ref and reset it. Then change it to active mode (all programmatically) before you do anything else in your program (i.e. at the very very beginning). A picture is attached.
-Troy
04-25-2012 06:23 PM
Hello Troy_B,
You are correct in your description of the cRIO configuration. I have been working with David and in SoftMotion 2010 changing the cRIO from Configuration Mode to Active Mode resets the motion hardware in the cRIO. This has changed in 2011, where you now need to include the System Configuration VIs to reset the hardware. The attached image shows what this should look like. If you use the Initialize VI from System Configuration Palette, the Motion System is not among the supported experts in 2010 but is in 2011. Also, as you mentioned, you will want to put this at the very beginning of your code before anything else executes. Sorry for the KB repost, hope this helps.
How Do I Use the 951x Series Motion Modules in a Hybrid Configuration on my CompactRIO?
http://digital.ni.com/public.nsf/allkb/12287236ED86B789862576630059572C
Paul-B