06-27-2006 02:57 PM
06-28-2006 09:50 AM
06-29-2006 03:08 PM
hi Dennis,
I am able to get around 500 points in 2 mins. Which is around 4.2 readings/second. I am using a 10ms interval but that is far away from the actual reading.
But the ideal speed is 18 readings/sec for my Gaussmeter thru GPIB. I have simplified my whole program into a working vi which does the essential work i want, but it still acts as before.
My computer is definitely fast enough to handle these codes, and i don't know where the problem might be.
Here is the simplified program (i am saving the data into a temporary location as you can see):
06-29-2006 03:23 PM
06-29-2006 03:30 PM
Oh, I am sorry, i don't have 7.1 here...
I hope a screenshot works for you.
06-29-2006 03:46 PM
06-29-2006 03:55 PM
06-29-2006 04:10 PM
06-29-2006 04:19 PM
06-29-2006 04:37 PM
I'm not telling you to do it outside the loop or not use the I/O Assistant. All I'm saying is that whatever is inside each I/O Assistant in the while loop should only be the commands you absolutely need to get a single measurement. Any commands you might be sending to setup range, resolution, whatever, should be done before you enter the while loop.
You might, though, have a bit better speed if you just use a VISA Write and VISA Read inside the while loop instead of the assistant. There may be code in there that you do not have to repeat with every iteration of the loop. For example, in the version 7.1 of the assistant, a VISA Open and VISA Close is called every time. You only need to do either once. These functions don't take a great deal of time but if you are trying to optimize, you should learn how to do things with the lower level functions and not rely on the assistant for everything.