DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

how does diadem interpret hex values in a .csv file

If I have a .csv file with hex values such as 0x1111 verses 0xffff when I import it using the dataplugin?

0 Kudos
Message 1 of 4
(3,535 Views)

Hello Faustina, 

 

DIAdem is using a dataplugin each time it is reading in data that is not in the TDMS file format. Under Options>>DataPlugins you can see a list of the plugins on the machine and can access the scripts used to read in the data. 

 

Regards,

 

Rob S
Applications Engineer
National Instruments
0 Kudos
Message 2 of 4
(3,508 Views)

I understand that.  When I use the DIAdem .csv plugin and the text data are hex values such as 0x1111 verses 0xffff does DIAdem properly convert the values to decimal or do they remain text?

0 Kudos
Message 3 of 4
(3,505 Views)

Hi Faustina,

 

The Dataplugin will read the data in as Text if you have it pull that data into a String Channel. From there you would need to use VBScript to change the text values into numeric values. If you try and read the .csv into a numeric channel you will probably just get "NoValue" for each of the data points.

 

The VBScript command you would use should look something like this:

 

HexString = "100A000F"
HexInteger = CLng("&h" & HexString)

 

Regards,

 

Rob S

 

Rob S
Applications Engineer
National Instruments
0 Kudos
Message 4 of 4
(3,485 Views)