LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

34401A sampling rate frequency

Hello,

 

I have the Agilent 34401 Read Multiple Measurements.vi example

it appears to read as fast as possible

does anyone have any examples where you can set the sampling frequency?

google AI says maximum is 1kHz / 1 sample per millisecond

so if I set it to 10kHz, I assume I would get an error or maybe it would default to the maximum it could do

but if I want to sample every 100ms for example, how could I do that?

I supposed I could put a 100ms delay in the while loop but this doesnt seem efficient. 

 

Thank you

0 Kudos
Message 1 of 6
(222 Views)

Hi cwhw,

 


@cwhw112 wrote:

if I want to sample every 100ms for example, how could I do that?


I guess you could read the manual for your device to find the answer.

Did you?

Best regards,
GerdW


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

It looks like it can be set with remote interface operation

cwhw112_0-1732929175515.png

 

I dont know how to do this

0 Kudos
Message 3 of 6
(167 Views)

I have been searching online and not finding much of anything.

I made the code:

cwhw112_0-1732935166930.png

and ran it and didnt get an error

but when I ran the example program

cwhw112_1-1732935213722.png

with 10 samples, it only took a few seconds, not 100

0 Kudos
Message 4 of 6
(159 Views)

has anyone ever came across this or have any ideas?

I am willing to try any suggestions.

0 Kudos
Message 5 of 6
(97 Views)

Hi cwhw,

 


@cwhw112 wrote:

has anyone ever came across this or have any ideas?

I am willing to try any suggestions.


The command in your code image is different to the command in the manual image in the message before.

And it seems you don't send an EndOfLine char with the command…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 6
(75 Views)