Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

Why the last iteration of while loop is slower in Labview

Hi,

 

I am sending CAN messages in a while loop. And i am sending it as fast as i can(no timing). I observed that the last iteration of the while loop takes more time than the previous ones.  For example, if i send 10 frames ina loop, the first 9 frames are approximately 1 ms apart. But the last frame is around 100ms from the previous frame. And this is not consistent, sometimes it ok. Is this behaviour have anything to do with WindowsXP? Or is it a bug in Labview 8.6?

0 Kudos
Message 1 of 3
(6,633 Views)

How are you measuring the timing of the loop iterations? Have you tried this with other LabVIEW code to isolate the loop or the CAN as the culprit? Can you post a small ssnippit of the code that will reproduce the issue?

 

---

Peter Flores
Applications Engineer
0 Kudos
Message 2 of 3
(6,619 Views)

Sorry... this might be off topic but I wanted to add this...

 

I was not able to loop a write without delaying it at least one millisecond...

 

I had a loop and had different Arbitration IDs that I wanted to write on the BUS, but when I looped all of the messages only the last one would be sent... i had to add a 1 mills delay between writes...

0 Kudos
Message 3 of 3
(6,498 Views)