05-24-2006 05:38 PM
05-24-2006 06:22 PM
05-24-2006 06:38 PM
05-24-2006 07:02 PM
Actually the outputs should be
1st high level: c=1, e=1, f=0, m=0
2nd high level: c=2, e=0, f=1, m=0
3rd high level: c=1, e=1, f=0, m=0
all low levels: c=0, m=1, e=0, f=0
0= boolean low, 1= boolean high.
05-25-2006 03:19 PM
Hi Kronus,
As altenbach points out, since your forumla node never completes, it never passes out any data. The forumla node is like a subVI. It executes one time once it receives all of its inputs. Once it has completely finished executing the code it holds, it passes out the final outputs. The way your code is currently structured, your output variables will be written to only one time.
Perhaps a better architecture would be to do your data acquisition in a loop and monitor the signal with a case statement there. You can use a value to count the number of "high levels" and use the case structure to set the outputs to the appropriate values for the current number of "high levels". It looks like the dataflow paradigm may be tripping you up. If you're new to LabVIEW, check out these links:
Three Hour Introduction to LabVIEW
Six Hour Introduction to LabVIEW
Hope this helps!
Megan B.
National Instruments