I need a bit help from anyone, Firstly I am new to Labview and I have to logg the data using keithley 2000, I dont have any connection problem, I am able to run NI "Read single" and "Read Multiple" vi's sucessfully. Now the Problem I have is the sampling rate, which I need to be an input between 1-10 samples per second, I have attached the VI which I created to record I no where get the expected output Its always timeout error. I have one more VI in which everything is inside while which I use to Logg now that works but it gives one reading every 1 second or more. Kindly help
Settings I am using is: RS232, serial to usb adapter, Baud rate 19200
Thanks in advance
which driver are you using for your data logger? Can you attach it in your post or provide a link otherwise the VI is not working.
How much data are you trying to collect? Over what period of time are you collecting this data?
Hy Branni, I am using the one downloaded from NI website the Plug and play IVI I think... I have attached the zip file
Hello Crossrulz, I need to collect for minimum 5-10 minutes and If possible sometimes till 30 minutes but sample rate must be minimum 10 Samples/Second. Looking forward for any help. Thankyou
I cleaned up your VI some. One of the biggest things I saw was that you were closing the driver inside of your loop. You shouldn't close until after you are done with it. So I moved it to after your loop. Also made your formatting of the data a lot simpler.
Reading a DMM measurement and saving it to disk in 100ms seems like it will be a slight stretch. We may have to go to a Producer/Consumer setup to move the file writing into another loop so that the acquiring of data is (somewhat) consistant.
Hello Crossrulz, your solution is acceptable upto some point as I am able to get a average of 5 readings/second, whatever the sampling value I give more than 5 sample/sec I get a sequence of 6-6-5 readings/second. Looking forward for further help.
Have you tested with your multimeter how many readings you get ??
I don't have a DMM here to test with. I am a little surprised you are only getting ~5 samples/second. I thought it would be closer to the 10.
Your problem is that you are getting too much data for the meter to hold in its buffer, so we can't just tell it to sample at a specific rate and gather the data 5 minutes later. But at the same time, we are struggling with talking to the meter fast enough to get the rate that you want.
Try taking out the code for the triggers. Hopefully the meter will retake a measurement each time you perform a single read. If that doesn't work, I'll have to dig into my programmer's manual to look up some commands.