LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Mysterious data points %\ ...

Solved!
Go to solution
A state machine, error in/out connections, even a flat sequence structure. There are hundreds of discussions with the details on alternatives.
Message 11 of 18
(1,120 Views)

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.

 Incrementor.png

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.

Message 12 of 18
(1,116 Views)

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.

 

0 Kudos
Message 13 of 18
(1,109 Views)

Would you mind sending me the code please so I could look at it?

0 Kudos
Message 14 of 18
(1,105 Views)

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!

Message 15 of 18
(1,100 Views)

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:

Delay.png

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.

Message 16 of 18
(1,098 Views)

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!

0 Kudos
Message 17 of 18
(1,087 Views)

Oh, that's really neat, thanks! = ^.^ =

0 Kudos
Message 18 of 18
(1,084 Views)