07-08-2013 01:20 PM
I tried what you suggested but the counter increments way too fast...I'm obviously missing something! I've attach the Vi if you can take a look. Stress state.
07-08-2013 02:52 PM
Hi Gary,
which one of your several counters doesn't work correctly?
Are you sure you need to use ExpressVIs to index an element from an array?
Are you sure you have to create multple data copies from the same waveform/data?
Do you really need all those local variables?
Are you sure it's a good idea to delete the label of a control? Did you ever wrote programs in a text-based language and had variables named ""?
07-08-2013 07:03 PM
07-09-2013 08:08 AM
what can I do to avoid the use of so many local variables?
07-09-2013 09:05 AM - edited 07-09-2013 09:05 AM
@glskinner wrote:
I edited the pt2pt and got the functionality I was looking for. Thank you guys for the insight and solutions!
You DID save it as something else, didn't you? Else, you have just made your VI incompatible with everyone else's LabVIEW installations.
[edit] This was about the worst "solution" you could have chosen.
07-09-2013 09:41 AM - edited 07-09-2013 09:42 AM
I didn't edit the VI itself. I just copyed the code and implemented it into mine. I changed the greater than and less than zero functions to target my offset.
"Standing on the shoulders of giants"
07-09-2013 11:19 AM
@glskinner wrote:
I didn't edit the VI itself. I just copyed the code and implemented it into mine. I changed the greater than and less than zero functions to target my offset.
"Standing on the shoulders of giants"
Whew - then it's not nearly so bad. 😉
Still, I think you could definitely benefit from following some of the tutorials on this site. It really was much simpler than modifying the code to suit your needs.