04-28-2008 01:06 PM
04-28-2008 01:11 PM
Hi akirasakai,
if you know how to do it seperatly, take this code and insert it side by side into a new vi.
Mike
04-28-2008 01:15 PM
04-28-2008 01:19 PM
Hi akirasakai,
you can put your code side by side into one vi. For instance two while loops parallel is no problem. Can you show your both code portions, then i can show you.
Mike
04-28-2008 01:23 PM
04-28-2008 02:21 PM
What error number or message do you get? What is the difference between client and server, how do you use each one?
In the server VI you have a play sound file immediately followed by a start sound task. You don't have this in the client VI. I'm wondering if you are trying to start something that is already playing and that is why you get an error.
You have a lot of similar code and numerous very similar cases in your case structure. First, make sure each control has a label in the block diagram. You may be able to reduce the amount of code you have by using arrays of references to each indicator. Also consider creating an enum that defines the cases. Use a type def of the enum. This way you can use meaningful labels instead of code numbers. And if you need to add or subtract a case, you can do it by updating the typedef of the enum.
One other problem you may have is that you have numerous picture indicators overlaying each other on the front panel. This may cause performance issues. Consider using only one picture indicator and feed the appropriate picture image to it depending on the case structure.
04-28-2008 02:59 PM
Hi akirasakai,
same questions like Ravens Fan and a tip: you don´t need the "wait" in the client.vi in the top loop, because the loop only executes if you press a button.
Mike