04-10-2025 04:31 PM
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.
04-11-2025 10:12 AM
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?
04-11-2025 10:21 AM
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?
04-11-2025 10:32 AM
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?
04-11-2025 10:33 AM
PS: I am also attaching the VI in Labview 2018 for reference.
04-11-2025 10:48 AM - edited 04-11-2025 10:48 AM
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.