LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

possible bug in Agilent ENA Series LabVIEW Plug and Play (project style) Instrument driver

Solved!
Go to solution
think I found a bug in this driver and wanted to get confirmation.  (Here is the link to the driver page, to aid in locating the driver:
http://sine.ni.com/apps/utf8/niid_web_display.download_page?p_id_guid=74D1F1D4EB5268E8E04400144FB7D2...)

The VI in question is Public >> Action-Status >> Configure >> Marker Configuration >> Configure Marker.vi.

The issue I saw was that the marker was not being set to the frequency passed in to the VI.  (The parameter named 'Stimulus.')  I looked at the programmer's guide for the Agilent 5071B and found that the format string for the SCPI command should probably be:

%.;:CALC%ld:MARK%ld %s;
:CALC%ld:MARK%ld:X %lf

The ":X" was missing but seems necessary to me.

Can this be verified?

Thanks for taking the time to look at this.

-Joel
0 Kudos
Message 1 of 4
(3,041 Views)
Solution
Accepted by topic author Snood1

Snood1,

 

I took a look at the driver and the programmer's manual. It looks to me like the driver behaves as the manual describes it should. The Configure Marker.vi uses the following string to format the command:

 

 

%.;:CALC%ld:MARK%ld %s; :CALC%ld:MARK%ld:X %lf

 

Is this what you are seeing too? It sounds like this is what you added yourself. What was the previous text? This was the text that was there when I downloaded the driver. When interpreted, it looks like this

 

 

:CALC1:MARK1 OFF; :CALC1:MARK1:X 0.000000

 

As described in the ENA Series Programmer's Manual, the first line turns the marker display OFF (page 283). The second line sets the stimulus value of marker 1 (page 295).

 

Let me know if this looks OK to you.

 

Regards,

 

---

Peter Flores
Applications Engineer
0 Kudos
Message 2 of 4
(3,016 Views)

Yes, the driver just got fixed, so you are seeing the fixed version.  (I submitted the bug both here and via instrument.drivers@ni.com.)  (See the "readme" note for version 2.0.1.)  I think the old format string was

 

 %.;:CALC%ld:MARK%ld %s;

:CALC%ld:MARK%ld %lf

 


(The :X was omitted.)

 

-Joel

0 Kudos
Message 3 of 4
(3,003 Views)

Great,

 

Thanks for the feedback!

---

Peter Flores
Applications Engineer
0 Kudos
Message 4 of 4
(2,975 Views)