07-20-2016 01:17 PM
Hello All,
I found one example for subpanel in the labview you can find it in (Help -> Find Example -> Search -> Enter keyword (s) and then write subpanel you will find Multiple VIs in subpanel)
This example work fine with different subvi and my idea is that I have three signals (sine, square and triangle waves) and each signal comes from com port as two bytes ( I have five bytes from 0 -to- 5) = (byte 0&1 for sine wave, byte 2&3 for square wave, byte 4&5 for triangle wave)
the signal will be recievied as one at a time not all togather. So, if I received sine wave that mean byte 0&1, and if I received square wave that mean byte 2&3... so my idea here I want a sign these particular byte to subpanel. So, if the labview received byte 4&5, the subpanel will display the triangle wave..and so on.
please see attached figure and see example that I explaind first.
Kind Regards
ennng
07-20-2016 02:07 PM
Since you are reacting to the serial port, the event structure makes no sense. So you can probably just get rid of it.
07-20-2016 02:16 PM
Thank you crossrulz for your quick replay.
Yes, I agree that the flow design does not make any sense as I would like to show the idea.
In that working example, we need to choose (sine graph or current time..) but my idea I need to display in subpanel as received byte.
Please give me an example I appreciate your help.
Kind Regards
ennng
07-21-2016 12:25 AM
Instead of using subvi/subpanel, try to use tab for your display; based on message received hide\visible the tab using properties.
07-21-2016 05:39 AM
07-21-2016 05:47 AM
Thank you very much Mike for your suggustion.
I am not sure whether or not subpanels can be done automatic based on the data received !
because my idea is that base on the byte that the VI received the corresponding window should appear in subpanel.
so, byte 0&1 for sine wave display, byte 2&3 for square wave display and byte 4&5 for triangle wave display. All, these coming from com port and should be one of them at a time.
Please if you example for that or a simple VI to start with I really appreciate that and thank you again.
Kind Regards
ennn
07-21-2016 06:44 AM
07-22-2016 02:05 PM
Thank you for your sugguestions.
Please guys any help! I tried many but non of which work!
Please see attached figure!
I think this is very easy for people here who got talent please guy help.
What I want is that I want to display a waveform in subpanel related on byte that received! (byte 0&1 for sine wave, byte 2&3 for square wave and byte 4&5 for triangle wave) and one signel will come at a time.
Kind Regards
enng