LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Doubt on how to read Agilent DAQ meter values in Labview for infinite time without timing out on number of triggers.

Hi all,

I am building a VI to measure voltage from the Agilent 34401 bench meter. The meter only allows us to trigger for 50000 times. Meaning if I trigger it every 100ms. I can just run for an hour. Can someone help me build a loop where I am able to reinitialize the equipment every time the trigger reaches 50000 attempts? That way I am able to run and read data from the bench meter for infinite amount of time.  Can I have a for loop to do the same? I am just not able to think about it.

 

Thank you.

 

Download All
0 Kudos
Message 1 of 6
(128 Views)

A few things here:

 

You posted your code using LabVIEW 2025. Most people will not be using 2025. If you post at a lower version you will get more help.

 

How much data do you need to get? How often do you need to get this data? Can you give us more info about what it is that you need to do from a big picture so we can help?

Tim
GHSP
0 Kudos
Message 2 of 6
(71 Views)

Hi Tim,

I am fine with getting the data every second. I will transfer it over CAN with the same rate. I should be able to get data continuously for more than 12 hours.

 

Is there a way to get data continuously from the agilent meter without it being timeout for more than 12 hours?

 

 

 

One way is running the VI reentrant so that VI re-initializes the Agilent daq every time it reaches its threshold on the max number of triggers.

 

But I am not able to do that.

 

Is there any other way to fetch samples from the agilent meter like forever without it hitting its threshold?

0 Kudos
Message 3 of 6
(68 Views)

There is usually many ways to get data from this meter. It will depend on what version you purchased and what options it has. We use TCP and USB to do most of our data acquisition. You can use the standard SCPI commands to get the values out of the system without using triggering. Especially if you only want that value once a second. What device do you have? What connections is it capable of?

 

Can you post your code using a lower version of LabVIEW?

Tim
GHSP
0 Kudos
Message 4 of 6
(63 Views)

PS: I am also attaching the VI in Labview 2018 for reference.

0 Kudos
Message 5 of 6
(62 Views)

This document will give you all of the commands to do what you want with this device.

 

https://www.keysight.com/us/en/assets/9018-01063/user-manuals/9018-01063.pdf

 

All of the SCPI commands are detailed out in that manual.

Tim
GHSP
0 Kudos
Message 6 of 6
(49 Views)