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.
12-13-2011 02:12 PM
@Pooja-S wrote:
Can someone explain me how this program works. I got the code from NI. There are too many arrays, i cannot understand what its going on?
Now that is getting closer to a question that can be answered here. I'll help you out a bit.
Start by taking ascreen shot of the part of the diagram you do not understand. Save it as a jpg or png so you can include it with your question.
Start a new thread and include the screen shot with your question (the tree icon above the edit window will help you post images).
Tell us what you think you are looking at and exactly what part does not make sense.
Also try watch the code run in execution highlighting mode (turn on the light bulb in your diagram and watch it in slow motion).
Let people answer your question and ask follow-up question if the new question is related to the thread.
Take the repies you get, think about them and try out the suggestions you are given.
Be patient with us since most of have real jobs and can't always reply quickly.
@Pooja-S wrote:
Can someone explain me how this program works. I got the code from NI. There are too many arrays, i cannot understand what its going on?
About 35 years ago I fixed radar while in the Navy. I was frustrated by a problem that I was failing to fix. I used a phrase similar to what you wrote telling my Cheif that "I can't..." and he abruptly cut me off and said;
"Ben, you will never fix it if you tell yourself you can't. Sure you may not have fixed it yet and it looks bleak but it is not your decision if you can fix it or not but rather it is my responcibilty. You are working on and you will continue to work on until I tell you can not fix it."
Chief Pety Officer Wooton circa 1976.
Give the new "focused" question a go and don't tell yourself you can't"
Still trying to help,
Ben
We don't give up easy
12-13-2011 03:48 PM
As a start you should realize that there are not TOO many arrays. There are just TWO arrays. One is the voltage data, the other is the current data. Follow the array paths through with the context help on so you can be reminded what each block is doing to the array as it passes through.
12-14-2011 04:41 AM
Can somebody explain me this part of the code, why there is index array, threshold 1D array, array size, Round toward + infinity and array subset. Is it necessary to use all these functions.
12-14-2011 07:39 AM
@Pooja-S wrote:
Can somebody explain me this part of the code, why there is index array, threshold 1D array, array size, Round toward + infinity and array subset. Is it necessary to use all these functions.
I'll get you started.
THe data from the DAQ assistants is returned as a blue wire (that I seldom use and my buddies claim are memory pigs) that is converted to an array of doubles. The index array selects the channel of interest (since the DAQ could be acquiring from other channels as well). So that gets us an array of data.
The current data is passed to a threshold function looking for the index where the value goes above zero. Since the output of the Threshold function is a fractional index, the round toward function converts the index to an interger that is used to slect what part of the incoming data stream is selected in the array subset.
I suggest you use the built-in help to complete the narative I started above.
Post your best interpretation and let us review it.
Still trying to hlep you learn LV,
Ben
12-14-2011 09:02 AM
thanks Ben. How my program newsolar.vi related to newbie.vi
12-14-2011 12:17 PM - edited 12-14-2011 12:18 PM
I wish to know if there is some formula to calculate diode voltage and diode saturation current highlighted in green and blue respectively. I have use constants. I want to use the formula in the code instead of using constants directly.