LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Opening a tdms file directly from labview

Hi,

 

Ive written a program in Labview 8.5 that stores data in a tdms file. Im wanting an option to open this file so when the user selects the correct button the file loads up in Diadem. Does anybody know how to do this? I tried the 'open file' vi but it gave the error " Unexpected file type".

 

Any help much appriciated,

 

Thanks,

Mark

0 Kudos
Message 1 of 12
(5,282 Views)

In LabVIEW, there's a menu paletter for TDMS: Programming->File I/O->TDMS, you can use TDMS Open VI on that palette to open your TDMS files.

Message Edited by YongqingYe on 09-03-2009 02:17 AM
0 Kudos
Message 2 of 12
(5,275 Views)

Hi,

 

Sorry, i think you have misunderstood. I dont want to open the file to edit data in it within labview. I want to open the file as if i would double click on it within a windows folder? Is this clear?

 

Thanks,

Mark

0 Kudos
Message 3 of 12
(5,266 Views)

If you installed the DIAdme LabVIEW connectivity VI toolkit you will have VIs for those functions.

 

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!
0 Kudos
Message 4 of 12
(5,256 Views)

Ok, ive now added the connectivity pack but cannot figure out which vi I need to do this? Can you advise?

 

Thanks,

Mark

0 Kudos
Message 5 of 12
(5,220 Views)

You can use the toolkit in order to remote-control DIAdem in great detail. For common tasks like loading data and displaying it, LabVIEW has some convenience functions, though. Your code for that could look something like this:

 

 

dd_lv_tdms_activex.PNG

 

Another option is to launch DIAdem via command line. Note that this will launch a new instance of DIAdem everytime you call it (if you use the LV-DD Connectivity Toolkit, you can configure this behavior):

 

 

dd_lv_tdms_cmd.PNG

 

Hope that helps,

Herbert 

Message 6 of 12
(5,217 Views)

On the second one, i get the error "Format Into String: too many format specifiers". Its refering to the first one where i have %s, TDMS and Load. Also I cannot find that blue and green rectangle thing, can you also help on that one?

 

Thanks,

Mark

0 Kudos
Message 7 of 12
(5,201 Views)

There might be something wrong with your format string. As for the blue/green thing, you'll only see that if you load VIs from older LabVIEW versions. You can drop a constant for "create or replace" instead. I have attached the VI (LV 8.6).

 

Thanks,

Herbert 

0 Kudos
Message 8 of 12
(5,188 Views)

Hi,

 

Im currently using Labview 8.5 and that vi wont load. Would it be possible to re-save the vi in labview 8.5 format and repost?

 

Thanks,

Mark

0 Kudos
Message 9 of 12
(5,150 Views)
VI in LV 8.5!
With regards,
JK
(Certified LabVIEW Developer)
Give Kudos for Good Answers, and Mark it a solution if your problem is solved.
0 Kudos
Message 10 of 12
(5,142 Views)