02-14-2006 10:44 AM
02-14-2006 11:55 AM
You have delays and sequences all over the place as well as delays. The first sequence has 1 sec of delays then you measure voltage, then there is another possible delay in based on sample time (the while loop serves no purpose as you have wired it to only exicute once), then you delay for 500ms, then you delay another 1sec before the current measurement. After all of that you do some data processing and save to a file (this also takes time). Your code should only occupy 1 screen and avoid using sequence structures as they hide code and make it hard to follow.
Use a timed loop to collect data, you shouldn't need to put delays between the VISA writes.
02-14-2006 12:31 PM - edited 02-14-2006 12:31 PM
Here's what I was talking about. This VI has NOT been Tested, as I don't have the equipment. Give it a try you may have to play with the delay. See attached picture, I have also attached the VI saved in LV 7.1.1
Hope this points you in the right direction.
Message Edited by AndrewAlford on 02-14-2006 11:31 AM
02-14-2006 12:39 PM
hi there
the reason for all the delays (!), is that if you dont put them in the meter clicks and switches as needed, but no data is sent back to the screen, so the delays probably give the meter time to react before processing the information.
its all very messy, but it works,. but i need to sample 1 sec intervals.
will have a look at your proposal.
eric
02-14-2006 12:43 PM
02-14-2006 12:52 PM
02-14-2006 12:54 PM
Andrew,
i got version 7 here and cant load your vi's sadly. why is labview like this?! grrrrrrrrr
02-14-2006 01:23 PM
02-14-2006 01:29 PM
02-14-2006 03:22 PM
hi there
can you go through your vi please? i have it running now, but the meter doesnt switch between volts and current, just an endless clicking noise......
how do i change the timing? also you got some blocks i dont understand, the array and the o/p and i/p nodes.
regards
eric