11-28-2013 02:39 AM
How do I use the channels selected in the combobox or chncombobox inside the TDR report.
How do I assign the channels selected in the combobox or chncombobox to a new variable name.
Difference between combobox and chncombobox.
Regards,
X. Ignatius
Solved! Go to Solution.
12-02-2013 02:31 PM
Hi Igni,
The chncombobox automatically shows all the channels that happen to be in the Data Portal at the moment.
The combobox shows only the texts that you intentionally add to it.
Please clarify the rest of your question,
Brad Turpin
DIAdem Product Support Engineer
National Instruments
12-03-2013 11:40 PM
Dear Bradin,
Is it possible to draw a 2 d XY graph by selecting X channel in one chncombobox and Y channel in another chncombobox. Could you explain with an example script.
Regards,
X. Ignatius
12-03-2013 11:40 PM
Dear Bradin,
Is it possible to draw a 2 d XY graph by selecting X channel in one chncombobox and Y channel in another chncombobox. Could you explain with an example script.
Regards,
X. Ignatius
12-04-2013 08:57 AM
Hi X. Ignatius,
Yes, that can work just fine. You'll need a button on the SUDialog to cause VBScript code to run that reads the X and Y channel paths from the ChnComboBoxes and assigns them to the curve configuration of a particular graph in REPORT.
If you'll send me your *.sud and *.tdr files, I can provide the code to make that happen.
Are you using DIAdem 2012 or an earlier version? The functions to do this changed in DIAdem 2012.
Brad Turpin
DIAdem Product Support Engineer
National Instruments
01-07-2014 08:56 PM
Dear Brad,
Pls find the attached files containing .sud, .tdr and .vbs.
Request you to modify to suit my requirement.
Thanks and Regards,
X. Ignatius
01-07-2014 08:58 PM
Dear Brad,
Attachment missed in previous text.
Regards,
X. Ignatius
01-15-2014 05:29 PM
Hi Igni,
These changes in your SUDialog appear to do the trick on my end.
Sub Button1_EventClick(ByRef This) 'Created Event Handler Call PicDelete() Call PicLoad(CurrentScriptPath & "XY.tdr") PicDefByIdent = 1 ' Name-Oriented channel referencing Call GRAPHObjOpen("2DAxis1") Call GRAPHObjOpen("2DObj1_Curve1") D2CChnXName = XSelection.Text D2CChnYName = YSelection.Text Call GRAPHObjClose("2DObj1_Curve1") Call GRAPHObjClose("2DAxis1") Call PicUpdate() Dialog.Cancel() End Sub
Brad Turpin
DIAdem Product Support Engineer
National Instruments
01-15-2014 09:54 PM
Thank you very much Brad.
It works.
Regards,
X. Ignatius