01-25-2021 04:24 AM
Hi, I am measuring signal from u2041xa but the measurement speed is very slow when I acquire continuously like 1 meas/sec.
I will be thankful if someone guide me in increasing the measurement speed (The device has measurement speed of upto 50k readings per sec mentioned in manual). The example I am using is attached below. Thanks!!
Solved! Go to Solution.
01-25-2021 04:32 AM
Hi photonick,
@photonick wrote:
I am measuring signal from u2041xa but the measurement speed is very slow when I acquire continuously like 1 meas/sec.
No wonder it's so slow with your VI: you initialize the device communication, configure a lot of measurement parameters and then you read just one sample before closing the communication channel again. All these steps need their time…
@photonick wrote:
I will be thankful if someone guide me in increasing the measurement speed (The device has measurement speed of upto 50k readings per sec mentioned in manual).
Then you should use other example VIs to learn how to initialize the device to use this higher sample rate. And you should read more than just one sample per Read request. And maybe you should initialize just once, read many samples in a loop and close the VISA resource once after the loop…
01-25-2021 04:46 AM
Thank you GerdW,
I have included the while loop and set the time to 1ms...now it takes almost 2 readings per sec. But I really do not what to change. Actually all the blocks of configure and others are predefined in Agilent Tree VI. I need to change something there to increase the speed.
The new VI with while loop is attached
01-25-2021 04:52 AM
Hi photonick,
@photonick wrote:
I have included the while loop and set the time to 1ms...now it takes almost 2 readings per sec. But I really do not what to change. … I need to change something there to increase the speed.
You still don't define a sample rate. And you still only read one sample per read request…
There surely are other example VIs in this device driver which explain the needed options. And if they don't exist you just need to read your device manual to learn about the needed commands!
01-25-2021 04:59 AM
Thank you so much GerdW, yes there are other examples of initiaze, configure , acquire etc many VIs. I am looking into it, I hope to resolve the issue🙄
01-25-2021 09:06 AM
Post back with snippets
I am very familiar with the sensor and do remember that I wrote a driver for it before Keysight provided LabVIEW support. I may need to charge my laptop and translate information to my phone so be patient.
The USERS GUIDE was very helpful to me.
01-25-2021 09:16 AM
Hi JpB,
Nice to hear that, because I am tired of jumping from one VI to other (Agilent U2000 series VI tree) but nothing works. Even I cannot change few things like changing speed from normal to fast, when try to simulate it automatically changes back to normal also the same case with changing buffer size. Yeah I have checked many commands increasing the speed from the manual but in many cases I could not change commands as when try to simulate they automatically go back to the initial settings as already written in the example.
Take your time , I am anxiously waiting for your reply😃.
01-25-2021 09:31 AM - edited 01-25-2021 09:55 AM
OK, but do your part and get some snippets inline so I can see what you have done ... my phone doesn't have LabVIEW my Laptop has no internet ( hence is not currently charged)
It's a fairly simple sensor.
While I am charging Read This
01-26-2021 08:41 AM
Thank you so much JpB!
It is quite helpful indeed. It seems the same example but changes in the measurement block. By the way can you please tell about the measurement speed? like how it can be controlled and what is the exact speed in this particular VI (it is quite fast)?
I checked the blocks setting but I am not getting information about speed? you have used the immediate function.
01-27-2021 06:33 AM
Dear JpB!,
Can you please help in controlling the measurement speed? I need atleast 10k-20K measuerements per sec. How it can be possible. Any idea?