07-26-2014 09:37 AM - edited 07-26-2014 09:38 AM
Ranjeet , if you say this setup is working fine at one place but not on other then the most common thought of every person would be that there is somthing worng with the setup at other place.
Now there are hundereds of possibilities , few we alreardy told you .
if you want some help you will have to explain us actual setup and we will be happy to help.
07-26-2014 09:40 AM
it would be easier to help if you can explain your setup.
07-26-2014 09:46 AM - edited 07-26-2014 09:47 AM
Ok...
I have two USB which is as a COM port for me.. One is arduino and other is USB(Say).
During testing I need to write and read from these com port based on the intial character of write string to VISA(Hence CASE str in my VI). .This USB com port is dynamicallly allocated but each time I will get same com port. Now this is my seqence of testing
1. wrtite and read from arduino - working
2. wrtite and read from arduino - working
3. wrtite and read from arduino - working...After this my USB will be detected and I will write and read succcessfuly.
4. wrtite and read from arduino - Fail.
After this in next testing
wrtite and read from arduino - fail...
I need to reconnect my arduino to make it work !!!!
07-26-2014 09:52 AM
I understand you are using two cables and it is a serial connect using micro usb and a B type. A loop back test will eliminate any doubt about hardware malfunctions. If you can short the ends of the cables you would also be testing everything but the other device.
Are you using All the same hardware for test and production except the PC's? Or do you have an identical setup of cables and controllers?
Can you switch the devices connected to each Com port? This could test the devices. If the timeout follows the device it would give you and indication of a bad device.
07-26-2014 10:00 AM - edited 07-26-2014 10:02 AM
@Dave_Brandt wrote:
I understand you are using two cables and it is a serial connect using micro usb and a B type. A loop back test will eliminate any doubt about hardware malfunctions. If you can short the ends of the cables you would also be testing everything but the other device.
Are you using All the same hardware for test and production except the PC's? Or do you have an identical setup of cables and controllers?
Can you switch the devices connected to each Com port? This could test the devices. If the timeout follows the device it would give you and indication of a bad device.
How can I use loop back? I am using same setup for production and testing...same cable and all other device is same
07-26-2014 10:05 AM
short pin no 2 and 3 of your connector cable , send some character through MAX and you should receive same character.
07-26-2014 10:08 AM
I have USB not RS232. then how can I?
07-26-2014 10:17 AM
07-26-2014 10:24 AM
Yes of course it was a silly idea , and missed whole discussion that op is struggling with usb ports not serial.
07-26-2014 10:26 AM
This is my latest code in which I modified the timeout setting each time when I am writing the data and reading it back.
Then also it is failing.What I sould do?