LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Slow measurement speed of power sensor U2041XA (Keysight)

Solved!
Go to solution

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!!

0 Kudos
Message 1 of 15
(2,665 Views)

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…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 15
(2,660 Views)

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

0 Kudos
Message 3 of 15
(2,653 Views)

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!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 15
(2,645 Views)

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🙄

0 Kudos
Message 5 of 15
(2,632 Views)

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. 


"Should be" isn't "Is" -Jay
0 Kudos
Message 6 of 15
(2,599 Views)

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😃

 

0 Kudos
Message 7 of 15
(2,597 Views)

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 


"Should be" isn't "Is" -Jay
0 Kudos
Message 8 of 15
(2,592 Views)

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.

0 Kudos
Message 9 of 15
(2,558 Views)

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?

0 Kudos
Message 10 of 15
(2,543 Views)