11-25-2015 05:01 AM
I have connected my laptop to the HW which is communicating through RS232 and i want to extract possible request/response from the port. For example:
If i send
Request: 3B 16 07 xx xx xx
i would expect the response which will read approx 50bytes of data in format
Response: 3B 16 01 02 03 04 05 .................................................... till 50 bytes
Any information on how to do this would de really helpful.
Thanks
11-25-2015 06:11 AM
What language are you using? LabVIEW? C++? Ruby? Java? etc.
Assuming you are using LabVIEW, look at the examples (Help->Find Examples). There is a Simple Serial Write & Read that you should look at.
11-25-2015 11:09 PM
I am using Labview 2011. Ok Thanks, i will look into this.
I also needs to parse the response bytes, can you provide me any sample vi which does this so that i can get some info on how to do that?
Thanks
Aniket
11-25-2015 11:16 PM
11-26-2015 03:19 AM
Hi Dennis,
Currently i don't have any model vi , but looking for 1 sample vi so that it's easy for me to proceed.
Can you explain me in a brief how to do this with some model vi.
And what do you mean by dbm existing driver?can you also share some info on this.
Thanks
Aniket
11-26-2015 05:11 AM
11-26-2015 10:45 PM
Actually the HW it's internal to the company which is manufactured and used by them only, so it's not the generic one which you are looking for.
the HW and my tool will communicate through RS232 only which is serial comm.
Do you have any sample vi which parse the data for the following bytes.
Thanks
Aniket
11-27-2015 03:12 AM - edited 11-27-2015 03:14 AM
Please try the functions I mentioned
11-27-2015 04:55 AM
Hi Dennis,
I checked with those functions but not helpful as couldn't able to get the required instrument driver.
I able to find out how to send request and response but stuck with the parsing one, can you help me with that as i have to parse 55 bytes of data one by one.
11-27-2015 05:44 AM