08-11-2009 07:01 AM - edited 08-11-2009 07:01 AM
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?
08-11-2009 07:09 AM
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
08-11-2009 07:22 AM
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
And he already agreed on that
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!
08-11-2009 07:29 AM
Hello Alain,
Just one channel.
Nevica