LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

XCP DAQ list

Hello,

 


Im working with Labview and the ECU Measurement and Calibration Toolkit. Now I have a Problem reading data from the ECU we have.

The Problem is that I have to read the data from the ECU every 10 ms.

So far I can read only 1 sample of my measurement list at time. I try to solve the problem using a timed loop (with high priority),  that reads every 10 ms the measurement data from the ECU. It is working on no CPU load, but if I move a Window or do something else, the data read is not exactly every 10 ms, sometimes a lot more.

Now I changed the "MC DAQ List Initialize.vi" -> Sample rate from 0 to 100. I assigned the DAQ – List to a Event Channel "Chan_10ms", and tried to read the measurement Data. The sesscion status ist 64, wich means DAQ_RUNNING==1. But the program read 1 Data (since MC DAQ Read.vi -> Number of samples  ==1), but then hangs. If number of samples is bigger than 1, it hangs also. I tried a lot of things, I'm with this Problem several days, but nothing works for me.

If I read the Data from the ECU with CANape, using DAQ Lists, it works perfect.

 


Im sending you my VI, and the a2l files. The "original.a2l" is the file generated by Targetlink, which works fine in CANape, but not in Labview. The "modified.a2l" file is a file that I exported from CANape, wich also works fine in CANape (even with DAQ Lists), and also works in Labview (reading 1 sample at time only).

 


Another issue that I don’t understand. With the " MC Get Property.vi" I am reading "DAQ List Numbers", and I get nothing. The weird thing is, in "Name" I have to put a "Characteristic Name" instead of a "Measurement Name" to get no error. Can you explain me that?

But if i read "DAQ # channels" it show's me 2 as it schould be. Also "event channel name" is correct.

 


Can you help me with this Problem?

 

Best regards,

Dorian Hildebrandt

I.A.V. Berlin



Message Edited by DorianH on 04-03-2008 09:31 AM
0 Kudos
Message 1 of 2
(5,882 Views)
one thing i want to add. The "meas address" for Sa8_I shows correctly  0xB00053EC

0 Kudos
Message 2 of 2
(5,875 Views)