06-04-2012 12:56 PM
Solved! Go to Solution.
06-04-2012 01:16 PM - edited 06-04-2012 01:18 PM
sorry..some VI a would like you to check
06-04-2012 02:29 PM
You're still missing the amplifier subVI, and is "SignalPreprocessing" the top-level VI? If so, do you intend to run it only once? It would be easier if you include your entire project as a zip archive.
The first thing I see is that you could make better use of single-cycle timed loops. Replace the for loops with single-cycle timed loops, and remove the inner timed loops. Add a little bit of logic to make the single-cycle loop act like a for loop (one comparison for the stop condition, use index array instead of auto-indexing). See if that helps. Also, I would use the standard math functions unless you have a specific reason to use the high-throughput versions. Also, do you need all the feedback nodes?
06-05-2012 07:38 AM
Hello Charlie,
I can recommend you to go through CompactRIO Developer's Guide. I think it is the best way how to start for people who are not familiar with cRIO and FPGA development. You can trust me if I am telling you that you can find there more than basics
06-05-2012 08:07 AM
Be careful with the data types. With FXP representation you have to be careful about the configuration of each FXP number.
06-05-2012 11:14 AM - edited 06-05-2012 11:22 AM
Hello guis,
thanks for your answers. Yesterday I was unable to upload whole my project for bad Internet connection and today it is not always possible.
My project is here: http://leteckaposta.cz/270346853
to dan_u : thank you for comment. I have some problem with understanding FXP math.
As you mentioned there was a mistake with FXP 64/11 ( I thought I had repaired it before ).
to nathand : I do not understand the idea about making SCTL acting like for loop. Do you have some example ?
I thought that Hight Throuthput math is better then standard numeric math. If not please explain.
I need feedback node to store previous value to make derivation and integration where I need to now the difference. I do not know better way how to do it. Do you ?
I will try to think about all your ideas and try to find more about it with uncle google. Then I gonna try to repaire and ask again if necessary.
If you can chack whole project..especially Filtering and Preprocessing part and If you think something else is wrong, please tell me.
06-05-2012 02:41 PM
Please upload the project, as a zip file, directly to this forum. I, at least, will not download files from unknown foreign sites.
charlie87 wrote:
to nathand : I do not understand the idea about making SCTL acting like for loop. Do you have some example ?
I thought that Hight Throuthput math is better then standard numeric math. If not please explain.
I need feedback node to store previous value to make derivation and integration where I need to now the difference. I do not know better way how to do it. Do you ?
The feedback nodes are fine for that purpose, I was just trying to understand whether the need for them was mathematical or if you were trying to use them for some sort of pipelining.
The high throughput math is not necessarily better than the standard numeric math. Please see the help for "Using the High Throughput Math Functions." From that document: "National Instruments recommends that you use the LabVIEW Numeric functions unless you need the benefits that the High Throughput Math functions provide."
Here's how you can implement a for loop as a single-cycle timed loop. This won't compile on my machine, though - you need to resolve the issues with excessively-wide fixed-point values first, as dan_u noted.
06-05-2012 04:03 PM
thank you very much. You all help me more than you can imagine 🙂 As I said I am a new player in FPGA and exploring new things every day 😄 😄 😄
06-05-2012 04:22 PM - edited 06-05-2012 04:29 PM
However, I have one more question about the SCTL used instead of for loop in the shown case.
Could you explain the role of shift register in the sample ?
06-05-2012 04:28 PM
Can you provide a link to where you found that recommendation? I think you may be taking it somewhat out of context. In any case, the array operations are difficult to avoid there.