From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
11-21-2018 05:37 AM
Hello! I'm doing my bachelor thesis and I really need some help because it was four days ago when I got stuck with this problem and I don't know how to solve it.
I am implementing GoBackN protocol. My LabVIEW program gets a packet from Arduino with this format:
%d#%d#%d#%d, i.e. 1#0#0#0 where 000 are the data and I have to store them in a buffer if Sequence Number is correct, I mean if the packet arrives in the expected order.
I need to check the buffer to know if the communication is working properly, but the array seems to be "empty", even though I have checked that I am writing data in it.
I wonder that it might be because the while loop iterates very quickly but I don't really don't know if this is the reason, and if so, how to solve it.
I would really appreciate any help!!
Solved! Go to Solution.
11-21-2018 09:44 AM
You have two output tunnels with the array that have "use default if unwired" and they are not wired. This will pass out an empty array. Once you have an empty array you can't replace any elements.
11-21-2018 01:28 PM - edited 11-21-2018 01:29 PM
Steven is right.
The easiest way to fix would be to right-click the hollow output tunnel and use the linked tunnel feature. (If no wire exist, you need to tell it where the linked tunnel is)
11-21-2018 03:50 PM - edited 11-21-2018 03:50 PM
Do I remember correctly that LV used to default to "Use Default If Unwired" and it caused so much heartache exactly like this that they changed the default setting to have "Use Default If Unwired" unchecked? (Still defaults to "Use Default If Unwired" in an event structure, though.) At or about the same time they introduced the Linked Input Tunnel?
11-21-2018 04:24 PM
@billko wrote:
Do I remember correctly that LV used to default to "Use Default If Unwired" ...
I think it was always FALSE for case structures and TRUE for event structures (and I like these defaults :D)
Of course in the very (very!) distant past, "use default if unwired" was not even possible and everything needed to be wired explicitly. 😄
11-21-2018 07:20 PM
@altenbach wrote:
@billko wrote:
Do I remember correctly that LV used to default to "Use Default If Unwired" ...
I think it was always FALSE for case structures and TRUE for event structures (and I like these defaults :D)
Of course in the very (very!) distant past, "use default if unwired" was not even possible and everything needed to be wired explicitly. 😄
Oops, sorry - I was replying in the wrong universe. In this one, you are right, of course. 😉
11-22-2018 02:25 AM
Thank you very much StevenD and altenbach for your quick response! It really solved my problem 🙂