11-17-2008 11:38 PM
Dear all,
I have attached a zip file where co-existence.vi is the main vi file which communicates with a USB device and returns some ATR responses.
The responses are stored in a log file. I have attached the log file. In the log file at three places while displaying ATR, some unwanted 00's get appended. Please help me how it comes and how to remove it?
Thanks,
Mathan
[ Note: (Don't run the attached vi. It disables all the devices in your system) ].
Solved! Go to Solution.
11-18-2008 12:38 AM
It seems that the length depends on the value you get out of the dll (dwARTLen). You have it wired as 100, so it seems the dll simply returns the input. Maybe you want to check the documentation for the dll on how to get the real lenght.
A lot of your code is very confusing....
Here a nice state machine would make all the difference. You'll only need about 10% of the current code, eliminating all the repetitions. 🙂
11-18-2008 02:30 AM
altenbach wrote:It seems that the length depends on the value you get out of the dll (dwARTLen). You have it wired as 100, so it seems the dll simply returns the input. Maybe you want to check the documentation for the dll on how to get the real lenght.
Yes, i checked the documentation and as you told dwATRLen was an I/O parameter and hence just removing that input value now correctly just displays the proper ATR alone which is required one.
What is the purpose of the FOR loop in the adhc.vi? Since you autoindex into a one-row array it will run only once and the result is the same as if you would delete the FOR loop.Thanks. I will follow this.
- Your main VI is extremely repetitive with lots of duplicate code.
That is actually required for some test cases. Leave this. Its completely necessary for particular test scenario. That's why.
Thanks thanks thanks a lot....
11-18-2008 01:41 PM
mathan wrote:That is actually required for some test cases. Leave this. Its completely necessary for particular test scenario. That's why.
That is very hard to believe. 😄