DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Diadem GPI

Hello, all

I'm just trying to programm an GPI-file driver for reading a measurment file with some comments.

The question is, how can I set in the dataset properties of the global header informations in the *.dat-file
---- EXAMPLE -----
#BEGINGLOBALHEADER
1,WINDOWS
2,{@R:810 {@V:8.10.1292 {@F:4.00
101,SVDO-Messwertdatei
106,pruefer
102,Josa
106, ###### HERE I WANT TO HAVE THE TEXT
102,Donnerstag, 14. November 2002
----- SNIP -------

The entries with typ "102" I can access with the code:

strcpy( szDataCommentT, aDiaHeader->szDatum );
lDataProperties( eDataSetCommentarySet, 1, 0, &szDataCommentT );

Is there a enumeration entry like "eDataSetCommentarySet" for the commentary name (typ "106")

Thanks!

an other questi
on will be, is there an updated and up to date documented version of the gpi-development lib on the NI-Net?

ps: the file I want to read in has the following format:

------ file --------
fup Shots Energie ti_v1 soi_v1 ti_v2 soi_v2 ti_main soi_hpt ti_n1 soi_n1 ti_n2 soi_n2 cvcv1p cvcv1s cvcv2p cvcv2s cvchp cvchs cvcn1p cvcn1s cvcn2p cvcn2s KalPkt [Twait] s [+/- P-Rail-Toleranz] bar [Drehzahl] 1/min. [+/- Drehzahltoleranz] 1/min. [+/-Energietoleranz] mJ [Vorlauftemp.] °C [+/- Vorlauftemp.toleranz] °C [+/- Gegendruck] bar [+/- Gegendrucktoleranz] bar [Min. Leckage] ml/min. [Max. Leckage] ml/min. Soll-Ist-VBA-Check
220 100 78 0 0 0 0 0,297 40 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 10 7 1000 2 5 40 2 1,25 0,25 0 200 0

Prüfer: Josa
Datum: Donnerstag, 14. November 2002
Injektornummer: 1001-00123

Zeit [ms] U [V] I [A] Einspritzrate [mm³/ms]
0,000 0,582 -0,021 -0,018
0,005 0,339 -0,020 -0,031
0,010 0,349 -0,020 -0,037
0,015 0,342 -0,021 -0,015
0,020 0,348 -0,020 -0,017
0,025 0,349 -
0,021 -0,013
0,030 0,342 -0,017 -0,020
0,035 0,348 -0,018 -0,021
0,040 0,343 -0,015 -0,020
0,045 0,343 -0,016 -0,009
0,050 0,342 -0,012 -0,007
...
...
0 Kudos
Message 1 of 3
(4,639 Views)
Hi,
the answer is simple: use a list of lines begining with "106, a_comment_name" and "102, a_comment". The global header informations will be set in the order you write the .dat -file. For example:

106,Kennung
102,
106,Version
102,0.02.003
106,Nummer
102,1
106,Standort
102,
106,Betreiber
102,
106,
102,
106,
102,
106,
102,
106,
102,
106,
102,
106,letzte Kalibrierung
102,0.0.0000
106,nächste Kalibrierung
102,0.0.0000


This sequence sets the first 12 comments and comment names. Not all fields will be set.
0 Kudos
Message 2 of 3
(4,639 Views)
Hi Josa,

Just this week we posted the latest version of the GPI files and documents. You'll find them at:

ftp://ftp.ni.com/support/diadem/gpi_dll/gpi.exe

Regards,
Brad Turpin
NI
0 Kudos
Message 3 of 3
(4,639 Views)