LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Case Structure Problem?

Solved!
Go to solution

 


Hello Alain,

 

Yes, the time delays are important. The instrument can only acquire data every 300 - 400 ms.

 

The time delays are safety nets to ensure that instrument works properly. 

 

Nevica


 

 

You can try the vi I attached and in case 4 you can use a sequence structure with all the delays for automatic testing. Will it not do?

Message Edited by muks on 08-11-2009 05:31 PM
0 Kudos
Message 21 of 24
(533 Views)

Thanks Muks,

 

I see how to do it now. You are essentially assigning button presses to a string which is indexed to each button (False - off and True-on). Its a good way of doing it.  

 

Each channel needs to continually acquire data (depending upon which button I press by selecting it). So I need to place inside each case structure an if-then-else structure to repeat the acquisition on that instrument. Will not this work?

 

Nevica

0 Kudos
Message 22 of 24
(529 Views)

nevica wrote:

Each channel needs to continually acquire data (depending upon which button I press by selecting it).

Nevica


Will you press multiple buttons at the same time?

I mean, do you need to read from multiple instruments at the same time?

If the answer is yes, then the way of working suggested by Muks isn't the right way Smiley Sad

And he already agreed on that Smiley Very Happy

 

If you need to read from multiple instruments at the same time, then you need three parallel case structures with their own loops to continuously acquire data from each instrument.

If you read from only one instrument at the time, then you can proceed with Muks code.

 

So please answer the question in blue on previous page so that we can suggest to right way to do the job.

Thanks for that!

Message 23 of 24
(524 Views)

Hello Alain,

 

Just one channel.  

 

Nevica

0 Kudos
Message 24 of 24
(518 Views)