06-05-2019 02:23 PM
I'd like to use my XTable as a way for the user to quickly access plots. Can I use EventCellClick to feed information to a 2D Plot in the GUI?
Use case - Table has multiple channels/values, when the user clicks on a row, I'd like the 2D plot to display the relevant channels for that row.
Any examples on how to achieve this?
Thanks,
06-05-2019 02:59 PM
I jumped the gun in asking this question, it does work. However, now I have a different problem, can you adjust the scale of the 2D Plot in the SUD? Or would I have to trim the plotted channels?
06-06-2019 05:46 PM
Hey Tamer,
I haven't found any functions that would adjust the scale of the 2D plot in the SUD. Are you using the Curve2DPreview control on a SUDialog to make that graph?
I was able to find this from a way back, my colleague Brad mentioned for that 2D plot: I don't see any method to specify the start and stop values of the X or Y axes for that control. I only see the linear vs. logarithmic choice for each axis.
https://forums.ni.com/t5/DIAdem/Help-creating-a-Graph-using-SUD/td-p/3743601
Thus, I think trimming the plotted channels would be easiest. What do you think?
06-06-2019 05:58 PM
Ha, I guess I totally forgot I've asked about this before. This is a different application I'm working on, but I can do the trimming like I did last time.
Thanks for that.