DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

XTable - EventCellClick - 2D Plot?

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,

0 Kudos
Message 1 of 4
(2,502 Views)

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?

0 Kudos
Message 2 of 4
(2,491 Views)

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?

0 Kudos
Message 3 of 4
(2,460 Views)

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.

0 Kudos
Message 4 of 4
(2,458 Views)