LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Reading current of ELGAR CW2501 AC Power Source

Hi there,
1) How could i read the measured AC current of ELGAR instead of SOUR:CURR? 
2) Where could i find a description of command list of ELGAR CW2501? E.g. meaning of SOUR:CURR?; SOUR:VOLT:RANGE HI; *WAI; etc..
elgar.jpg

0 Kudos
Message 1 of 11
(4,146 Views)

Hi LTBalazs,

 

what about asking ELGAR for a manual, where you can find all the answers you are looking for?

Best regards,
GerdW


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

Hello

 

The programming manual for ELGAR AC power source is available here.It gives brief description of all the commands and refer the manual for reading the current as well.

Hope this helps!

 

-Rahul

Hit KUDOS for Thanks 

0 Kudos
Message 3 of 11
(4,113 Views)

As per the programming manual page 3-1 Section 3.2 Measure Commands

 

MEAS:CURR Returns the measured current

MEAS:CURR:PEAK? Returns the peak current measured

MEAS:CURR:INRUSH? Returns the inrush current measured

 

BTW: SCPI was an attempt at standardization in instrument control, so you will find these commands will be the same on the majority of instruments.

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 4 of 11
(4,090 Views)

Hi there,
When i send command such as MEAS:CURR then i get error. (see table below)

CMD Comment
MEAS:CURR I get the following error: Error 1 occured at Scan From String (arg1) in test.vi Possible reason(s): LabVIEW: An input parameter is invalid. For example if the input is a path, the path might contain a character not allowed by the OS such as ? or @.
MEAS:CURR:PEAK?  Returns the peak current
MEAS:CURR:INRUSH? Haven't yet tested


I entered no characters such as ? or @. When i send MEAS:CURR:PEAK? it works.

0 Kudos
Message 5 of 11
(4,064 Views)

Hi Balazs,

 

debug your VI!

Compare the received string with the ScanFromString format string…

Best regards,
GerdW


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

@LTBALAZS wrote:

Hi there,
When i send command such as MEAS:CURR then i get error. (see table below)

CMD Comment
MEAS:CURR I get the following error: Error 1 occured at Scan From String (arg1) in test.vi Possible reason(s): LabVIEW: An input parameter is invalid. For example if the input is a path, the path might contain a character not allowed by the OS such as ? or @.
MEAS:CURR:PEAK?  Returns the peak current
MEAS:CURR:INRUSH? Haven't yet tested


I entered no characters such as ? or @. When i send MEAS:CURR:PEAK? it works.


Yeah... I was wondering about that.

SCPI queries usually end with a "?" but the manual does not show one on MEAS:CURR.

Have you tried MEAS:CURR?

 

Also have you tried using the LabVIEW drivers for this AC source? (the download is under Software)

 

 

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 7 of 11
(4,043 Views)

The missing question mark is definitely suspect. I would try to add that. A SCPI complying device should not return any data without the question mark at the end. The manual may be a bit misleading here since they try to show the command syntax in a hierarchical structure. The CURR word should have a question mark added only for the standard query, not when used with the more specific queries that follow.

Rolf Kalbermatter
My Blog
0 Kudos
Message 8 of 11
(4,004 Views)

Hi, 
I tried the following commands but none can return the AC current:

CMD

Comment

MEAS:CURR

I get the following error: Error 1 occured at Scan From String (arg1) in test.vi  Possible reason(s): LabVIEW: An input parameter is invalid. For example if the input is a path, the path might contain a character not allowed by the OS such as ? or @.

MEAS:CURR?

0

:MEAS:CURR?

0

MEAS:CURR:PEAK?

Returns the peak current.(it reads always 2.86A even if i restart the main VI)

MEAS:PEAKCURR?

Returns the peak current. (it reads always 2.86A even if i restart the main VI)

:MEASure:CURRent?

0

MEASure:CURRent?

0

 

 


Note: If I send "SOUR:CURR?" then i get it right.

0 Kudos
Message 9 of 11
(3,979 Views)

@LTBALAZS wrote:


Note: If I send "SOUR:CURR?" then i get it right.


 

Is that a question? You tell us, you have the instrument.

 

Also I linked to the driver download above...

 

Speaking of the drivers I looked at the drivers I have for our Elgar Smartwave and inside the "ELSW Current Subsystem.VI" the SCPI command to get the current measurement is: SOUR:CURR:LEV?

 

BTW: Elgar is notorious for poor documentation. 

 

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 10 of 11
(3,957 Views)