From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

SCPI Commands

Solved!
Go to solution

Hello,

 

I try to communicate with SCPI commands to an instrument.

 

I've done a visa command to send it instruction.

 

The instrument is composed with 4 slots, and the slot 1-0 had 4 channel

 

So with the following VI, I succed to communicate with the instrument with sending the following instruction " lins10 : READ : SCALar : POW: DC?"

The instrument returns me the value of the slot 1-0 Channel 1

 

ti read the other channel  (C1 to C4), i've try to send: différents commands:

lins10: SOURce C1: READ: SCALar: POW: DC

lins10: SENSe C1: READ: SCALar: POW : DC

lins10: FETCh C1: READ: SCALar: POW: DC

lins10: INPut C1: READ: SCALar: POW: DC

 

with différents name: C1;  Channel1 ; 1 etc...

 

 

so someone should tell me how can I do , or the good command to use please.

 

Thank you for your responses

 

0 Kudos
Message 1 of 5
(3,635 Views)

What instrument are you trying to talk to?


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 5
(3,622 Views)

It's a modular Platform. The device is an EXFO; model IQS 600

 

iqs 600 is a Windows 10 Platform.

 

Data acquisition card is a IQS 1740. This is a card to measure optical power transmitted in optical fiber câble.

 

you can see this instrument in this photo

0 Kudos
Message 3 of 5
(3,618 Views)
Solution
Accepted by topic author 968012

I think you want to do the following..

 

LINS10:READ1:SCAL:POW:DC?

LINS10:READ2:SCAL:POW:DC?

LINS10:READ3:SCAL:POW:DC?

LINS10:READ4:SCAL:POW:DC?

 

I'd make a subvi that takes both the logical instrument position (eg. 10) channel number (1-4) as an input, appends it to the READ, then appends the other part and querries the instrument and returns the result.

 

Same thing if you use FETCH..

LINS10:FETC1:SCAL:POW:DC?

 

Those other commands you list don't seem to be valid SCPI commands for the instrument.

 

Hope that helps.

Craig

0 Kudos
Message 4 of 5
(3,583 Views)

Thank you  for your help

 

The following instruction works ;  LINS10 : READ 3: SCAL : POW : DC ?  and with read 1-4

 

you solved my problem and i can advance in my project

0 Kudos
Message 5 of 5
(3,498 Views)