LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is the select-function the only "switching"-function?

I'm using the SELECT-Function to control the stream of string-data to my 488-devices. Are there any other function, which can switch data-string on/off in relation to a boolean? (I use labview 6i)
0 Kudos
Message 1 of 4
(2,712 Views)
You could use a CASE statement - one case supplies an empty string, the other case supplies a different string.

You could use a PICK LINE AND APPEND function to choose A or B to go out.

You could use a CASE statement to output or not output something.


Why is SELECT not adequate for what you need?
Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

Message 2 of 4
(2,712 Views)
OK thank you,
i think the CASE statement would be the best option for my application.(I hesitated in using the CASE for this, because i am a beginner in LABVIEW and i dont want to use to many CASE in my application)
I think that the "SELECT" is not the best choice, because i don't want to write a empty instruction into my peripheral displacement device.
0 Kudos
Message 3 of 4
(2,712 Views)
I hesitated in using the CASE for this, because i am a beginner in LABVIEW and i dont want to use to many CASE in my application


No such thing as "too many CASE" statements. Don't worry about it. If you're running out of room on the diagram, then use a sequence to put things in separate frames, or use subVIs to put things into separate VIs.

If your choice is to write something or not write something, then you have to use a CASE. The SELECT option will let you write THIS, or write THAT, but you have to write something (even if it's empty).

Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 4 of 4
(2,712 Views)