03-07-2014 08:08 AM
Hi Munna,
so then why did you even mention Simulink when there is no relation to LabVIEW at all?
Is all this thread only made because you try to translate some Simulink/Matlab code to LabVIEW?
In this case: it doesn't count to translate literally "word by word" but to recreate the programmatic behaviour in a proper way…
03-07-2014 08:16 AM
Dear Jim,
Just we want see all cases at once. Like, True and False case in same winow. But, Case structure will shows only one case at once.
For this we can use true case in one strcure n false case in other str. but we don't want to use Case str.
BR,
Guru.
03-07-2014 08:22 AM
Dear GerdW,
we are not Translating Simulink/Matlab code to LabVIEW.
In Simulink we are not using Switch case even though we are able to create our requirements and we never faced any Memory/Peripheral problem.. So, just I want to know, how much possibility is there is Labview to execute Nested if else without case str.
BR,
Guru
03-07-2014 08:55 AM - edited 03-07-2014 08:55 AM
@Munna232 wrote:
Dear Jim,
Just we want see all cases at once. Like, True and False case in same winow. But, Case structure will shows only one case at once.
For this we can use true case in one strcure n false case in other str. but we don't want to use Case str.
BR,
Guru.
OK, now, please give the reasons for wanting to see all cases at once. I can ask "why" all day...
As a side point, you can "Print" the VI Documentation in such a way as to "see all cases at once".
03-07-2014 09:04 AM
Dear Jim,
we want to see all cases in Block diagram. Not in Documentation.
This is one of our requirement to see all cases at once in Block diagram window So that programmer can see all cases in same time.
BR,
Munna
03-07-2014 09:08 AM
@Munna232 wrote:
Dear Jim,
we want to see all cases in Block diagram. Not in Documentation.
This is one of our requirement to see all cases at once in Block diagram window So that programmer can see all cases in same time.
BR,
Munna
I understand that it is your requirement, but it seems arbitrary. Why is it your requirement? You mentioned earlier that the requirement was your client's request. I'd recommend against using LabVIEW with that kind of a request.
03-07-2014 09:08 AM
03-07-2014 09:14 AM
03-07-2014 09:16 AM - edited 03-07-2014 09:16 AM
@GerdW wrote:
Hi Munna,
who wrote such a requirement and who accepted such a requirement?
I get the feeling that if you haven't talked him out of that requirement yet, no matter how silly, pointless, and arbitrary it is, you aren't going to 🙂
Munna, I would still use case structures. One structure for each case, and leave the "Default" case blank. That will fill your requirements and prevent your code from being executed every time. Still an aweful way to do it, but it will meet your requirements.
03-07-2014 09:17 AM