What is the difference between these two codes?
1-"
unsigned char bytes[5];
bytes[0]=0xC5;
bytes[1]=0x55;
bytes[2]=0x0;
bytes[3]=0x0;
bytes[4]=0xD2;
for (i=0;i<5;i++)
ComWrtByte(1,bytes[i]);
"
2-"
unsigned char bytes[5];
bytes[0]=0xC5;
bytes[1]=0x55;
bytes[2]=0x0;
bytes[3]=0x0;
bytes[4]=0xD2;
ComWrt(1,bytes,5);
"
I asked this simple question because when I use these codes in my application, I've get different results from the COM port. When I look the TX channel when I use sample code#1 there are some delays (arbitrary length upto 20 ms) between bytes (arbitrary index). But when I use the 2nd sample code everything seems to be good..
I'm confused because I could not see inside these functions and yo
u know the answer. Could you please send me a detailed information of these functions? But not the definitions, you know that; I have already them inside the CVI help!
PS: CVI version 5.0
Thank you and waiting for your response,
Regards
Atakan Dura