08-09-2006 02:29 PM
08-10-2006 02:08 AM - edited 08-10-2006 02:08 AM
Hi jjlee,
1) In the future, right-click on the array-to-cluster node and select the cluster size, it must be a fixed size and was set to nine (the default.) LabVIEW can't set it dynamically.
However, I removed th array-to-cluster...
2) I re-arranged your code to understand it better, Re: N=4 I think it does what you want.
There are still some problems like some unititialized shift registers that will retain old data if you run this more than once.
If you have more questions, please re-write the code to fit in 1600x1200 pixels.
Cheers!
Message Edited by tbd on 08-10-2006 02:08 AM
08-10-2006 02:33 PM
Hi tbd,
1. I think the modified VI is still generating 8 for '# of diff channel' on the x-axis. I was hoping to get 4 channels instead for each pair enabled.....so that would be just 4 scope measurements.
2. I also noticed that the program works if all 'enables' on the front panel are OFF. Otherwise, the VI 'disabled' all output channels. I am not why this is case though. So, I hope to clear the all enables to 'OFF' states, before doing 1. I think this will ensure that the VI runs more stable without the front panel status.
3. per uninitialized shift registers, how should I treat them? delete? add control?
4. How to make it to fit in 1600x1200?
thanks!
08-10-2006 10:42 PM
@jjlee wrote:
Hi tbd,
1. I think the modified VI is still generating 8 for '# of diff channel' on the x-axis. I was hoping to get 4 channels instead for each pair enabled.....so that would be just 4 scope measurements.
2. I also noticed that the program works if all 'enables' on the front panel are OFF. Otherwise, the VI 'disabled' all output channels. I am not why this is case though. So, I hope to clear the all enables to 'OFF' states, before doing 1. I think this will ensure that the VI runs more stable without the front panel status.
3. per uninitialized shift registers, how should I treat them? delete? add control?
4. How to make it to fit in 1600x1200?
thanks!
Hi jjlee,
1) Why do you set N = 8, if you only want the loop to iterate 4 times?
2) This is the same behaviour as your original VI - I haven't changed this. The scope-measurement occurrs in the TRUE case; the NAND is True when both Enables = False. So you get a scope measurement when both enables are false. Maybe you want a scope measurement when Either Enable is true(?) If so, change the the NAND to an OR. Maybe you want a scope measurement only when both Enables are true(?) if so, change the NAND to an AND.
3) Go to the Array palette and find Initialize array. Use it to build an empty array of the same type as the shift register, and wire it to the shift register (left side of loop)
4) Set your monitor to 1600 x 1200 pixels and try to make everthing visible without scrolling.
Cheers!
08-11-2006 09:43 AM
1) Why do you set N = 8, if you only want the loop to iterate 4 times?
-à I changed the N=8 to 4 then reinitialized all to default (all to disable states) then ran the ‘%xtalk vs. # of channel’ case. It seems like the VI enables the instruments 2 at a time (at least in the front panel), but it only enabled the first 4 instruments. I guess there must a glitch or two that prevents the VI to work as expected.
2) This is the same behaviour as your original VI - I haven't changed this. The scope-measurement occurrs in the TRUE case; the NAND is True when both Enables = False. So you get a scope measurement when both enables are false. Maybe you want a scope measurement when Either Enable is true(?) If so, change the the NAND to an OR. Maybe you want a scope measurement only when both Enables are true(?) if so, change the NAND to an
-à I used the NAND because I plan on setting all instruments to ‘disable’ states, before it starts enable (2 instruments at a time), measure the data and save the data. I think this would be necessary to clear to set all to disable and start to enable instruments. BTW, is there a simple way to disable all aggressor instruments before the ‘for loop’ to run?
3) Go to the Array palette and find Initialize array. Use it to build an empty array of the same type as the shift register, and wire it to the shift register (left side of loop)
à Is this how it is done? (plz see the attached)
4) Set your monitor to 1600 x 1200 pixels and try to make everthing visible without scrolling.
-à The best I could do was to set to 1280 x 1024 with the old 15” CRT.
5) I couldn't quite understand your rationale for using 'Quotient & Remainer' (??)
Thanks!
08-11-2006 08:45 PM
Hi jjlee,
You're right, the Quotent & Remainder doesn't make sense - at least not if N=4.
Based on this diagram and your questions, I recommend you look at the LabVIEW style guide - at least pages 6-18 through 6-22.
Get a simple example working (with one instrument) then add functionality incrementally.
Right now there are too many problems to address - especially with the logic scattered about over this enormous diagram.
Be nice to the people whos help you're seeking - condense the logic so that it fits in a smaller area.
Cheers!
08-13-2006 05:39 PM
08-15-2006 01:58 PM