LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

String from measurements to array

I am currently working on a Agilent 34970A and finally manage to meassure with it in Labview.

But I am having some problems converting a measurement string to a array. Seems like is it only the first string which is converted.

 

I placed some "probes" on the problem places. 

0 Kudos
Message 1 of 8
(3,418 Views)

Look for the VI named "hp34970A list to array" in the instrument driver library package.

 

It takes the comma separated string from the Agilent unit and converts it to a numeric array

 

 

Message 2 of 8
(3,392 Views)

Hi Morten,

 

or use a simple SpreadsheetStringToArray with comma as separator and "%f" as format string...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 3 of 8
(3,376 Views)

The format specifier should at least begin with '%.;', (the user is on a comma decimal system and the device return point based strings.

 

Perhaps you should use '%.;%e'

 

Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
Message 4 of 8
(3,360 Views)

Thanks Ton,

 

should have paid more attention to that 2nd probe...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 8
(3,352 Views)

I have been using the 34970A for years...

 

Here is my "scan now" vi, that I modified from the Agilent example vi's.

 

This one outputs both a numeric and string array just use the one you need.

 

I find I use the strign array ouput to save to files and the numeric output for inscreen indicators.

========================
=== Engineer Ambiguously ===
========================
Message 6 of 8
(3,327 Views)

Thanks for all the fast answers to my question.

All of them solve my problem

 

@RTSLVU

 

It seems like your labview code does not program the Agilent unit.

Are you only getting the readings out in labview ?

 

I am used the advance scan example but the Agilent "buzz's" thouge the channels , instead of the normal "click click click" sound.

Do you/all of you have an idea of what that it ?

 

The measurements I am working on is a test rig, for testing of a Co2 refrigeration plant on my university

0 Kudos
Message 7 of 8
(3,295 Views)

You will find that for best results you should access the 34970A in two steps.

 

1) configure all the channels for the measurment type, range, scaing, etc.

---I have a set of vi's to configure channels for the most common functions I use (AC or DC Volts, Temperature, set scaling, etc)

 

2) Trigger a "scan" and receive the data.

---Thats what the vi I posted does. 

 

In the Vi package from NI there are "EZ"-vi's that set the channel function then do a scan but I have found this to be rather ineffecient. Specially when you need to take lots of measurments in a short time. 

 

The scan speed is determined by several factors like auto ranging is slower conpared to setting the range, 6 digits accuracy is very slow 4 digits is very fast, the number of power line cycles (PLC) used for integration...

 

I jsut had the same conversation with a coworker recently and here is something I found on the Agilent site

 

How can the 34970A measurement speed be maximized?

 

To get the maximum speed in DC measurements with the 34970A, you need to: Right-click here to download pictures. To help protect your privacy, Outlook prevented automatic download of this picture from the Internet.
*       Turn off the displayRight-click here to download pictures. To help protect your privacy, Outlook prevented automatic download of this picture from the Internet.
*       Turn off autozeroRight-click here to download pictures. To help protect your privacy, Outlook prevented automatic download of this picture from the Internet.
*       Turn off autorangingRight-click here to download pictures. To help protect your privacy, Outlook prevented automatic download of this picture from the Internet.
*       Delays zeroRight-click here to download pictures. To help protect your privacy, Outlook prevented automatic download of this picture from the Internet.
*       Turn off scalingRight-click here to download pictures. To help protect your privacy, Outlook prevented automatic download of this picture from the Internet.
*       Turn off alarmsRight-click here to download pictures. To help protect your privacy, Outlook prevented automatic download of this picture from the Internet.
*       Use 4.5 digit modeWith AC measurements, also use the fast filter.
Message Edited by RTSLVU on 05-18-2010 07:24 AM
========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 8 of 8
(3,269 Views)