TDMS file viewer used in a dialog

I would like to use TDMS file viewer inside a dialog VI. The problem occurs if I change VI properties -  Window Appearance - Window Behaviour to MODAL (It should be modal).
When I click the button and run TDMS file viewer both windows (my VI and TDMS file viewer) become modal and "lock" each other: I cannot control any of them.
Is there a possibility to use TDMS file viewer as a dialog ?
Thanks in advance,
Ljubo.
Solved!
Go to Solution.
Attachments:
Dialog_diagram.jpg ‏23 KB

Hi James,
I tried your VI. It works unless I change VI's properties. I would like it to be a dialog VI. Why ? This VI should be a small part of an application which is used to analyze a set of TDMS files. When this VI is called no other window should get focus. User should have a possibility to check briefly all the properties (acquired signals are not so important in that case). Using TDMS File Viewer is the most simple way to do it because it can read TDMS files with different set of properties and because it show all the proerties in a nice "tree structered" diagram.
So I set VI's properties as it is mentioned in my post: Window Appeareance = Dialog. 
In that case VI window and TDMS File Viewer window are modal and they "lock" each other.
Your VI is attached (property "Window Appearance" is set to "Dialog").
Regards, 
Ljubo.
Attachments:
TDMS Viewer.vi ‏13 KB

Similar Messages

  • How do I select more then one channel to view in tdms file viewer graph panel

    I have a TDMS file that I can view with the labview 2013 TDMS file viewer and I can select one signal out of 15 signals to view on the graph panel. however I would like be able to look at 2 or 3 signals
    on the same graph but can't seem to be able to select more then one signal at a time. Is there a way to select more then one to view?  

    I've modified the TDMS viewer in the past to allow selecting multple channels.  It's a little bit of a pain because the tree control in the viewer only allows you to select one item.  You have to edit the tree to allow multiple items.  Now your selection is an array instead of a scalar.  This means the rest of the code has to be updated, and the references to the tree in subVIs need to be updated.  Not impossible but it takes some time.  Alternativly open it in Excel with the free add-in then you can select the two columns you want and insert a graph.  Not as simple for the user but using Excel, which users should be familiar with might mean users need less training on data files.
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

  • TDMS File Viewer not working in LabVIEW2009

    Anyone know how to get this to work in 2009. I believe this came from the forums and quit working when I upgrade to 2009.
    Solved!
    Go to Solution.
    Attachments:
    TDMS - File Viewer.vi ‏63 KB

    Hi bassinbc
    The TDMS file Viewer ia a VI that comes with LV. I just tested it in LV2009 and it worked fine. Have you tried removing it and replacing it from the palette?
    Best Regards
    David
    NISW
    Message Edited by Davidek on 08-18-2009 09:40 AM

  • TDMS file viewer not functioning as expected

    I'm new to LV so I'm probably doing something obvious to the battle hardened among you, I'd appreciate a hand!
    I've got a cRio that's running a modified version of one of the datalogging examples, and it's logging to its internal memory, which I FTP into and collect when done. But I'm having some issues with viewing it after. I've created a VI on the host system that looks for the TDMS files on the C drive of the host. I log a file with name "data". I copy over the TDMS and TDMS_Index files to the C drive of the host computer and run the TDMS fileviewer VI on the host, which checks for the file existing and opens it. If the file isn't there it complains, of course (but shows old data in the background). If it is there it opens it. However this is where the problems begin.
    The index headers for the top of the columns of data seem to be changed inside the files but do not always change in the fileviewer output, and the data seems to never be updated with the new data, despite all files having been erased in between runs. I've tried 4 or 5 re-loggings and always get the old data, and often the old indexes. Out of curiosity I changed the log filename to "data2" and changed the viewer path to the new file, copied it across and opened it and it worked flawlessly. Then delete-all and re-recording with the "data2" filename the problem returns - old data held until filename changed.
    The files on the CRio and host are definitely changing each time - their sizes vary when copied across - but the viewer VI doesn't seem to reflect any changes unless the filename is changed on each run, which is a pain. I assumed LV may have some sort of cache of the data, so tried closing LV down each time but it didn't help at all.
    Any ideas? As I say, probably something very obvious but I'm new to LV and haven't spotted it.
    Cheers

    Hey James,
    Your code seems fine; I won’t be able to run it as I don’t have access to
    the Hardware at the moment our RIO is currently under test. However I would
    like to get a screen shot of the TDMS file viewer and also a copy of the TDMS
    file, a brief description of how you want the file edited would be perfect. I
    have done some small re-architecting to your code also. I have just moved the
    data display to the host, as in your "untitled" VI you had a timed
    loop and a normal loop in the same frame. The normal loop in this condition
    will take priority over the timed loop and this could be the reason behind the
    strange data logging experienced in your system. Remember your rules of data
    flow in LabVIEW, so long as all you functions are joining via wires they will
    execute in order and therefore there is no need for sequence structures.
    I have attached the modified code to this post.
    Regards
    Andrew George @ NI UK
    Attachments:
    Host.vi ‏17 KB
    RIO.vi ‏86 KB

  • TDMS file viewer is not showing all channels

    Hiya,
    My personal tutor suggested that I should put a message on forums as we couldn't find the solutions.
    We've created TDMS write and read vis where in TDMS write, some emulated data is streamed into TDMS write file via queues. As in attached VIs, there are only six channels but we might be having more than 20 to show on TDMS file viewer.
    So the problem is when we run the TDMS write vi, trigger it with horizontal toogle on front panel, stop the TDMS write and go back to view the file on TDMS read, only the first channel data shows up. Also, we couldn't find the better way to stop the TDMS write vi than to abort it.
    Could anybody help us please!
    Ta
    Attachments:
    write.vi ‏29 KB
    read.vi ‏12 KB

    About the problemous stop, I advice you to run your code with 'Execution Highligting' on.
    Ton
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!

  • Extra empty groupName in TDMS file when using DAQmx Start New File & stop DAQmx while waiting for trigger?

    I wrote a VI that listens to an external trigger coming from a PFI line and saves a user-defined number of pretrigger+posttrigger samples into disk, and then the DAQmx restarts to wait for the next trigger. I used the DAQmx Start New File.vi to change the filename of each of the next file. However, I found that for each of the resulting TDMS files, there is an additional group that is added in addition to the real data. For example, if the groupName is set to "task_voltage", then there is an additional groupName called "task_voltage #1".
    I suspect that this is because the program preallocate diskspace using the old filename for the pretriggered samples, but when the trigger happens and the samples are ready to be written into disk, an actual new file is opened and saved. The reason I think this might be the case is because, say each file would be 50kB and I already have 1 file triggered and saved, before the second trigger comes in, I can see that the file size of the first file is twice as much as it should be (100kB), but the file size will return to noraml (50kB) after the second trigger happens and a second file is created.
    Does anyone know if this is really the case? Is there a way to configure the task so that this doesn't happen?
    Another question I have is that the program currently set up so that the VI will wait until a trigger happens to return the values. However, this means that if a trigger doesn't happen, the VI waits indefintely, and the "stop" button in the while loop is useless. I have to use the "Abort Execustion" button on the tool bar to stop the VI. Is there a way to interrupt and stop the DAQmx task even if the trigger doesn't happen?
    Thanks in advance for any help!
    Attachments:
    pretrigger_loop_new_file.vi ‏29 KB

    I don't believe there is a way to programmatically change/delete the group name in a TDMS file. What you can do however, is convert between TDMS and TDM using the VIs found in the Data Storage palette and then perform whatever modifications you need using the TDM utilities.
    Applications/Systems/Test
    National Instruments | AWR Group

  • How to view both real data and timestamp informatio​n in TDM data viewer?

    Attached, I have a VI that uses NI-Scope (NI-5122) to digitize and store data.  I have added some TDMS functions in order to save waveform data in binary format ( our acquisition time is around 3 hours and the files become very large)  As you can see, I am using TDM file viewer to view the data, the problem I am having is that I can only see the voltages and not time stamps.  I am interested in viewing and analyzing timestamped data.  I do see that the graph contains both voltages and timestamps and idealy I would like to see both in the value tab.
    Please let me know what is the best way to see both sets of data. 
    Thanks!
    Attachments:
    niScopeFetchWDT_TDM1.vi ‏55 KB

    The TDMS file does preserve the timing information for a waveform, you can see it if you go to the 'Properties' tab.  The attributes are there to calculate the waveform timestamp data, however, it does not look like the code behind the TDMS file viewer supports displaying the timestamp values in a column on the 'Values' tab.  This seems like a good case for filing a product suggestion.  As for a work-around, if you are set on using a TDMS file and viewing the timing information you would require a custom version of a TDMS file viewer.
    -Bob
    -Bob

  • Untitled channels in tdms file

    Hello,
    I am creating a TDMS file and formating the properties for  a number of channels then I close the TDMS reference. and when I have data available to write t the TDMS file I reopen the reference and wrtite to it.
    When my acquisition is finished, the TDMS file contain one more channel than the one I created. This channel contain the data that should have been in my first channel and the last channel is empty.
    I've attached two images of the VI I'm using
    All the properties I set are correct and correspond to the channels I want.
    Attachments:
    Create file.PNG ‏26 KB
    write to file.PNG ‏8 KB

    Hi,
    If you use the VI "TDMS File Viewer" and check the positioning of the data to ensure it's writing it incorrectly. Also (as it's difficult to see from screenshots) would it be possible for you to include this code in the forum post?
    Hopefully then I will be able to help you out more.
    Thanks,
    Applications Engineer

  • Tdm importer error when opening tdms file

    I am getting a error when trying to open a tdms file that had been opened by labview, written to, and then closed. The error is:
    USI encountered an exception:
    (175):Error while initializing interface
    I can sort of understand this error occuring when I have the file open in labview (actually I consider this to be a bug since there is no reason why another application should not be able to access a file in read only mode even if it is currently open by another application)
    but in my case I am definitely closing the tdms reference and it still will not import unless I stop the top level vi.

    It is a known bug that if you open a TDMS file with an option other
    than "read-only", no other process can get access to that file, even if
    it is just for reading. The issue is filed as CAR#  49794JWJ
    (status: fixed). This only applies if the file is still open, which you
    commented on, but which doesn't appear to be your actual problem.
    Apparently, you are using the Storage VIs to handle your TDMS files,
    otherwise you couldn't get a USI exception. Have you tried opening your
    file with the TDMS File Viewer on the TDM Streaming palette? If that
    doesn't work, please provide us with your TDMS file, and if possible,
    your VI. This would be a problem that we're not aware of at this point.
    Thank you,
    Herbert

  • Saving FFT PSD waveform to TDMS file maintaining x-axis scale

    Hi all,
    I'm having trouble saving a Power Spectral Density waveform to a TDMS file because the method I'm using is losing the x-axis (frequency) scaling. The only way I can get it to save is extracting the magnitude from the waveform and saving that in the TDMS file. This loses all the frequency information.
    Does anyone know how I can save the PSD information in a TDMS file or failing that, any type of file?
    Thank you,
    Donners
    Solved!
    Go to Solution.
    Attachments:
    PSDs Frequency 2.JPG ‏89 KB
    Data Calculations TDMS 4.zip ‏120 KB
    Filtered Data.zip ‏240 KB

    Hi,
    As my understanding, you are trying to log the PSD to "Power Spectral Density" channel, but you do it wrong with double array. TDMS write don't accept cluster as input, but accept waveform.  I have updated the VI and the PSD in TDMS file viewed as
    Attachments:
    Data Calculations TDMS 4.vi ‏177 KB

  • Error in open tdms file

    can some one help me why I get data type error when I want to open a tdms file by Read From Measurement File?I can open and view and analyse my file in diadem but I can't use them by labview!

    The Express VIs support only numeric channels, and some time stamp channels. The error you're seeing typically comes from files that contain string channels. You can double-check that by using the TDMS File Viewer from the TDM Streaming palette. The functions on the TDM Streaming palette (e.g TDMS Read) allow for easy access to particular channels, so you wouldn't have any issues with unsupported data types. You can check the "Write/Read Event Data" example VIs for more details on how to handle numeric and string channels in the same file.
    Hope that helps,
    Herbert

  • Is there a vi to convert tdm file to TDMS file?

    Hello,
    I need to convert a tdm file to a tdms file. Is there a vi available to do this. I am using labview 2009. Thanks. Manish

    Manish_Keswani,
    Thanks very much for providing tdms file and VI !
    I could reproduce this -2532 issue.
    I use TDMS File Viewer (http://zone.ni.com/reference/en-XX/help/371361E-01/glang/tdms_file_viewer/) to check your provided tdms file "filtered data TDMS file.tdms" and below is the screenshot. It shows the channel name is "FilteredSignal".
    But your "Example Code revision 4.vi" uses "Untitled 1" as input channel name. Then the fix is simple: remove the "Untitled 1" as input channel name. See below screenshot for fixed VI.
    Run this VI and the below screenshot shows the result. Is it what you expected proceeding result? :-)

  • Number of elements in TDMS file

    Is there a way to determine the number of elements in a TDMS file?  The files I am creating have several signals all of the same length.  The only way I can think of is to do this is put it in a loop and read one element at a time until it reaches the end of the file.  But, my files will have millions of elements.  Any suggestions?
    Thanks.
    --Robert

    Thanks Herbert
    For readers having similar problems, here are my experiences:
    It works either without wiring a property name and datatype, as you mentionned before.
    Resulting is a variant array. Result see attached solutionVariant.jpg
    It also works wiring the right datatype as in the TDMS File Viewer and your first explanations:
    Resulting is the channel length as Integer I64 or U64. Datatype constant representation and indicator representation must match!
    See attached solution.jpg
    My error has been wiring a string "I64" as datatype and a string indicator as value indicator. So stupid...
    Regards
    Klaus
    Attachments:
    solutionVariant.jpg ‏30 KB
    solution.jpg ‏8 KB

  • Which has a comfortable DBX file viewer?

    Good day. I sent in the mail file DBX. Here's the problem - I need to find this archive of all letters stored in it only to find one specific letter, but through Outlook it is not convenient for me as this is necessary to replace this
    file my own e-mail this file to me and it's uncomfortable. Do what some handy software for such purposes. Ie What do I view file dbx.?

    DBX Viewer Tool is an all-in-one, highly efficient and easy to use corrupt DBX viewer and recovery tool for Outlook Express DBF files. The core of this corrupt DBX file viewer uses a combination of several file analysis
    algorithms for maximum speed or file viewing and subsequent recovery. Users who are unaware how to view corrupted .dbx files will benefit from the step-by-step wizard guiding them through the process and minimizing time and effort needed to view the contents
    of a damaged file and recover its data. DBX Viewer Tool comes with a DBX search feature that automatically locates DBX files on the user’s hard drive and a convenient message browser that enables users to preview the contents of DBX files. This corrupt Outlook
    Express file viewer saves messages in the EML format supported by most email applications and restores messages previously deleted from Outlook Express DBX files.
    Source:  http://www.dbx.viewertool.com/

  • Date of a tdm file set in LabVIEW not showing up in diadem

    Hi.
    I 've got a problem with the date string in Labview. If I set a property of a tdm file by using the diadem connectivity vi the datestring only consist of three "-" in the diadem file portal. I'm using the time stamp vi and connecting its exit with the express vi "set property". What did I wrong?
    (Sorry for my English)

    Hi Brad.
    Thanks for the code. It worked so far, but this isn't what I had in mind. The Express VI "set property" within the Diadem Connectivity VIs has a connection named "time stamp", which can be used to set the date for a tdm file by connecting the Labview VI "time stamp" with it. If I load or save a file in LabVIEW, everything works fine, it's only Diadem, which doesn't recognize the date or time. I need the date, when the tdm file was created, for the first page of a test record. The variable "DataSetDate" returns only "---".
    Thanks a lot,
    AndreasMessage Edited by Andreas on 04-01-2005 02:05 AM
    Message Edited by Andreas on 04-01-2005 02:12 AM

Maybe you are looking for

  • Pdf error in bsp application

    Hi, I produced PDF File by using BSP Application but I have a problem when I open PDF. I have an Error. Adobe Reader could not open 'example.pdf' because it is either not a supported file type or because the file has been damaged. my code is : CALL F

  • Digital AV Adaptor

    Hi, I'm planning on purchasing the HDMI Digital A/V adaptor for the iPad 2. My quetion is: can you output the Audio via the headphone jack rather than the HDMI cable as I'm hooking it up to a projector and wish to send the audi to external speakers?

  • Can you add programs after installation?

    say i run setup for master collection and install photoshop, bridge, soundbooth and flash, but then after instillation i find that i need after effects say, can i add after effects by going to control panel>programs and features and 'changing' master

  • Png transparency lost from PS to AI

    When I use the slice tool in PS cs4 and save as a png the transparency is lost when dragging it into AI. The results were the same when I used either linked or unlinked. When I use the "save as" in PS as a png the transparency is preserved. Transpare

  • Sending Project as an idoc pls help!!

    Hi , I am working on Project Systems Module . Can anyone please tell me how to send a project from one R/3 SAP system to another ? Is there any standard program to send an project as an idoc ?? What is the procedure to send the project to antoher sys