LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

parametic test loops

Solved!
Go to solution
I am trying to design a parametric test in which three input variables are changing for a giving output. 
 
The inputs are Duty Cycle (10% to 90% with a selectable increment +/- 0.25%), Range (0 to 90 miles +/- 0.25 miles), and Slot (0 to 10 +/- 1 slot). 
The output will be displayed as throughput in Mbs (typically 0 to 40 Mega bits per second).
 
I think I remember seeing how to auto increment nested for loops in order to build an array that goes through all the possible combinations. 
 
Then it is just a matter of incrementing through the array to test the configured parameters.
But for the life of me I can’t remember how to neatly do this:)
 
Any help would be appreciated. 
 
Regards,
 
-SS


0 Kudos
Message 1 of 21
(3,913 Views)
Try this just rough draft.
 
Of course you can eliminate the 1D arrays and do everything inside the loops.
Message 2 of 21
(3,900 Views)
Altenbach,
 
Kind of off topic but I thought this may interest you:
 
I do not have Labview 8.5 at home but I was trying to see if I could reply to you with my Motorola Q and ask for a picture of the code.  Long story but my 8.5 laptop is on the fritz.  It turns out I only have an 8.2 version at home who's activation has expired on my home PC.
 
It turns out no matter how I login or format my screen on the Q phone for some reason I am unable to format my screen such that the reply field can be selected.  In other words I can login to the NI forums and view just fine but not reply:)  I gave up on my mobile reply and went to seeing if I could get my home PC to show your code.
 
So I decided to try the online evaluation to look at the code you sent on my home PC.  I downloaded the online 3min version.  And sadly there seemed to be no way to open a file on my machine...it runs in a true evaluation mode on a remote LabVIEW session:)
 
Could you send me a snap shot if you are still up so I can view what I suspect is a nifty little solution on my Q phone.
 
Or I can wait till I get into work tomorrow.
 
Thanks for the reply,
 
-SS


0 Kudos
Message 3 of 21
(3,879 Views)
Sure:
 


Message Edited by altenbach on 07-01-2008 10:31 PM
Message 4 of 21
(3,875 Views)

Very nice I saw it last night and thank you.  Believe it or not I had the loops figured out but could not figure out how to bring in the main array.  I didn't post it out of fear of being ridiculed 🙂 

I get it now very powerful stuff.  On a side note are you familiar with FPGA implementations in say VHDL.  I was just curious how the underlying software would translate to parallel hardware such as multi-core implemented with auto indexing.  I'm getting ready for when LabVIEW becomes hardware independent and can be used to develop code for an Altera FPGA;

I mean it's still sequential code right?

Regards,

-SS



Message 5 of 21
(3,857 Views)
 
 

ShotSimon wrote:
I didn't post it out of fear of being ridiculed 🙂 
No ridicule here! It is usually considered a distinct honor to be mentioned in the Rube Goldberg thread. 😄
 

ShotSimon wrote:
I mean it's still sequential code right?
LabVIEW has always been highly parallel and if parts of the code don't have any data depedency they can run at the same time if the hardware allows. (see g.e. this old article). Of course with FPGA, this is pushed to further extremes and LabVIEW is naturally suited for FPGA programming.
 
I have not played with any FPGA because we don't do anything that really needs it. Also NI FPGA is very I/O centric by design (probably a good thing) while my personal interest would be more in pure FPGA computations.
 
0 Kudos
Message 6 of 21
(3,847 Views)
Altenbach,
 
How do you make this so that I can expand things in the future?  Any advice?  -SS


0 Kudos
Message 7 of 21
(3,787 Views)


ShotSimon wrote:
How do you make this so that I can expand things in the future?  Any advice?  -SS

Sorry, I haven't had any coffee yet, but...
  1. What do you mean by "this"?
  2. What "things" do you want to expand in the future?
 
0 Kudos
Message 8 of 21
(3,783 Views)

"This" is referring to the entire parametric test, and "things" are the things I am parametrically testing.  If I would like to say add a parameter to test in the future then I need to create another loop.  I'm trying to avoid adding loops in the future.  -SS



Message Edited by ShotSimon on 07-14-2008 11:24 AM


0 Kudos
Message 9 of 21
(3,781 Views)

I must be doing something wrong.  I went and added another loop to create another parametric parameter ~150,000 x 4 parameters.  And my program went from 6secs to way to longSmiley Very Happy

 

What went wrong and what is the correct way to do something like this?  -SS 

 

 

Message Edited by ShotSimon on 10-02-2008 02:57 PM


Download All
0 Kudos
Message 10 of 21
(3,634 Views)