08-27-2009 02:59 PM
hi..
i want to display the value of last element in a 1d dynamic array.../ i mean ..if i stop the vi run, i need to display the last element in the array..how can i do this?
and is there any way to use a button to start the vi...instead of using the Run button on the vi front panel??
Solved! Go to Solution.
08-27-2009 03:19 PM
Index array!. Use array size to determine the size of your array, subtract 1, feed that in the index terminal of Index Array.
You have to start the VI running somehow. It could be set to run when opened. Assuming what you want is a means to type values into a front panel, hit a GO button that you created on the front panel, then have the real part of the VI execute. You could use an event structure. Or put a while loop at the beginning with a small wait statement in side that basically just polls the GO button. When that button is pressed, the true boolean stops the while loop and allows the program to proceed to the main body of your program.
08-27-2009 03:51 PM
hi..i actually figured it out how to display the last element....
n thnks for u help...
I am facing a problem in formatting the x-axis( time stamp) in the waveform chart. I am using this to display my generated waveform with the time stamp...... I want to have the system time as the x- axis ...when ever i format the x-axis with the system date format...it is showing some randon date and year...
how can i get the real time on the x-axis??
08-27-2009 04:15 PM