08-13-2008 05:16 AM - edited 08-13-2008 05:24 AM
Hello,
I made a code that will send CAN frames one after second in define order. I did this as an enclosed picture, however this structure does not always work.
What can be the cause, does this form is incorrect?
08-13-2008 05:53 AM
Hi zaqap,
what doesn´t always work? What do you make in the other cases? The second subvi icon tells me that it has to do with a wait function, why do you use another wait in the loop?
Mike
08-13-2008 06:55 AM
Hi Mike,
in the other cases there is a following frames and the problem consist in that sometimes program sending all frames and sometimes only one(first). The wait function wait for next state to occur an object
Zaqap
08-13-2008 07:59 AM
Hi Zaqap,
did you check if you have an error in your error cluster? I guess if you have an error, then you don´t send your data.
Mike
08-13-2008 09:03 AM
I check it, no errors..
08-13-2008 09:07 AM - edited 08-13-2008 09:07 AM
08-13-2008 09:21 AM
Hi zaqab,
Can you post your code?
08-13-2008 11:11 AM
Hi,
sequence stucture doesn't work with this, metronome give CPU time to handle other task. In attachment I post sample code
08-13-2008 11:35 AM
Offhand I see no procedural issue. In the first iteration of the loop an 8-byte array is sent. In the second a 5-byte array. I'm suspecting the problem is really with your instrument. Are you sure you are waiting enough time after sending the 8-byte array before sending the 5-byte array? Perhaps the instrument is still busy moving.
Side notes:
08-13-2008 11:42 AM
smercurio_fc wrote:Side notes:
...
One more note:
Can you rewrite the code to replace all the instrument IO with a simple indicator so we can run it without needing your hardware?