VIEW in diadem 9.1

Hi
Is it possible to use VIEW programatically in the old .aut language in diadem 9.1, I've tried using record mode but this just seems to record the .vbs code which won't work as an aut file. There is nothing in the help files regarding this.
I would normally convert to .vbs but this is a minor change to an old autosequence and I want to avoid having to go through a lengthy re-validation process if convert everything to vbs.
Any help appreciated
Nick

Hello Nick!
As I know it is not possible to script the object orientated new VIEW interface out of AUT scripts.
A solution to your problem might be to insert the VBS Code inline in your AUT. This is possible with the command 'ScriptStatement'.
E.g. ScriptStatement('MsgBox(now)') will show a VBS MessageBox with the current time. You can insert your VIEW manipulating script line by line in your AUT with this command. Not really good to read but I think it will work.
Hint: The strings have to be enclosed in ' because in the VBS code you must use "!
Matthias
Matthias Alleweldt
Project Engineer / Projektingenieur
Twigeater?  

Similar Messages

  • Dynamic View with DIAdem 2011

    Hello everyone,
    so my new task as a trainee has just come up... I need to use the View section in quite a smart way. Let's assume I have a 2D-Curve displaying pressure (Y-axis) function of temperature (X-axis). Let's also assume I have n channels showing say Current (Y-Axis) function of Voltage (X-axis), each at a given (different) pressure.
    While I use the "hand" button and click on the first graph (Pressure = f (Temperature) graph) anywhere, which gives me a given temperature and thus a given pressure, I would like to see the corresponding graph (the Current = g (Voltage) one) below right away. I am also asked that the corresponding graph should immediately refresh to match the new value of pressure if I move the mouse.
    Is it possible to do this ? How ? Can I find any tutorial dealing with this out there ?
    Thanks in advance !

    Hi Andreas,
    Sorry for the huge delay and thanks a lot for responding !
    I have tried to get the channels you asked but I never could get enough attention from my boss, besides apparently there would be an issue about making public private documents of the company blabla... So I'm afraid I cannot help you, you who are trying to help me...
    So I have found that Refresh method in the doc, but I do not know how to get things started in VIEW, nor do I know how to save the coordinates of the point I click on and use them to display another graph.
    Would it be possible to see one basic script displaying graphs in VIEW (because when I try to do such things with Enable Recording Mode, there are bugs, error messages and nothing happens in the end, or only a new area but no new graph displayed) for DIAdem 2011 ? That way I could get some basis to work from, commands, and the impression that things are getting better. . .

  • Plotting data in diadem via LV

    Is it possible to plot data in diadem by specifying the x and y axes values from LV at runtime? I am looking for a solution something like:
    1. Load data into Diadem(give the command from LV).
    2. Load layout into diadem(give the command from LV).
    3. Specify the channels to be plotted from LV.
    4. Plot data
    5. Stop
    Thanks,
    Yash
    Solved!
    Go to Solution.

    Hi Yash,
    Please can you have a look at this piece of example code, I think it does what you have requested.
    You will need to build up a customised array to insert the different channels. You will also need to know the name of your axis system in DIAdem, you can find this by hovering over the axis system in the report view of DIAdem and looking in the status bar at the bottom left of the application window.
    Regards
    JamesC
    NIUK and Ireland
    It only takes a second to rate an answer

  • Z-Cursor aus View-Kontu​r mit Script auslesen

    Hallo.
    Ich würde gerne den Z-Cursor-Wert (VIEW => Kontur / Diadem 2010) auslesen.
    Die X und Y Werte kann ich mit VIEW.Active.Sheet.Curser.X1 bzw Y1 auslesen. Für den Z Wert ist diese Funktion nicht verfügbar
    Gibt es eine Lösung?
    Danke für die Hilfe

    Hallo Jost1,
    einen solchen Cursor gibt es auch nicht. Der Z-Wert wird mit der Funktion ChVXYZValue bestimmt. Weitere Infos findest du in der Hilfe.
    Gruß
    Walter

  • View coordinate​s window is off-screen

    I have an unconventional dual-monitor setup while my laptop is docked. It's resulted in the coordinates window being located far off-screen. I've moved the secondary monitor around the desktop area to try and locate the window to move it back within view, but have not had success. I've undocked to try and locate the window but have not been successful. I've reset DIadem but this has not brought the window back in view. DIadem isn't very handy for my use without that window.
    Solved!
    Go to Solution.

    The first solution in the link goes through how to locate a window that is registered as a window with windows explorer, thus giving it a bar on the taskbar. Unfortunately the coordinate window isn't, so I can't locate it with the "move" action.
    On the second solution, I should have been specific that I'm using windows XP, and a corporate image at that. I don't find appdata in my user folder (for XP that's C:\Documents and Settings\User\.appdata\). Where's the config file in XP?
    EDIT: I actually just tried to use only the keyboard shortcuts immediately after enabling the coordinate window. DIadem's main window loses focus, so I figured perhaps the coordinate window is given focus. So, I hit Alt+space and the dialog box appears on my screen nearest to the location of the coordinate window. From there I can select "move" with the mouse and by moving the mouse after that, the coordinate window appears underneath it. Fixed!
    Howtogeek:
    Note: For keyboard savvy people, you can just alt-tab to the window, use Alt+Space, then M, then Arrow key, and then move your mouse.

  • TDMS digital data

    Hello,
    we are developing datalogging system for our customer and we need to save analog and digital data to TDMS file. There is probably no problem with analog data streaming. But on the other side writing digital data inside TDMS file looks like a problem... So we tried to use background streaming (DAQmx Logging) where size of file is acceptable (8xDI(1B) x 512samples + TDMS header). But we need to log analog and digital data with timestamp channel so we can not use DAQmx background streaming instead we must program our application. When we used TDMS write for digital waveform, digital data result in TDMS viewer and DIAdem is OK but file size is (8x1B for each digital channel). We also look at TDMS by DAQmx logging where internal file structure (attached file  tdms_tsdata.png) contains parameter NI_DigitalLine which is bit in data byte index (i think). Another parameter is NI_DataType = 5 (UInt8). From these two params I deduced some ideas and do some tests with unsatysfying results. Only one of tested ways was to write direct UInt8 of DI (entire port) to ensure file size ... 8xDI=1B x samples. However those TDMS can not be correctly read by TDMS Viewer as structure of digital inputs but only as number.
    Is there any chance to write manually and effectively digital data in TDMS file (like DAQmx logging)?
    Thank you in advance for any hint.
    Michal.
    Attachments:
    tdms_tsdata.png ‏40 KB

    Hi kel072,
    You are right, you can not write just as one  byte and expect Diadem, or TDMS file viewer to interpret directly as 8 lines boolean data.
    This is an expected behavior because there is no information about the number of lines.
    Therefore, I have two suggestions:
    1. You can build your custom TDMS file viewer (pack your data as u8 bit, transfer it into the TDMS file and later build your own VI that will read from TDMS, reconstruct the data in boolean 1D array and display the data). In this scenario, Diadem will still not be able to interpret them as 1 bit data.
    2. Write your data to a binary file in the format you specify. Then you can read it directly in LV or any other programming language that supports that format, or you can build a data plugin for Diadem that will allow it to interpret the data in the particular way you want ( and use it for your application). This method requires the most programming but gives you the most flexibility (packing data, display in Diadem, display in LabVIEW etc).
    Check the links bellow for more information on the data plugin:
    1. http://www.ni.com/white-paper/13803/en/
    2. http://www.ni.com/example/29822/en/

  • Advanced TDMS, Set Channel Information

    Hello,
    I have a problem with scaling in and TDMS File. I´ll try to explain what i want to do.
    I work on a system that streams data from 2 PXIe 5122 via peer to peer streaming to 2 NI 7962R FPGA FlexRIO cards. After that I want to stream my measurement data from the FPGA cards to an NI 8260 hdd array via the advanced TDMS API using the "TDMS Advanced Asynchronous Write (Data Ref).vi"
    This works fine, but i have a big problem trying to scale my raw data. When using the "TDMS Set Channel Information.vi" I can decide to split my measurement data into two groups, Digitizer 1 and 2 with 2 channels each digitizer. When doing so, the API sets 2 Properties to the groups called "NI_Scale[0]_Scale_Type == AdvancedAPI" and "NI_Scaling_Status==scaled". When the API Sets these 2 properties i don´t have any chance to scale my raw data directly with the "TDMS Create Scaling Information.vi" because this vi sets the scaling information to each channel. The properties were set, but TDMS viewer and also DIADEM ignores these properties cause the group properties from the Advanced API were set.
    When taking all 4 channels from both digitizers into one group, the group properties "NI_Scale[0]_Scale_Type == AdvancedAPI" and "NI_Scaling_Status==scaled" won´t be set to the group. But i can´t write the data directly to the TDMS file over the data reference, because i have 2 data references from each digitizer, and the API has a problem deciding what sample belongs to which channel.
    So the only thing that worked is to create one group and set channel informations for 2 measurement channels, then get the data reference that contains these two channels and write them to TDMS, then set the other two channels informations and get the second data reference and write them to TDMS.
    But the problem is, that i have to do that in a loop. When setting always the channel informations before getting the datareference and write the raw values to TDMS file this slows the performance of my system.
    I think the right way shoul be that i can use 2 groups for each digitizer and set channel informations for each without getting these two group properties into my TDMS file. Anyone has an idea how i can solve the problem?

    Thanks for your reply,
    i know that the scaling vi works when using one group. It also works when using 2 groups. But you put the scaling infos for the whole group. when using an digitizer you can´t do this because every channel has a little bit different scaling values. so u must set the scaling values to each channel. this is done properly, but when using 2 groups tdms viewer and diadem ignore these scaling values because the Groups have the properties as stated in my first post.
    Here is a little screenshot of what im trying to do.
    Attachments:
    TDMS Advanced.png ‏53 KB

  • Time Frequency Analysis

    Is there any way to perform time-frequency analysis(spectrogram ) in DIAdem? Ideally, I got like to play the waveform in one section of the VIEWER and other section of the VIEWER would have the spectrogram of the data within the band cursor.
    Does anyone think this is possible in DIAdem?

    Hi Neuropotential,
    What you're asking for is possible, but it's not an out of the box feature.  We have a posted example application for doing joint time frequency analysis in REPORT at
    http://zone.ni.com/devzone/cda/tut/p/id/3549
    You could set the same sort of thing up in VIEW with the new 3D Contour Area available in VIEW in DIAdem 11.1.  I'm curious how you'd like the interactive part to work in VIEW and also how large your data sets are.
    Brad Turping
    DIAdem Product Support Engineer
    National Instruments

  • TDMS Error -2503 at Open TDMS

    Hi everyone,
    I'm facing a wierd error since yesterday.
    I'm recording data on a PXI using the Embedded Data Logger Custom Device (VeriStand), before yesterday,
    I was able to retrieve the TDMS File (.tdms file only, not the .tdms_index file) and open the file using TDMS File Viewer or DiaDEM.
    But since yesterday, TDMS File Viewer returns me the following -2503 error (see picture below):
    I noticed that this error occures only the first time I try to open the file, and that a .tdms_index file is created at the same time. Then, the next time I try to open the .tdms file, it works quite nice.
    Does anyone knows about this error, and what's the reason ?
    Thanks ...

    Looks like the TDMS file might be corrupted and when the index file is generated, it will only read the sane part next time. Could you attach the TDMS file here, so that we can see if it can be recovered. If the file is too large to be put here you could upload it to  ftp://ftp.ni.com/incoming.

  • Using the TDM Header Writer VI's

    I'm using the TDM Header Writer VI's to create a .TDM file for a binary file created during a test.  However, when I attempt to view the .TDM file in DIAdem, none of the data or header info is present.  The icon for the .TDM file in the navigation view of DIAdem is a "?".  If I open the .TDM file in notepad, the header information is all there.  I am not receiving any errors from the header writer VI's during execution either.   When I probe the refnum created by Create TDM File.vi, I get an invalid refnum, but everything still seems to work.   Any help would be appreciated.

    Hey John,
    Have you tried creating a TDM with the examples that came with those VIs and opening the new TDM in DIAdem? If so then what is the result? Here's the link again just in case. There are some examples in the Examples folder and the TdmHW Examples.llb
    Regards
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~

  • Csv round off error

    I am getting all the values under the channel "calc G level" in the attached csv file as round off value when loaded in Table view in diadem.
    Kindly help to solve this issue.
    Solved!
    Go to Solution.
    Attachments:
    bHard Brake.csv ‏54 KB

    The CSV loader tries to guess the datatype of you column. So in your case it looks at the first lines and guesses int.
    in newer DIAdem versions this was changed to guess double instead of int.
    For DIadem 11.1 dataplugin ight be a solution.
    If you have a lot of those files you can use a dataplugin to access them. In them you can switch the channel type to double and it would work out. If I remember right 11.1 already had the dataplugin wizard that makes generating dataplugins easy.
    Hope this helps a little
    Andreas

  • Report von Videos

    Hallo
    Ist es möglich bei Diadem 10.2 einen Report mit Videos zu erstellen?
    Besten Dank
    Max

    Hallo Max,
    in DIAdem-VIEW ist es möglich Videosignale mit Messdaten zu synchronisieren; d. h. man kann mit dem Cursor auf den Messdaten entlang fahren und sich die zugehörigen Videosequenzen ansehen. Hierzu ist ein interaktives Arbeiten mit Daten und Videos notwendig und als eine der Funktionen von  DIAdem-VIEW realisiert. (Weitere Infos siehe DIAdem Hilfe.)
    Hat man einen markanten Messpunkt oder  Videosequenz gefunden, kann der aktuelle Inhalt von DIAdem-VIEW nach DIAdem-REPORT übertragen werden (Befehlsikone "Transfer nach REPOER").
    Ich hoffe das hilft weiter.
    Gruß
    Walter

  • How do I change the numerical format of the axis in Diadem view and report

    Is there a method for changing the format of the AXIS labels to show more significant digits? Second, I can't find how to display the menu shown in NI help document 3FIEI5LE. When I right click to (select properties) I get a different menu labeled (set proerties for display).
    Thanks,
    Doug

    Hi Doug,
    There is no way to configure the display of the X axis in VIEW-- this is for a quick look at or an interactive visual inspection of your data. For a fully configurable report creation environment you should switch to REPORT. Note that the last button on the top icon bar in VIEW with the tipstrip "Transfer to REPORT" will transfer what you currently have displayed in VIEW into a new REPORT layout.
    In REPORT if you double-click on the numbers below the X axis, a "2D - Numeric display" configuration dialog will appear which has the field "Format:" in it. Type in "d.dddd" ("d,dddd" in Europe) or as many d's after the decimal character as you want to display. There are also other formatting options for scientific display, etc.
    I honestly didn't understand your second question about the help dialog-- what version of DIAdem are you using?
    Regards,
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

  • How to create a shortcut menu in the VIEW panel of Diadem

    Hi everyone,
    Is it possible to create your own shortcut menu in the VIEW Panel of Diadem? 

    Hi Ovidius,
    What do you mean by "shortcut" menu?  You can add a custom menu to the top of any DIAdem panel and fill it with whatever menu items you want.  You can also add/customize any icons at the top or the left of any DIAdem panel and program them to do what you want.  There is additionally limited support in DIAdem 2010 and prior versions for adding custom context menus to VIEW areas.  We are looking into expanding this support for DIAdem 2011.
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

  • Is there a way to view timestamps in DIAdem with a higher precision than 100 microseconds?

    I understand DIAdem has limitations on viewing timestamps due to DateTime values being defined as a double value and that this results in 100 us resolution.  Is there any way to get around this?  I am logging time critical data with timestamps from an IEEE 1588 clock source and it is necessary to have higher resolution.  Perhaps I could convert timestamp to a double before logging but then would have to convert it back in Diadem somehow...
    Thanks,
    Ben

    As you said, DIAdem can only display up to 4 decimal positions on a timestamp. Timestamps in DIAdem are recorded as the number of seconds since 01/01/0000 00:00:00.0000. To achieve a higher precision, it would be necessary to use a relative timestamp. Many timestamps are defined from different references anyway, so it might be possible to import the timestamps as numeric values to maintain their precision. Converting the timestamp prior to importing into DIAdem seems like a viable method of working around the precision limit.
    Steven

Maybe you are looking for

  • Windows 7, no VoiceFX Changer?

    Windows 7, no VoiceFX Changer?I no longer have the tab to change my voice with the voice effects... cant find it anywhere in the control panel. Is this unique, or are many of you experiencing this as well? Other than that, I have the well documented

  • Power Mac G4 hard drive a goner?

    Hello, My Power Mac G4 "died" last Sunday. Initially, the it wouldn't start up at all. So, after reading some suggestions on the net (I have a Mac Book pro), I changed the battery. It booted but the question mark folder came on. I couldn't even open

  • Need help in finding the number of occurrences of a pattern.

    Hi All, I need help in finding the number of occurrences of a pattern in a table's column's data. Consider sample data - one row's column from a table: "S-S-S-A-S-S-P-S-S-B-S-A-P-S-S-C" My requirement is: I should get the count of S's which are immed

  • Error message "EDI: Field SEGNAM in data record is default"

    Hi all, I am facing issue in Idoc creation. I am getting error message saying 'EDI: Field SEGNAM in data record is default' and so Idoc is not getting created. Can anybody tell me how to resolve this. I checked in debugging mode and found that this e

  • Regarding program RVINVB00

    Hi, Has anyone worked on uploading Document Type - Contracts using the SAP Standard program RVINVB00. Can anyone tell me how to go about it.