08-14-2008 03:07 AM
Hi
DAQ assistant is an express vi - which for full applications we'd recommend you dont use - as its slower and has some over heads.
But for prototyping and proofs its fine.
But basically they do the same things.
Hope this helps,
regards
08-14-2008 03:25 AM
08-14-2008 03:14 PM - edited 08-14-2008 03:16 PM
Hi Leni,
From what you've described, I don't even think you need any sort of Case Structure. Consider using the Select Function when possible as well. Here's an example I created real quick. The first DAQ Assistant obtains the voltage from AI0 of the 6009 and the second outputs to port 0.0, 0.1, and 0.2. Does this do everything you need?
08-14-2008 08:21 PM
08-14-2008 08:22 PM
08-15-2008 08:51 AM - edited 08-15-2008 08:59 AM
Hi Leni,
I don't understand why you'd want to use an if-else type of statement for this situation, but it's pretty easy to just insert a case structure in the example I attached to achieve that functionality. I attached a screenshot of 3 different ways to accomplish what you just stated. The first way uses a case structure that allows you to achieve your if-else statement just like you would expect. The second way uses a select function which also can be used for if-else type statements except it doesn't have the ability to keep code from executing. The third way simply returns the same result without ever having to perform any type of if-else functionality and will be the most efficient and preferred method. If you need something more complex than just returning a True or False, then the Case Structure may become needed.