LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabPro VI

I've just purchased some Vernier probes to use in my laboratory system. I've managed to get all four channels reporting to LabVIEW using modified example VIs that come with LabPro toolkit for LabVIEW.

What I can't seem to do is to embed these into a loop structure (I've tried a while loop and a for loop) so that I can have data reporting in a more sophisticated way (eg repeatedly calculating an average of 20 data points and reporting that rather than all the data the LabPro system can produce). When I include a loop around the VI, my whole system crashes.

I'm using LabVIEW 7 on an XP Windows machine. Any advice would be appreciated.
0 Kudos
Message 1 of 3
(2,845 Views)
I don't have any experience with LabPro, but creating a loop around some code should not crash LabVIEW. Looking at the toolkit it looks like it contains a bunch of Express VI, and is basically centered around making DLL calls. My guess is that you're using an Express VI in which it is initializing something, and doing it repeatedly causes LabVIEW to crash due to improper memory writes from the DLL. I have not looked into the documentation in detail, but they should have an example that shows how to use the functions in a loop.
0 Kudos
Message 2 of 3
(2,827 Views)
Thanks so much for that - it took a few days for me to get into the lab and try it out. It was the problem with initialising the LabPro equipment and I've sorted it out now.

Just for interest (if anyone else ends up with this problem), the LabPro occupies a great hunk of the CPUs time when it is running - it needs extended timing delays included to make sure that other parts of the LabVIEW program get a chance to run as well.

Thanks!
0 Kudos
Message 3 of 3
(2,797 Views)