07-31-2009 03:01 PM - last edited on 07-31-2009 04:19 PM by Christian_L
09-30-2009 12:34 PM
I am in need of a simple tank control reference example throguh which I can do some modifications and use the same to one of my application. I had tried it in the developer zone, but it is compatible with LabVIEW 2009. But I do have LabVIEW, RT and FPGA of 8.5 version. So, in this regard I request you to help me out by providing the example with 8.5 version compatible.
Thanks and Regards
10-01-2009 09:58 AM - edited 10-01-2009 10:00 AM
Would you like
converted to 8.5? I assume you want the Tank Control Reference Example but I have to ask because there is a separate forum for that http://forums.ni.com/ni/board/message?board.id=Mac
I can convert most of the example for you but some reference libraries won't work. Specifically, the new CompactRIO IO Engine (CIE) reference library is based on LabVIEW 2009 features. You will have to create your own version of this which will simply be writing an FPGA program that writes cRIO module data to the front panel of the FPGA program. In your FPGA Host application, you will read these front panel controls and write them into CVT tags. This is for reading data. Writing data will be the same in reverse.
Let me know which application you need and I will do my best to convert it.
10-01-2009 12:37 PM
Yes your assumption is true, I do require the Tank control reference example, In fact I have also posted the same in the forum http://forums.ni.com/ni/board/message?board.id=Mac
So, I request yoy to please help me out. And also let me know what are the remaining things (like CIE library) I need to develop. So that I can parallely work it out and make it ready before you send me the remaining example.
Thanks and Regards
12-10-2009 12:17 PM
I purchased LabVIEW Professional but not the FPGA module because I was told I could use NI scan engine. Can I use the Simple Machine Control Reference Application as a starting point? If so, what do I need to do to get it to work on my hardware?
2 - NI9421(DI)
1 - NI9476(DO)
1 - NI9203(AI)
1 - NI9265(AO)
12-10-2009 12:42 PM
You are correct in that you don't need the LabVIEW FPGA Module to get IO from your CompactRIO or to use the example (after some changes made).
The simple machine control reference architecture is an example of how to implement a local machine control application using the series of tutorials and reference libraries we call the machine control architecture. The base webpage is A Reference Architecture for Local Machine Control and each webpage contains an image at the buttom that can hlep you navigate to the other webpages.
That said, you could use this example as a base program if your application is similar. Is this the case or are you looking for more of a template framework that has the core pieces but none of the application specific sections? I will help with either but knowing which direction to start down would be helpful.
12-10-2009 01:13 PM
I have been reading the A Reference Architecture for Local Machine Control it's excelent.
I guess I'm looking a template framework that has the core pieces without the application specific sections.
12-10-2009 02:19 PM
I have taken a longer look at the Simple Machine Control Reference Application, is it possible to get it to run on my previously stated hardware?
The application has many components required for my current project.
12-10-2009 04:40 PM
So, to make it work for your hardware, there are a few things I would do.
Add your CompactRIO to the Project.
Add, configure and deploy your CompactRIO IO Modules.
Move the folder labeled cRIO under your CompactRIO.
Delete the old CompactRIO.
Update Machine Controller.vi HMI IP Address to match your development machine.
Open Initialize cRIO.vi and delete the Open FPGA VI Reference.
Open cRIO IO Scan Loop.vi and delete the Convert IO Scan Data Int 32 to DBL.vi
In Top Level HMI.vi, change the Target IP Address and HMI IP Address to reflect your system.
In Initial HMI.vi, update the configuration file paths to match your local machine.
TCE Configuration File:
Use the attached configuration file as a base (rename to .xml).
Update any CIE tags to match your IO.
Copy both configuration files into the correct location on the CompactRIO.
I did this and the code worked on my setup.
Since, the IO is now real instead of simulated, the program works but will not run a profile unless you force the IO through the scan engine and distributed system manager to act as the program requires. For more information on how to do this, refer to http://zone.ni.com/reference/en-XX/help/372572B-01
I hope this helps!
12-11-2009 07:08 AM
I also had to create a 'Data' directory on the cRIO because the 'Profile Control Loop.vi' dumps a data file into the directory. I could had just edited the path in the VI.
I had most of it but the step by step instructions just confirms everything.
What did you have to change in the xml file?