04-11-2009 02:12 PM
I'm trying to use UDP Receiver.vi as a subVI. I've created an output connection from the 'Data out" terminal, but when I run the code, nothing shows on the terminal tied to that connector. Inside UDP Receiver, Data out displays any packet payload I send from UDP Sender.vi.
For everones conveninece, I've attached my code.
04-11-2009 02:40 PM
04-11-2009 03:41 PM
04-11-2009 04:23 PM
What OS are you using? I bet it isn't Windows. When I loaded your library, it said it was converted from a different platform. I do have UDP Receiver, but it is from a library called UDP.llb not UDP_Receiver.llb, thus the reason it couldn't be found on my system.
Did you modify that library? If you modify an example, you should rename the file. It looks like you added a data out indicator and connector to that VI. The reason you get no data out is because your subVI is a while loop and in order for that while loop to end and see anything in the Data Out terminal, the front panel as to be open and a user as to hit the stop button.
1. Don't modify NI supplied VI's or examples without renaming them.
2. If you want to use this as a subVI, get rid of the while loop and Stop button from the subVI.
04-11-2009 05:10 PM