01-16-2020 09:36 AM
I am using Agilent 34972a for data acquisition and I have developed a model to save the data in the excel file but the data is not being saved.
May I know the issue in my programme.
01-16-2020 12:02 PM
Does it ask you for a filename as your program is finishing running? Have you probed the data to see if there is anything there?
01-16-2020 12:30 PM
I have been using teh HP/Agilent/Keysite 3497xA units for years and I am surprised your code works at all...
What you have here is a giant race condition
Your program is going to try to send all of these commands at the same time. Or if the VI's are not re-entrant the sub-vi's will run i a random order. basically BAD PROGRAMMING!!!
Here's one of my examples of how to properly configure and use this device
01-17-2020 02:55 AM
Thank you for your Answer.
I am new to programming for Agilent and LabVIEW can you give a suggestion to learn the skills for good programming like any tutorials or materials?
01-17-2020 02:58 AM
yes, it asked for file location and it is saving only one value in one file. my problem is here i want to save all the values in only one file.
I don't know why it is happening like that?
01-18-2020 07:49 AM
Look in the examples for the driver. There should be something in there to create a Scan List. This would include all of your channels. Then a single read will make the 34972 take a measurement from each channel, resulting in an array of your data. Autoindex on that and you will have a 2D array to save to your file.