Search:

Type: Posts; User: Marvin Gorres

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    1,984

    yes. how?

    yes. how?
  2. Replies
    4
    Views
    1,984

    conversion problem

    Hye guys, below is my code, i dont know why i cant get the actual result into txtTest.text, in debug mode, i did see the result that i want in list[1], without convert to string there will be an...
  3. Replies
    0
    Views
    1,502

    creating crystal report .rpt file

    hi, i have a windows application form which will be filled with some data, i need to export those data to a crystal report (without going through the database and without opening the crystal report)...
  4. Replies
    6
    Views
    2,995

    Export data to excel

    Hello guys, i'm kinda new to c#, i wanna create a program which will take few data from GUI and export it into an excel file. Another thing is how to modify the data displacement in that particular...
  5. Replies
    16
    Views
    4,424

    im using CSTOPB, it says that it send two stop...

    im using CSTOPB, it says that it send two stop bits. how to send one stop bits.
  6. Replies
    16
    Views
    4,424

    I don't really know how to use it and the...

    I don't really know how to use it and the hardware user manual doesn't mention anything about it. I did thought of using it but no sure how.
  7. Replies
    16
    Views
    4,424

    I've check the return value from read many times...

    I've check the return value from read many times and it does return the correct number of bytes returned. The problem is the content of the returned value. sometimes i et the correct value and...
  8. Replies
    16
    Views
    4,424

    No but the baudrate i used is specified in the...

    No but the baudrate i used is specified in the hardware user manual.
  9. Replies
    16
    Views
    4,424

    Done. Thanks Kurt, but the problem is still the...

    Done. Thanks Kurt, but the problem is still the same.
  10. Replies
    16
    Views
    4,424

    read write serial port

    Hello guys, i have a code which used to connect my hardware through the USB port. Sending data in HEX format and when the hardware reply or gives out an output, it will direct go to a .txt file.
    ...
  11. Replies
    102
    Views
    33,504

    even if i changed to this code result2 =...

    even if i changed to this code



    result2 = write(mainfd, myCommand, sizeof(myCommand)); //return number of byte written to the port
    if ( result2 < 0 ) { perror("error: write"); }
    if...
  12. Replies
    102
    Views
    33,504

    Hello Zuk, i changed it already. Thanks for the...

    Hello Zuk, i changed it already. Thanks for the information, now my error looks like this:

    error: write: Success
    error in write, result = -45

    but i just disable the second error and i get the...
  13. Replies
    102
    Views
    33,504

    its negative.

    its negative.
  14. Replies
    102
    Views
    33,504

    Yea you got a point there. Any suggestion how to...

    Yea you got a point there. Any suggestion how to check the error?
  15. Replies
    102
    Views
    33,504

    Now i'm trying to transfer 211 byte of data so i...

    Now i'm trying to transfer 211 byte of data so i have this code below:



    unsigned char myCommand[211] = { 245,65,0,196,0,0,133,245,245,0,1,1,245,0,0,0,15,29,40,43,193,34,...
  16. Replies
    102
    Views
    33,504

    Thanks Kurt!!

    Thanks Kurt!!
  17. Replies
    102
    Views
    33,504

    UPDATE: int myCommand[8] = {...

    UPDATE:




    int myCommand[8] = { 245,1,0,0,0,0,0,0 };

    int str1, str2, str3, str4;
  18. Replies
    102
    Views
    33,504

    I wonder if i'm doing this correctly. Please...

    I wonder if i'm doing this correctly. Please correct me. This is what i did:



    fscanf(fp, "%s %s %s %s", str1, str2, str3, str4);

    two[1]= str1;
    two[2]= str2;
    two[3]= str3;
    two[4]= str4;
  19. Replies
    102
    Views
    33,504

    alright thanks for the suggestion. Too many thing...

    alright thanks for the suggestion. Too many thing now and i keep forgetting things.
  20. Replies
    102
    Views
    33,504

    its in write() library, the write() will return...

    its in write() library, the write() will return you the number of byte as long as you set the correct parameter for it.
  21. Replies
    102
    Views
    33,504

    Owh sorry! i forgot to change the 801 to 8..my...

    Owh sorry! i forgot to change the 801 to 8..my mistake. now it works properly already. thanks for pointing it out.

    Now what i have to do is how to transfer an array which have the following value...
  22. Replies
    102
    Views
    33,504

    Tried already, my device seems to respond but the...

    Tried already, my device seems to respond but the error is still there. 42 byte were sent.
  23. Replies
    102
    Views
    33,504

    This is what i've done: unsigned char...

    This is what i've done:



    unsigned char myCommand[810] = { 0xf5,0x01,0x00,0x01};
    unsigned char two[50];

    two[1]= "0x03";
    two[2]= "0x00";
    two[3]= "0x03";
  24. Replies
    102
    Views
    33,504

    convert? is there any other method without...

    convert? is there any other method without altering the original data?
  25. Replies
    102
    Views
    33,504

    This is what i did: unsigned...

    This is what i did:



    unsigned myCommand[100] = { 0xf5, 0x01, 0x00, 0x01, 0x03, 0x00, 0x03, 0xf5,};

    result2 = write(mainfd, myCommand, sizeof(myCommand));


    now my .txt file content is...
Results 1 to 25 of 67
Page 1 of 3 1 2 3