From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Datafileimport question?

I build a filelist and Call DataFileImport(DataFileName, [FileImportFilter], [PartialMode])
to important it. But I do not know how to set [FileImportFilter] and [PartialMode]. The DIAdem Help does not help. My data file is attached.
0 Kudos
Message 1 of 2
(3,236 Views)
Hi,

PartialMode: Specifies whether the DataFileImport command displays the dialog box for channel selection.
If you set this parameter on TRUE a dialog appears in which you cam specify which channels you would like to load.

With FileImportFilter you specify the kind of data format of the file you would like to load:

TDM DIAdem TDM format
DD8x DIAdem DAT format
asciiFilter ASCII format
Excel EXCEL format
LVM LabVIEW LVD format

But in your case you must use the ASCII import function with the following commands:

call asciiassocset(DATADRVUSER & "Testfile.CSV", DATADRVUSER & "Test.stp")
call asciiload(DATADRVUSER & "TP_53_CTz10439_mh5_mh4_PHabc_0F1_103626.csv")
call asciiassocdel(DATADRVUSER & "TP_53_CTz10439_mh5_mh4_PHabc_0F1_103626.CSV")

More in
fos to the commands you find in the DIAdem help.

(Note: For DIAdem 9.1 we are working on a CSV import filter. Than it will be possible to use the following command Call DATAFILEIMPORT("TP_53_CTz10439_mh5_mh4_PHabc_0F1_103626.csv","",0))

I hope this will help you

Greetings

Walter Rick
Message 2 of 2
(3,236 Views)