LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Dual input and output fetch data (Agilent N1912A Power Meter)

I tried modding the example that I download from NI website. It took data for 1 channel at a time and displays it.
I modded to try to get data from 2 Channels now and it keeps giving me error. it is a pretty simple code but yet have not got it to work.
Can someone help me with this?
 
Thanks
Randy
Download All
0 Kudos
Message 1 of 14
(5,123 Views)

What specific error are you receiving?

Aaron R.
Applications Engineering
National Instruments



Message Edited by A_Ryan on 12-12-2007 10:49 AM
A_Ryan
AES
National Instruments
0 Kudos
Message 2 of 14
(5,109 Views)

This is the error message I get.

 

Error 81 occurred at Format Into String (arg 2) in N191X Fetch 2 Channel.vi

0 Kudos
Message 3 of 14
(5,105 Views)
Randy,
 
Error Code 81 - Format specifier type mismatch. A format specifier does not match the data type of its corresponding argument in a Format Into String or Scan From String function.
 
I found this by searching the LabVIEW Error codes.  LabVIEW error codes: ni.com>>search General LabVIEW error codes>> select the correct link>> find the appropriate number
 
Can you tell me what example you started with, and whether or not you were able to get that to work?  Another question I do have is in the second N191X Fetch 2 Channel, I found two loose constant strings near the Format Into Strings, what are those and did you use them in the original example?
A_Ryan
AES
National Instruments
0 Kudos
Message 4 of 14
(5,102 Views)
The original file I downloaded was Fetch Measurement.vi . It is attached on the first post.
And yes, the example worked fine. And since I have 2 channels, thats when I started to mod the file so I can read both at the same time.
I will check on the two unconnects.
 
Thanks


Message Edited by randyram on 12-12-2007 11:58 AM
0 Kudos
Message 5 of 14
(5,094 Views)

Randy,

I think the example that you would like to start with is located below.  The Fetch Measurement.vi, isn't exactly what you would like to do based upon your posts.  To acquire measurements, see the link below.  With specific regard to the Fetch Measurement.vi, I have searched extensively to try to locate this specific vi, and I still am unable to do so.  Where did you find it specifically? 

Agilent N191X Series

Download the zip file (Agilent N191X Series)>> extract files>> open Agilent N191X Series folder>> Examples>> Agilent N191X Series Acquire Measurement.vi

A_Ryan
AES
National Instruments
0 Kudos
Message 6 of 14
(5,084 Views)
It just happens that, I actually got it from the files you attached.
It's in the Aquire Measurement and under read I believe.
 
The main purpose for to change the fetch.vi is actually then insert it back to the Aquire Measurements.vi. That way, I thought I will get 2 readings instead of 1.
 
 
0 Kudos
Message 7 of 14
(5,075 Views)

Randy,

I have been able to locate the sub vi in question.  With regard to Agilent N191X Series Acquire Measurement.vi example you will notice several key items on the front panel.  One of particular interest is Combination in this particular box you can measure a single channel, a difference between two channels, or a ratio between those channels.  If you want to acquire both single channels(A & B), you can do it sequentially.  Which means you could read channel A, then read channel B.



Message Edited by A_Ryan on 12-12-2007 03:26 PM
A_Ryan
AES
National Instruments
0 Kudos
Message 8 of 14
(5,067 Views)
okay. I shall try that.
I'll let you know what happens.
 
Thanks
0 Kudos
Message 9 of 14
(5,061 Views)
I just using the aquire trace from the example. And for some reason it does not work at all.
I get these messages.
 
Instrument reports:
-221,"Settings conflict;:TRAC1:STAT ON;<Err>"
-113,"Undefined header;:SENS1:TRAC:X:<Err>SCAL:PDIV 1.000000E-5;"
+0,"No error"
 
I didn't change anything though. Just pointed the address to 20.
0 Kudos
Message 10 of 14
(5,043 Views)