04-01-2006 11:00 AM
Hello. I work on a project, whicht helps me to analyse graphs. I want to export values to only one spreadsheet For each measurement the values will be exported to an 1D array. The analysis of the graph works by moving cursor lines. Now what I want to do is to add 1D array of each measurement to an 2D array step by step by pressing a button, so that I’m able to get a table of values of the whole graph. With every button click, a new row (n+1) with the new values of the measurement schould be created in the 2d array. The first row schould have index 0. If there is no measurement anymore, the content of trhe 2D array should be stored to a text file.
Please help me out!!!
Thx.
04-01-2006 11:33 AM
04-03-2006 03:38 AM
hello. thank you. it work's.
04-03-2006 11:15 AM
04-03-2006 11:33 AM
@0123 wrote:
is there any other way (without event structure) to solve this problem?
Of course there is! 🙂 Early versions of LabVIEW did not even have an events tructure and we were still able to do anything we wanted. 😉
Could you attach your code? There are many possibilities, and it really depends on the rest of the program to decide what's best.
04-03-2006 02:02 PM
04-03-2006 04:26 PM
Most likely, your modification is stuck at the event structure. Try to add an empty timeout event so the event structure does not block the rest of the code.
To get e.g. the subarray between two cursors, you could do something like in the attached modification (of course it is a bit inefficient, because it does it over and over again while the loop is running, even if the cursors do not change).
What is your LabVIEW version? LabVIEW 8.0 has events that are triggered by movements of the graph cursors. Quite useful!
04-04-2006 02:46 AM
hello. thank you. of course, I've already picked out the values between the 2 cursor lines. these valures are important for me because calculations are operated on them. The results of the calculations should be combined to an 1D array and the added to an 2D array step by step (by clicking a button). So, I hope you understand my problem. The event structure does't work. I don't know why but the vi always stops working without signaling an error. I work with LabVIEW 7.1 but the final vi should be implemented on a system with LabVIEW 6.0. Please send me some other examples without using event structures but with the same functionality. It's really important for me to finish this project. Please help me!
Thank you!