09-26-2009 12:08 AM
hiii
i want the data out of while loop after each iteration..
it means that as we know while loop gives the data out only when it is stopped ..
but i want the data out of while loop even if it is not stopped that is after each iteration..
somebody please help me ..
thanks..
09-26-2009 12:13 AM
Hi sahil,
You should post your code. Newaz you can refer this vi.
Best of luck
09-26-2009 01:04 AM
hii Gaurav
you are right ..it works..
but for me it does not work..
i want to use only one while loop..
that is getting data after each iteration out of while loop without another while loop..
thanks for getting into the matter..
09-26-2009 01:25 AM
Hi sahil,
Can you explain why do you want value after each iteration? What is your application? Do you want them to process on the data after execution of while loop gets over?
Can you post your vi as well?
09-26-2009 01:55 AM
hii Gaurav..
i am working on cDAQ..
actually i am to get the data from while loop..
i m attaching here with the vi in which i am facing the problem..
and i want my data to be out of the loop....also so that i may process further..
thanks.
09-26-2009 02:16 AM
Hi sahil,
It is not clear from your vi what you want to do.I did not see DAQ vi in your code. Can you explain a bit more on what exactly should happen outside while loop.
Where are you using ur DAQ vi, inside or outside while loop?
If you want to send or get data from your hardware why not to do it in while loop?
And say if you are getting data from hardware and after execution,you want to plot or print data in report you shoud "ENABLE AUTOINDEXING" on while loop.This will give you all data outside of your while loop. See this example.
09-26-2009 02:52 AM
09-26-2009 03:12 AM
Hi Yarmouth,
If you place your event structure outside while loop ,it will not work...
09-26-2009 04:57 AM
hii Gaurav
all is well with ENABLE AUTOINDEXING..
but still now i hav the problem
i am attaching the vi ....
in this vi, i am after conversion to numeric data i am getting only one value (the very first one only)...
i am not getting all the values stored in spreadsheet string one by one....
thanks.. now i think it is just a matter of some only...
09-26-2009 05:11 AM
Hi sahil,
why do you convert to string and then back to number? Why not wire that array directly?
Well, "string to number" just converts the firsat found number. That's how it works. Point.
When you need all numbers you either have to use a loop or "spreadsheet string to array" to reverse your number to string conversion before...
Has nobody told you before NOT to compare floats for equality? You also don't use LabVIEW primitives like "+1" or "=0". And you don't initialize your feedback node, so your vi will only run correctly for the first execution...