03-27-2022 01:45 AM
Dear All,
Could you please help me to plot data on the XY Graph by selection option from menu ring.I run the code and logged the data into table.Instead of having four different XY graph on screen, i want to select the graph of my choice once the program execution done.
Thank you
03-27-2022 02:21 AM
Sorry, we cannot help you by just looking at a picture of the front panel. How is the data arranged? What are the item/value pairs in the ring?
If all data is in a 2D array, you can use the ring output to index into the array (either rows or columns) pick any two and create a complex array wired to the xy graph terminal.
There are millions of other ways the data could be held and we cannot help without significantly more details. Why not attach the VI?
03-27-2022 09:48 AM
Dear altenbach,
I attached my VI.After the execution of Program, i want to plot graph of my interest by choosing from menu ring.
Thank you
03-27-2022 10:54 AM - edited 03-27-2022 10:54 AM
03-27-2022 12:20 PM
Most of your code seems flawed, so I took the liberty to clean it up a bit (Of course I understand that your data probably comes from elsewhere and this is just a simulation. Still it might give you some ideas).
03-29-2022 08:42 AM - edited 03-29-2022 08:49 AM
Dear Gerd,
sorry for my late reply and thank you very much for your suggestions.
Responses of your two questions
According to your code, first we have to select the axis then waveform will be generated according to the selected axis.My question is, after the execution of program,how to get different plots by selecting the different axis i.e. at a same time we can get 12 plots by choosing from ring menu e.g R v/s I, R v/s V, R v/s R, R v/s P and same for others. I have attached a video of what i want to do
best regards,
Salman
03-29-2022 08:47 AM
Dear altenbach,
sorry for late reply,
first of all thank you for your suggestions.
best regards,
Salman
03-29-2022 09:26 AM
Hi Salman,
@Salman206 wrote:
My question is, after the execution of program,how to get different plots by selecting the different axis i.e. at a same time we can get 12 plots by choosing from ring menu e.g R v/s I, R v/s V, R v/s R, R v/s P and same for others.
AFTER THE EXECUTION of your VI that VI will not do anything for you!
When you want to handle the data again and again then your code still needs to be executed!
(Would you want to still edit your Word document after you closed MSWord executable?)
03-29-2022 10:18 AM
Hii,
Ideally what you are saying is the correct only.But i am getting different plots after executing only once the program ( this is from KI6220 software provided by Keithley).I have attached video for your reference.it is happening in that software. so ,out of curiosity, i posted here,how it is happening.
So i thought weather , we can link the table content to the xy plot.As we have all the data in the table.so can we connect this table data to plot by ring menu,
best regards,
Salman
03-29-2022 11:06 AM
In your Video, the VI always executes and I really don't understand what you want us to look at.
So this is the Keithley demo, not your code? Is this just an executable or do you have access to the diagram? Are you trying to duplicate that functionality?
@Salman206 wrote:
So i thought weather , we can link the table content to the xy plot.As we have all the data in the table.so can we connect this table data to plot by ring menu,
The table and the plot are both indicators and receive the same data from a source upstream. Why would you want data from an formatted indicator instead of a wire??? Maybe I completely misunderstand what you are trying to do.