07-26-2014 11:08 AM - edited 07-26-2014 11:09 AM
@Dennis_Knutson wrote:
For the arduino, are you using either LIFA, the newer LINX, or a different sketch? Is it always plugged in? What about the other USB connection? Is it always plugged in?
As far as the code, it should not be necessary to always change the timeout. I also don't understand the need to always flush the buffer.
I still think you need to check the Windows drivers for both the arduino and the other device.
I am not using any LIFA or other, I am using simple VISA to communicate like other VISA
Yes arduino is always plugged in but not other USB and hence when I complete my testing I close other USB but not arduino.
If you say I will check the driver but if it was driver issue then it should never worked
07-26-2014 11:11 AM
Dennis,
The BD is 6 screens wide and 3 screens high and full of nested sequence structures, locla variables, nested loops, and other things which undoubtedly would give your Android a headache.
Ranjeet,
Can you tell us where in this gigantic BD the problem seems to occur?
Lynn
07-26-2014 11:15 AM
Why not timeout value needs to be changes?
you see when I am working on first COM port then I need to increase other COM port value becasue other may timeout? Just asking one question?
Till when timeout value is valid. After write then read or vice versa or even if I am not doing anything then also it generates an error for timeout?
i.e when inside one case structure then for other COM I am not using any read / write so do I need to modify the timeout
07-26-2014 11:17 AM
07-26-2014 11:17 AM
@johnsold wrote:
Dennis,
The BD is 6 screens wide and 3 screens high and full of nested sequence structures, locla variables, nested loops, and other things which undoubtedly would give your Android a headache.
Ranjeet,
Can you tell us where in this gigantic BD the problem seems to occur?
Lynn
In my gigantic BD when I write and read from USB then after that when I write and read to arduino then my code says timeout and it fails. hence I need to reconnect my arduino to make it work
07-26-2014 11:19 AM
So do you think I need to run and test on WIN7 only? or anything I can do to make it work
07-26-2014 11:27 AM
07-26-2014 11:31 AM
@Dennis_Knutson wrote:
Since you haven't checked, how could I know?
Make a simple VI that is not obscenely large that just has an event structure for simple communication to each port. Make sure both devices are plugged in before running the VI. This should help you isolate the problem.
To clarify my comments on setting the timeout and the flush buffer, I have seldom found it necessary to change these after the initial setup.
OK i will do that.My device is always connected before running my application.
I am not sure how to use event str in case to choose the COM port etc. Will try to make out. Thanks for the effort.....
I am still waiting for my answer of my question
07-26-2014 11:43 AM
07-26-2014 12:18 PM
What does the Arduino port return from VISA Find Resource? If it returns "USB Serial Port", then the USB loop may close that port.
Look at the image below. The last VISA Resource Name value coming from the for loop goes to VISA Close. It also is passed to the property node in the next frame and the VISA Write in the following frame. Although there may be a value on that line which was a valid resource name, that resource was just closed. I am not sure what the property node and the VISA write do with that situation, but it does not seem right.
Does the timeout occur on the Write or the Read? What is the exact source string in the error cluster?
Lynn