10-08-2013 10:38 AM - edited 10-08-2013 10:40 AM
Hi all,
I am trying to build several LabVIEW VIs and convert them into dlls. I use these dlls then in JAVA applet. I tested many VIs and it works in the JAVA applet. But when the VI has while loop (run continuously for whether averaging process or playing waveform for instance), I have a problem in the JAVA applet that I cannot see any output from the dll. I understand the reason for this as the dll is still running and there is no any return outputs until the dll stop running. I tried to use local variables but the same problem exists. Can anyone help me please?
I attached the VI using LabVIEW 2011.
I appreciate you help
10-08-2013 01:40 PM
How do you plan to press the Stop button if this is turned into a DLL?
10-09-2013 06:02 AM
Thanks Yamaeda,
Actually the only action that we can do is that we eliminate the while loop from the VI and call the dll successively from JAVA. This affects the played waveform signal as discontinuities appears in the sound when we do that.
So I am asking for an alternative solution that won't affect the sound.
10-09-2013 06:07 AM
What you should do is call the play sound through asynchronous call (or vi server), then you can play the sound without waiting for it to finish and dont need a loop. It spawns a separate thread/process that playes the sound.
/Y
10-09-2013 10:06 AM
Thanks for your reply, as I am semi-beginner in LabVIEW. I will read some tutorials about VI server and back to you if I have any questions.
10-09-2013 01:12 PM
See if that's about what you're after. 😉
/Y