03-01-2014 12:11 AM
how to add values of every while loop using shift registers into an array outside the loop and siplay the array.i am a little new to labview.help from you guys will be appreciated.thanks in advance! 🙂
03-01-2014 12:18 AM
(It is sufficient to keep a short subject line and place the bulk of the question in the body of the message.)
Your question is also not clear at all:
Please attach your code and tell us in detail what parts are giving you problems and how you want it to function.
03-03-2014 12:03 AM
sorry for not writing the question properly.i am a first time user.i need to start the vi and save the time used in every iteration an another array.every time i press the STOP button the ELAPSED TIME need to be saved in an array.thank u 🙂
03-03-2014 12:44 AM - last edited on 10-03-2024 08:35 PM by Content Cleaner
I would recommend that you start with a few basic LabVIEW tutorial. Your code makes very little sense.
03-03-2014 02:01 AM
thanks for the help sir.i have deleted the FOR loop.i will restate my target-i need to make a function such that when i start it,the timer starts recording the time elapsed.as soon as i press the stop button the value recorded should be saved in an array outside the while loop.subsequently the next timer value should start recording the time elapsed till i press the stop timer again.all these consequent time elapsed values should be saved in an array oustide the loop for dispplay.thanks 🙂
03-04-2014 05:30 AM
thanks for the help sir,i am really stuck.i will explain the problem.i have to get the time elapsed after pressing the start button.after stoping the loop,i should get the time elapsed.this time needs to be saved in an array.i should provide a start button again to reset the timer and to once again start the timer and then record the next timer value in the same array below the pevious value.simultaeouslyi have to input some value(millivolts) through an array and concatenate both the arrays in a final array.the problems i am facing is-
1-i am not able to find a loop with START STOP BUTTON.
2-I am just able to get one timer value and that gets loaded to the full array.
3-i am not able to concatenate both the arrays somehow.only the second array is shown in the FINAL ARRAY 3.
i have tried to use shift registers and many array functions,but i am somehow stuck in the looping.please help me.i am really getting too much abusing from my office boss..please help.thanks you 🙂
03-04-2014 11:01 AM - edited 03-04-2014 11:02 AM
You can't just thow functions together, it actually needs to make sense! I strongly recommend you look at some tutorials and example programs, because it seems to me that you have some very basic misunderstanding about dataflow. To add data conditionallly to an array, there is no need to stop the while loop, simply use a case structure to conditionally do that. Where does the millivolt array come from? Is it somehow matched to the final array size of times? Why do you create 2D and 3D arrays??? Why do you think you need to start/stop the loop?
Here is a very simple example that might point you in the right direction. Whenever [reset] is pressed, it resets the timer and adds a [elapsed time/millivolt] pair as a new row to the output array. See it you can modify it for your needs. The [stop] button ends the program run.
03-06-2014 04:44 AM
THANKS A LOT ! i actually want to insert an array named as MILLIVOLT.every elemnt of that array corresponds to one timer value.so,when i start the timer and get the first TIME ELAPSED,the first elemnt of the MILLIVOLT array should get saved to the final array with the corresponding FIRST TIME ELAPSED . suppose if i have imput an 1d millivolt array-(100,200,300,400.)then when i start the timer and stop it,the time elapsed should get saved to the final array along with the input MILLIVOLT ARRAY as a 2D output array having elemnts-{100,2.3s ;200,3.4s ;300,4.5s ;400,2 s} considering the timer values which i am getting is [2.3,3.4,4.5s]
.thanks 🙂