Hi,
i have a problem.
I saved data from VISA read into a file in a for-loop and then read the data from the same file and display them into a waveform chart, in another for loop.
I want the two operations to operate synchronously, as in, once a string is being read by VISA read, the other for-loop will plot it and plot the point in the waveform chart.
I tried to wire the waveform chart directly to the array of strings collected, but it can only be displayed only after all the strings have been collected using spreadsheet into an array. However, this is not I want. I want to read one string, plot one point, and this process is continued until i get a whole waveform.
I read from the above reply that "Every time that you get new data, send off a n
otifier with the data to the other loop. You can then collect the data and place it into an array every second (using the tick counter to determine that)."
is that suitable for my case?
i am not using a while loop, which is being assumed. So, i am not sure how i should do? should i use the event-driven to make my case work?
student