DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with displaying mixed datatype in DIAdem

Hi,

 

I have a problem with displaying the data came from csv file.

 

My system produces the data in the form like below:

 

Timestamp,BlockID,AlertID,Block Name,Block State,Description,Trigger
556,0x4056,0x95,BlkSrvL2Alerts,OK,MOTOR_CURRENT_SENSOR1_FAULT,Unknown
560,0x4056,0x94,BlkSrvL2Alerts,STOP_UNDF,MOTOR_CURRENT_SENSOR2_FAULT,Unknown

etc.

 

So: denary number, hex number, hex number, string, string, string, string

 

So far only one parameter which is displaying is denary number, the legend of  the rest parameters is gray-out on the chart.

 

Is it possible to display the data from my csv files? How to do this?

 

 

 

0 Kudos
Message 1 of 4
(1,188 Views)

Hi MimiKLM,

 

I can't find a way to does this directly, I think the way around this would be to use the script to read the the channels and convert to a different format.  The steps i would do are:

  • Import the CSV into the data portal
  • in the Script view, import a hex channel from the data portal,
  • convert all the hex data to decimal
  • create a new channel and add the converted channel to it. 
  • Then you can use that converted data on a chart. 

There maybe be a plugin that does that already, but I havent looked.  For the strings, I don't know. What information do you have in the strings?

 

For creating the script, these links should help: 

0 Kudos
Message 2 of 4
(1,129 Views)

Fault statuses & fault sources

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

Hi All,

 

If this file with the status values and the hex codes is actually a CAN log file, then you should use the Bus Log Converter in DIAdem to turn it into a TDM/TDX file of scaled and datetime-stamped channels, with each group containing all the data from one message.

 

Brad Turpin

Principal Technical Support Engineer

National Instruments

0 Kudos
Message 4 of 4
(1,092 Views)