LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

is it possible to add enable control to a case structure.

i have to find add/subtract the data only if need it.Not all the time when the  vi runs. I have added the difft operations-add,sub.div and mul in a case struct and executed it.But this part of the prg is running all the time when the prg is running. Can i give a control or enable option to the case structure ? I have tried to write this part as a subvi.But again i dont want to run this always.
0 Kudos
Message 1 of 8
(3,202 Views)

hi malavi,

Can you post your vi?

Gaurav k
CLD Certified !!!!!
Do not forget to Mark solution and to give Kudo if problem is solved.
0 Kudos
Message 2 of 8
(3,193 Views)

Add a default case to the list of cases.  So when you dont want any operation execute the default case.

 

Post back for queries.

With regards,
JK
(Certified LabVIEW Developer)
Give Kudos for Good Answers, and Mark it a solution if your problem is solved.
0 Kudos
Message 3 of 8
(3,192 Views)
0 Kudos
Message 4 of 8
(3,179 Views)

thanx...

I have one more problem. I have added "Read from LVM"  as input data and  performed the operations.. Again each time the whole prg is executed. Is there any option to call this as a subvi from the main prg only when it is needed.

 

0 Kudos
Message 5 of 8
(3,169 Views)

Jus add one more options none with value of -1 and make this case as default which will prevent the execution of the other cases.

 

Hope this helps

With regards,
JK
(Certified LabVIEW Developer)
Give Kudos for Good Answers, and Mark it a solution if your problem is solved.
0 Kudos
Message 6 of 8
(3,159 Views)

sub vi options.JPG

In subvi choose the above options and run the attached vi.

Download All
0 Kudos
Message 7 of 8
(3,158 Views)
did any of the suggestion solve your problem?
0 Kudos
Message 8 of 8
(3,091 Views)