Breakpoint​s in sud - Diadem 9.1

I am using Diadem 9.1 and i was told that one of the nice features of Diadem 9.1 is that i can debug the user dialogs using breakpoints. I am using SUD's to make changes to a dialog file i made using 8.1. But i cannot figure out why F9/breakpoints dont work. Do i need to chnage something in my settings to get it to work? did i misunderstand something here? Thanks!
~sn

Hi Shefalika,
do  you know the KnowledgeBase entry concerning SUD debugging?
Maybe that can help you.
Greetings
Walter

Similar Messages

  • How can I define the position of a SUD dialog in Diadem-AUT​O?

    In the COD dialog-editor you can define the X- and Y-position of every dialog-window. In the SUD dialog-editor these options are not available. Is there any way to specify the position of a SUD dialog?

    Hi Johannes,
    There are two parameters in the dialog properties called "Top" and "Left" that seem to deterine the position of the upper left corner of the dialog on the screen.
    I have only used them in the "Preview" window of the SUD editor, but they seem to work fine.
    Let me know if this is what you were looking for.
    Otmar
    Otmar D. Foehner
    Business Development Manager
    DIAdem and Test Data Management
    National Instruments
    Austin, TX - USA
    "For an optimist the glass is half full, for a pessimist it's half empty, and for an engineer is twice bigger than necessary."

  • Calling SUD files Diadem 11.1

    Did the file format of SUD files change form 11.0 to 11.1?
    In the dialog editor I cant open/use my old SUD files, it just error out with an invalid file format message.
    Seems odd that this would not be backwards compatable.

    Hi Eric,
    That does seem odd. The only fix that I see occurred with SUD files for DIAdem 11.1 is found on the following link:
    http://digital.ni.com/public.nsf/allkb/C172446EB0C1E1B5862575EC004275D0
    I will check the archives some more to see if i can find something more descriptive.
    Perry S.
    Applications Engineer
    National Instruments

  • SUD-Dialog​e aus Diadem 9.1 in Diadem 9.0 benutzen

    Hallo,
    Ich habe einen relativ umfangreichen SUD-Dialog unter Diadem 9.1 erstellt. Nun möchte ich diesen auf einem anderen Rechner mit Diadem 9 benutzen. Das Öffnen scheitert jedoch mit einem Hinweis auf einen inkompatibeles Dateiformat. Gibt es irgendeine Möglichlichkeit, den Dialog zu konvertieren (notfalls auch mittels Hexeditor - die Dateien unterscheiden sich allerdings scheinbar nicht nur in der im Dateiheader angegebenen Diademversion...)
    Vielen Dank für die Hilfe!
    Thomas Vosshagen

    Hello!
    It is a unfulfilled desire to get a ASCII based SUD file format. Using SUD from the verry first moment this would had helped to solve a lot of problems. We are still hoping that it will by changed in the future!
    From this experience we decided to put as less code as possible into the SUD. This goal is reached by putting the code in an external script. Today (> 9.0) this script can be loaded into the SUD with the ScriptInclude command. In older version it was a little bit more complicated. In every event only a call to the external script is coded. Than you can use your prefered editor for programming and you can format the code as you like. Another advantage is that no code is lost when you delete a control. Also teamwork is much easier and source control systems can handle this files much better.
    Matthias
    Matthias Alleweldt
    Project Engineer / Projektingenieur
    Twigeater?  

  • Font properties for SUD objects Diadem 8.1

    Hello. I am trying to format text objects depending of some events. The help shows an example, but it refers to a string with a lot of commas. Can anybody help me to understand the syntax?
    Thank You

    DIAdem 10. has more detailed description of the font
    Description of the Font Property
    The Font object specifies the font, the font style, the font size, and the font attributes of controls in a user dialog box. The Font object consists of the following properties, which you enter in a string, separated by commas.
    Refer to the Microsoft help file on LogFont structure for more information.
    lfHeight
    LongInteger.
    Specifies the font size.
    lfWidth
    LongInteger.
    Reserved (=0).
    lfEscapement
    LongInteger.
    Reserved (=0)
    lfOrientation
    LongInteger.
    Reserved (=0).
    lfWeight
    LongInteger.
    Specifies the width of the font in a value range from 0 to 1000.
    400 creates a normal font, and 700 creates a bold font.
    0 is the standard width.
    lfItalic
    Byte.
    Specifies whether the text appears in italics.
    lFUnderline
    Byte.
    Specifies whether the text appears underscored.
    lfStrikeOut
    Byte.
    Specifies whether the text appears crossed out.
    lfCharSet
    Byte.
    Specifies the font. (0=ANSI_CHARSET, 1=DEFAULT_CHARSET, 2=SYMBOL_CHARSET)
    lfOutPrecision
    Byte.
    Reserved
    lfClipPrecision
    Byte.
    Reserved
    lfQuality
    Byte.
    Reserved
    lfPitchAndFamily
    Byte.
    Reserved.
    lfFaceName
    String.
    Specifies the font.
    Examples
    The following example specifies the font for Text1 as Arial, 10 pt, standard:
    Text1.Font = "-13,0,0,0,400,0,0,0,0,3,2,1,34,Arial"
    The following example specifies the font for Text1 as Windings, 11 pt, bold:
    Text2.Font = "-15,0,0,0,700,1,0,0,2,3,2,1,2,Windings"

  • Is it possible to create a custom display type in DIAdem, for example a speedomete​r type instrument​?

    As an example I have velocity data which shows a vehicle accelerating from rest to 60 km/h and then travelling at a constant speed. As opposed to displaying this data using a 2D axis system is it possible to create a new speedometer display type to display this information? Maybe this display type already exists but I have not come across it yet? I've been using DIAdem for a few days now. The current version I am using is 11.2. It has been suggested in the past that it was possible to display data using numeric displays etc but I can't seem to find the features in v11.2. Thanks for your help in advance.

    Hey Matthew,
    I'm sorry for the [extremely] delayed reply - I have been out of the office (and out of the country) for two weeks with extremely limited email access.  I've attached the files that I used to create the example you saw in the YouTube video embedded above.  Please note that I threw this together pretty quickly for the video, and that it is not "commercial quality."  Use this as a proof-of-concept upon which to elaborate to get started.
    The parts are:
    CAN Synchronization.tdv
    This is the DIAdem VIEW Layout that contains the video, map, 2D axis, and embedded user dialog with ActiveX gauge control.  Think of this as the "user interface" you see in the video.
    Gauge.sud
    This is the scriptable user dialog (SUD) box that is embedded in the VIEW Layout described above.  It contains the ActiveX control which I have affectionately named "MyGauge."
    DisplayCursorCommand.vbs
    This is the short script that is designed to react to the event that fires when the cursor is playing in DIAdem VIEW.  I have commented all 5-ish lines with their functionality.
    In order to register the script so that it fires in reaction to the event when the cursor is playing, I chose to register it as a DIAdem UserCommand (Settings » Options » Extensions » User Commands) and then run the line of code:
    View.Events.onCursorChange = "DisplayCursor"
    You could do this elsewhere within some other script.
    Let me know if you have any questions!
    Derrick S.
    Product Manager
    NI DIAdem
    National Instruments
    Attachments:
    Gauge.zip ‏7 KB

  • Can you change the color of a row in a SUD

    Is it possible to change the color in a selected row in a SUD? I have multiple tables in my SUD were the user can select multiple rows from each table. The problem is that when the user selects rows in another table the last one selected in the previous table is not hi-lighted. I thought that if I change the color of the row when selected the user can see all the selections once he/she goes to another table.
    Thanks,
    AJL

    Hi AJL,
    There is no way to color rows of the table control in a SUDialog. You could consider using the ActiveX container control and using the Microsoft ActiveX table control, which might have that functionality. Note though, that then you need to either ensure that control is always on all your client machines or make provisions for it to be installed/registered.
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

  • How to select, with a SUD DIALOG, the range and the trace data to import from citadel

    Hello,
    I use DIAdem to generate reports from Citadel and I would like to create a script which asks the user to select data and it's corresponding range to import it from citadel. The script should display a dialog box (sud dialog), the user will choose the data and the range. 
    I would like to know if a function exists because up to now, I have not found anything suitable for this.
    In my search i found this (see answer from Brad Turpin) http://forums.ni.com/ni/board/message?board.id=60&message.id=985&requireLogin=False
    But I don't know how to automatize it with sud dialog
    I am looking for information and examples on the subject.
    Thanks

    Hello,
    I changed the data base path, when I run the script an error message appeared (see attached file). When I look the dataportal files, I see that the complet data is charge and not a window (see attached file). have you any idee?
    Attachments:
    error load citadel function.pdf ‏455 KB
    view.pdf ‏279 KB

  • Where should I save my SUD files?

    Hi All,
    I am trying to call a dialog box from a script with this code:
    Dim MyDlg Set MyDlg = SudDlgCreate("Input", "DlgProgress")
    DIAdem displays the error >>Cannot find "dlgProgress.SUD" file<<
    How can I "tell" DIAdem where to look for the file? (inserting the full path instead of "DlgProgress" didn't work)
    Regards,
        FraCh
    Solved!
    Go to Solution.

    Hi FraCh,
    you only need to mention the whole path like:
    Dim MyDlg
    Set MyDlg = SudDlgCreate("Input", "C:\DlgProgress") . But you'll have no permission to write this directory (C.
    If you don't mention any directory or  path DIAdem will use the path which is storage at Userpaths of the settings window. (%CSIDL_COMMON_DOCUMENTS%\National Instruments\DIAdem 2011\Data\)
    In larger applications it's not recommended to use the whole path. You usually use path variables.
    Have you already used the record mode(dt: Aufzeichnungsmodus)? When you start this mode you have to choose one of this three possibilities to go on(->Attachment)
    Try them to see the differences.
    Regards,
    Philipp K.
    AE | NI Germany
    Attachments:
    Record mode.png ‏21 KB

  • Control VIEW cursor with SUD Dialog

    Hello,
    I've developed a little SUD dialog and sticked into the bottom of VIEW. I the TopArea I've "CurveChart2D".
    With the dialog I want to change the cursor type and mode (see code below)
    If I try to change the cursor from this script (the script is inside the embedded VIEW dialog I get the message of DIAdem "error"
    If I try now to change the cursor with the VIEW buttons I get the message "Schwerwiegender Fehler".
    In fact this little script crash DIAdem. I've to restart.
    If I use the Dialog standalone (not as a part of VIEW), everything works fine.
    I believe the problem is, that you can't change something from an ActiveArea (Dialog in Area : 2) inside an InactiveArea (2D Graph in Area :1)
    But this works (graph change something inside the dialog)
    Sub ViewConnector_EventCursorPosChanged(ByRef This) 'Erzeugter Event-Handler
    'todo change the label and value controls for the different cursor and trim methods
     edtXPosVal.Text = View.ActiveSheet.Cursor.X1
     edtYPosVal.Text = View.ActiveSheet.Cursor.Y1
     edtChnPos.Text =  View.ActiveSheet.Cursor.P1
    End Sub
    So the point is,
    1. how is it possible to control VIEW with an embedded SUD dialog?
    2. The script engine shouldn't crash DIAdem. It should just abort or shouldn't be executable.
    Sub Button1_EventClick(ByRef This) 'Erzeugter Event-Handler
    iTrimMethod = rdbtnTrimMethods.Value
    Dim oSheets
    Dim oChart
    oSheets = View.Sheets
    sSheetName = View.ActiveSheet.Name
            Select Case iTrimMethod
                  Case 0
                   MsgBox View.ActiveSheet.Name & " Index= " & View.ActiveSheet.Index
                     Set oChart = View.Sheets(View.ActiveSheet.Name).Areas("Area : 1").DisplayObj
                      View.Sheets(View.ActiveSheet.Name).Cursor.Type = "Crosshair"
                      View.Sheets(View.ActiveSheet.Name).Cursor.Mode = "GraphPoints"
                      View.Refresh
                  Case 1
                  MsgBox View.ActiveSheet.Name & " Index= " & View.ActiveSheet.Index
                      View.ActiveSheet.Areas(1).Active = True
                      View.Sheets(View.ActiveSheet.Name).Cursor.Type = "Band"
                      View.Sheets(View.ActiveSheet.Name).Cursor.Mode = "GraphPoints"
                      View.Refresh
                  Case 2
                  MsgBox View.ActiveSheet.Name & " Index= " & View.ActiveSheet.Index
                      View.ActiveSheet.Areas(1).Active = True
                      View.Sheets(View.ActiveSheet.Name).Cursor.Type = "Crosshair"
                      View.Sheets(View.ActiveSheet.Name).Cursor.Mode = "GraphPoints"
                      View.Refresh
            End Select
    End Sub
    Best regards
    Thomas Plöger
    BASF Catalysts Germany GmbH

    Hallo Mr. Plöger,
    I've double-checked the described behavior. In general, the script code you've developed is OK. But there was a bug in DIAdem that causes the problem. It will be fixed with the DIAdem 2010 service pack that we can provide soon.
    Greetings
    WalterRick

  • DIAdem: How to store the input channel information from the Analysis modules

    Hi,
    I would like to know if there is a way to store the input channel name(s) when executing modules from the Analysis Panel. For example, when I run an FFT on a set of data: x-channel: "[1]/Time" y-channel: "[1]/Voltage" , I would like to be able to store this information as a custom channel property in the output file (ex. "[1]/AutoSpectrum").  
    The only place I've found that contains this "history" information is in the log section of the Analyze Panel. However, I have not been able to figure out how to access the information in the Analysis log programatically through VBS scripting.
    Thanks

    Hi Brad,
    So here's where I'm struggling. My tool is more a set of tools. I have created custom bars that launch the appropriate dialog box for each tool. Let me give you and example of the kind of work flow I that might be used:
    The user loads up a TDM file or imports data using a DataPlugin. Then, they launch my tool for going through each channel and adding custom properties (sensor type, sensor location, etc). Once all properties have been applied to the channels they close that tool. Now they fire up the Smoothing module in ANALYSIS and save the result as a new channel. Next, they launch my tool for computing the Shock Response for that event. When the user has the desired output, they run my plotting SUD. This is where they can select which report template to use and which channels to plot. The selected channel(s) used for plotting doesn't have all of the custom properties that we taged in the original data channels.
    As you can see, the process involves using some of my own custom SUDs where I can keep track of everything but also allows the user to use any of DIAdem's native functions. This is where I am struggling to be able to keep track of the channels used as input. I can "see" the info I need listed in the log section of the ANALYSIS Panel but can't pragmatically access it (the info in the main display window). It would be really handy if this info was automatically stored in the channel properties of each output channel.
    I guess my only option is to (in the plotting SUD) not only ask the user for the channels to plot, but also ask them to select the coresponding original channels that have the custom properties.
    James

  • DIAdem 9.1 access violations

    Hello,
    We are getting about 4 to 5 times a day on this "ACCESS VIOLATION" errors while developing a Crash Analysis software.
    Here are the error logs that we have collected, hope you guys could toss us few possible solutions to this.
    Note that error # 23 was due to freezed data protol after crash.
    21   **** Error registered on 3/9/2008 at 1:31:05 PM [Message file:GLOBERR / Text area:1 / Text number:409]
         Runtime Error while executing command "CHNVCCALC(1,"TempChest","DrivChestVC",229,1.3,"ECE_94")"
         Error type: ACCESS VIOLATION
         Error address: 00000000
         Module name:Ní
    22   **** Error registered on 3/9/2008 at 1:31:06 PM [Message file:GfSSud / Text area:3 / Text number:1]
         The following error occurred
         when executing the dialog box Dlg19
         from the Settings.sud file:
         < Object: 'Button1', Event: 'EventClick', Line: 54 >
         Runtime Error while executing command "CHNVCCALC(1,"TempChest","DrivChestVC",229,1.3,"ECE_94")"
         Error type: ACCESS VIOLATION
         Error address: 00000000
         Module name:Ní
    23   **** Error registered on 3/9/2008 at 1:31:08 PM [Message file:GLOBERR / Text area:1 / Text number:587]
         An invalid text operand   is used within the index operation of the formula
         CHNVALMAX(0):
    24   **** Error registered on 3/9/2008 at 1:31:08 PM [Message file:GfSSud / Text area:3 / Text number:1]
         The following error occurred
         when executing the dialog box Dlg19
         from the Settings.sud file:
         < Object: 'Button27', Event: 'EventClick', Line: 355 >
         The following error occurred
         when executing the dialog box Dlg19
         from the Settings.sud file:
         < Object: 'Button1', Event: 'EventClick', Line: 54 >
         Runtime Error while executing command "CHNVCCALC(1,"TempChest","DrivChestVC",229,1.3,"ECE_94")"
         Error type: ACCESS VIOLATION
         Error address: 00000000
         Module name:Ní
    25   **** Error registered on 3/9/2008 at 1:31:09 PM [Message file:GfSSud / Text area:3 / Text number:1]
         The following error occurred
         when executing the dialog box Menu
         from the Settings.sud file:
         < Object: 'Button2', Event: 'EventClick', Line: 19 >
         The following error occurred
         when executing the dialog box Dlg19
         from the Settings.sud file:
         < Object: 'Button27', Event: 'EventClick', Line: 355 >
         The following error occurred
         when executing the dialog box Dlg19
         from the Settings.sud file:
         < Object: 'Button1', Event: 'EventClick', Line: 54 >
         Runtime Error while executing command "CHNVCCALC(1,"TempChest","DrivChestVC",229,1.3,"ECE_94")"
         Error type: ACCESS VIOLATION
         Error address: 00000000
         Module name:Ní
    **** DIAdem-ENDED on 3/9/2008 at 1:31:35 PM ************************************
    **** DIAdem-STARTED Version: 9.1 on 3/9/2008 at 1:31:47 PM *********************
    and
    37   **** Error registered on 3/9/2008 at 2:04:56 PM [Message file:GLOBERR / Text area:1 / Text number:409]
         Runtime Error while executing command "CHNVCCALC(1,"TempChest","DrivChestVC",229,1.3,"ECE_94")"
         Error type: ACCESS VIOLATION
         Error address: 00084218
         Module nameTP801ASU.dll
    38   **** Error registered on 3/9/2008 at 2:04:56 PM [Message file:GfSSud / Text area:3 / Text number:1]
         The following error occurred
         when executing the dialog box Dlg19
         from the Settings.sud file:
         < Object: 'Button1', Event: 'EventClick', Line: 62 >
         Runtime Error while executing command "CHNVCCALC(1,"TempChest","DrivChestVC",229,1.3,"ECE_94")"
         Error type: ACCESS VIOLATION
         Error address: 00084218
         Module nameTP801ASU.dll
    and
    14   **** Error registered on 3/9/2008 at 11:46:31 AM [Message file:GLOBERR / Text area:1 / Text number:409]
         Runtime Error while executing command "CHNMOVE(121,5,201)"
         Error type: ACCESS VIOLATION
         Error address: 0008426D
         Module nameTP801ASU.dll
    15   **** Error registered on 3/9/2008 at 11:46:32 AM [Message file:GfSSud / Text area:3 / Text number:1]
         The following error occurred
         when executing the dialog box OutputStatus
         from the Settings.sud file:
         <(Declarations), Line 142>
         Runtime Error while executing command "CHNMOVE(121,5,201)"
         Error type: ACCESS VIOLATION
         Error address: 0008426D
         Module nameTP801ASU.dll
    16   **** Error registered on 3/9/2008 at 11:46:32 AM [Message file:GfSSud / Text area:3 / Text number:1]
         The following error occurred
         when executing the dialog box Menu
         from the Settings.sud file:
         < Object: 'Button7', Event: 'EventClick', Line: 4 >
         The following error occurred
         when executing the dialog box OutputStatus
         from the Settings.sud file:
         <(Declarations), Line 142>
         Runtime Error while executing command "CHNMOVE(121,5,201)"
         Error type: ACCESS VIOLATION
         Error address: 0008426D
         Module nameTP801ASU.dll
    **** DIAdem-ENDED on 3/9/2008 at 11:48:01 AM ***********************************

    Hello,
    I've checked the error database but I've found nothing in relation with ChnVCCalc.
    Could you provide me the data set you used to run the Crash function?
    Could you also send me the desktop.ddd located in the DIAdem program folder?
    Christian

  • Password protection in DIAdem

    Dear Guys,
           I did lot of scripts for analysis. I need the password protection of all scripts & SUD's. Please kindly help me for this problem..

    Can you please send me with screen shots... The following steps i done..
    1. In Diadem script i selected Encrypt VBS/SUD file
    2. Select a script & sud
    3. For script VBS Converted into VBC and SUD into SUC
    What should i have do after that ??  Currently i am using the version of 10.2.
    Please do me favour.

  • Diadem abwärts kompatibel ??? + neue Fkt. in 10.2.

    Ich wollte einmal Fragen, ob man Daten bei Diadem lesen kann, die mit einer neueren Version gespeichert werden ??
    Also ich bearbeite alles mit 10.2 und will mir die Daten dann in 10.1 nochmal anschauen und bearbeiten ??
    Geht sowas ?? ... Wenns Labview wäre weiß ich ja das es NIHCT geht .... aber vielleicht ist ja Diadem besser darauf eingestellt ?
    Und Was ist So weltbewegendes in 10.2 was es in 10.1 nicht gab ??
    thx schon einmal

    Hi Eddie,
    Bei Daten-Dateien, nehme ich an, dass Sie TDM oder TDMS Dateien meinen.  Alle andere Dateien in DIAdem (*.TDR, *.TDV, *.VBS, *.SUD, usw.) sind von Version zu Version nicht unbedingt abwaertzkompatibel, aber bis jetzt sind die *.TDM und *.TDMS Dateien wohl immer kompatibel gewesen.  Meines Wissens koennen alle *.TDM Dateien, die DIAdem 10.2 schreiben kann, problemlos in DIAdem 9.0 gelesen werden.
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

  • How to open some *.dat (tdm) files by script via sud?

    Hello,
    i want to make for a script a GUI (sud) were i can mark some dat- or tdm-files in a directory (press ctrl) and give the names with path back to the script.
    May be as vector or matrix.
    It is possible or is there any DIAdem-function which includes this?
    Regards

    Hi Traderhans,
    I think what you need is the command FileDlgShow. Please refer to the help for more information. If this command is not sufficient you can also use the command FileNameGet. But this command is much more complicated.
    Hope this helps.
    Winfried

Maybe you are looking for

  • Error in Help Cells - Auxiliary cells moved to help cells in load

    Hi Guru, While checking the report to execute, the workbook was getting locked and is giving blank screen as output. So I changed the optimisation property to 9 and run the regeneration. Then after some time regenartion, I am getting an error popping

  • TS3147 my wireless printer will not keep a connection with my computer

    my wireless printer keeps dinging at me and I am unable to print without reconnecting the printer every time I need to print something.  My printers network test report and network configuration page are showing no problems.  Any advice??

  • BAPI_MOSRVAPS_CREATESNPORDER - time zone issue

    Hi We are creating SNP Plan Orders in APO using BAPI_MOSRVAPS_CREATESNPORDER. New Order getting created using the BAPI has time stamp 23:59:59 which is taken from UTC time zone. Is there any way we can create/load SNP Plan Order with time different t

  • Read only schema issues

    Hello everyone I have created a read only schema on oracle Apps and have granted select privileges to all synonyms and views and execute privileges to packages. The read only schema is unable to access some synonyms and views below is the example: co

  • Can you edit an email attachment using google documents or somethiing similar

    I was wondering if anyone knows if there is a way to edit an email document attachment. Is there something similar to google documents.