07-13-2014 08:04 PM
07-13-2014 08:21 PM
This seems like it should be relatively easy to acheive, I've managed to break it all down to a minimal program. The most difficult part is the incrementation which I managed by using a while loop, this could cause some problems if you put the values in wrong but thats pretty easy to safegaurd against.
Once you have the increment array you can simply put it into an auto-indexing for loop and use the same measurement/set controls for every loop. The only real difference here is that this uses 1.0, 0.9, ..., 0.2, 0.1, 0.1, 0.2, ..., 0.9, 1.0. But that shouldn't be a problem.
07-13-2014 08:25 PM
oh yeah, i totally forgot about a flat sequence structure >.< ... tho i don't really see the benefit other than being able to see all the code at once, but then it's not as compact...
It's true tho, I'm lazy 😞 If I had a lot of time and motivation, I would absolutely go and read all of millions billions tutorials and instructions, but the code works even tho it's not pretty, so I'm ok with that. I don't really expect to ever use this program again because frankly I don't really like experimental physics for this very reason, spending too much time figuring out why your hardware and software isn't working instead of making any sort of progress %\ ...
Plus I just like figuring things out as I go (*cough*winging it*cough*) :3 ...
I'll look into the things you suggested tho.
07-13-2014 08:26 PM
Would you mind sending me the code please so I could look at it?
07-13-2014 08:39 PM - edited 07-13-2014 08:39 PM
Here's a quick draft. Maybe it will give you some ideas. Modify as needed.
Who made these driver subVIs? If they had error in/out we wouldn't even need the flat sequence. Why are there inputs on the right side of the icon? Very bad style!
07-13-2014 08:41 PM
If you download the PNG and then copy it across you should be able to load it into LabView as a snippet. Its basically taking the inners out of your main VI, flatten it out and put it inside a for loop. Although, one very helpful hint that I picked up along the way to help with timing is:
It means that assuming you have your dataflow correct and everything follows the error lines you can make the program take a pause in the middle of a diagram without needing to encase the entire diagram in a Stacked or Flat Sequence.
07-13-2014 08:56 PM - edited 07-13-2014 09:00 PM
I can proudly say that it wasn't me this time XD Some student who worked on this before me made them, and I've been pretty much learning LabView by looking at how they work. But I'm starting to get the feeling that maybe this isn't the best way to learn it >.<
Thanks for the draft!
07-13-2014 08:56 PM
Oh, that's really neat, thanks! = ^.^ =