01-19-2014 03:44 AM
Dear All,
I am quite new to LabView and sorry for asking simple questions.
In my program, a detector (mounted on a translational stage) voltage output is being read as the stage is moved by constant stepsize (voltage is recorded at every step). According to the experimental conditions the voltage output trend may vary. No matter what the trend is, I should select a specific point (voltage) among all after the scan is finished and command the stage controller to move back to the corresponding position. In order to monitor the output, I have used X-Y graph to show the data point-by-point as the stage moves forward. As far as I know, there is no Method to Activate the Cursor on X-Y Graphs so I can select that specific (X,Y) (position,voltage)! Since the whole process is being done in a While Loop, I wonder if I should take out (after the loop is ended) the arrays containing all the data and plot them in for instance a Waveform Graph outside the loop so I can select the proper point OR there is a clever way of doing this?
Thank you for your time,
Kind Regards,
Arman
Solved! Go to Solution.
01-19-2014 05:00 AM
It is possible to add/remove cursors from a XY graph. I attached a small example. To get it as simple as possible I made a cursor myself (from XY graph cursor legend) and store the structure as a constant. Then it is just a simple write to the property (cursor list). If you browse the property list you see that there is also a way to fetch X,Y values.
01-19-2014 06:19 PM
Dear Jarek,
Thank you for your very helpful response. As you mentioned, you have made the cursor structure and saved it as an array constant (if I'm right?), however, I wonder if there is another faster way of making the cursor structure?
Many Thanks,
Arman
01-20-2014 01:16 PM
Hello Arman
Here you can check a couple of helpful links.
Click XY Graph and Add/Update Cursor
However, you can get your own examples by going to ni.com/examples. Using the correct key words, you are going to find examples.
Regards
Frank R.
01-23-2014 01:12 AM
Dear Frank,
I greatly appreciate your help and thanks for the links which came handy to me.
Kind Regards,
Arman