02-17-2022 05:52 AM
Well something in Read Packet Frame.vi obviously is not quite working as expected. But I really can't say what without having the actual data stream visible. This is where you have to:
- Go into single stepping in that way and see what code is executed when and how
- Actually understand what the code is doing
- Understand the protocol and how it supposedly should be working
- Watch the results of each function and understand when it is doing something that is not how it should be
- Conclude where the problem is and make according changes to the code
This is the real programming deal and where things get interesting. Without hardware there is not much I can do more for you. So you are on your own from here.
02-17-2022 06:22 AM
Thanks a lot for your help, I'll post the code again once I find the issue and fix it.
02-17-2022 08:51 AM
I took pictures of the "SubVIs" working in the image below. I think there is something wrong here.
Is everything working right so far?
I explained a little in the picture.
I think I'm starting to understand the code a little more.
There are some screenshots I took in the ''Write Packet frame 8.png'' photo. Here it actually says the reason for the error, but I don't understand it 🙂
02-17-2022 10:31 AM
I did a small test with a simulation device and found this problem. Now it should work:
02-17-2022 11:05 AM - edited 02-17-2022 11:12 AM
I just tried the code you shared, still getting the same issue.
The problem is solved, again, the following termination character error 🙂 After setting the terminating character to false, it was solved.
I'm really sorry for bothering you about this.
02-18-2022 09:56 AM
I gave the final version of the code. Those who want to add more to the code can add it. It has the knowledge of writing and reading to the sample addresses.
I hope it works well.
02-19-2022 04:49 AM
Did you make by any chance any modifications to the last VIs I posted to make them work or was your last problem that you reported caused by your own modifications to previous VIs? I took a quick look at the VIs you posted and they look the same as my last versions. I would like to know if you changed anything on them to make them work, for my own education.
02-20-2022 01:13 AM
Hi mr. rolfk
Same as Latest VIs you posted, I didn't make any changes. I just created some examples in a VI named "UM7 MAIN" to write and read information to some parameters using these VI's.
The last problem I had was that the terminating character was still active. When VISA encountered the terminating character, the whole series was shutting down. Fixing this fixed the problem.