09-03-2009 02:07 AM
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
09-03-2009 02:16 AM - edited 09-03-2009 02:17 AM
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.
09-03-2009 02:45 AM
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
09-03-2009 02:55 AM
If you installed the DIAdme LabVIEW connectivity VI toolkit you will have VIs for those functions.
Ton
09-04-2009 03:34 AM
Ok, ive now added the connectivity pack but cannot figure out which vi I need to do this? Can you advise?
Thanks,
Mark
09-04-2009 03:48 AM
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:
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):
Hope that helps,
Herbert
09-04-2009 04:53 AM
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
09-04-2009 08:50 AM
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
09-07-2009 02:25 AM
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
09-07-2009 02:53 AM