LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

I try to manipulate a vector analyzer by cvi code, I want to initialize the frequency, bandwith, number of points and power, I tried with this code but it does not work, help me please

I try to manipulate a vector analyzer VNA by cvi code, I want to initialize the frequency, bandwith, number of points and power, I tried with this code but it does not work, help me please

code :

case EVENT_COMMIT:
   
   rsvna_ConfigureFrequencyStartStop (vnaHandle, 1, 380.0e6, 400.0e6);
   
   rsvna_ConfigureBandwidth(vnaHandle,1,100.0,Normal);
   
   rsvna_ConfigurePower(vnaHandle,1,-10);
             
      rsvna_ConfigureSweepNumberOfPoints (vnaHandle , 1, 300.0e3);

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

First of all, I never used a vector analyzer so I can't help you with the peculiarities of that instrument.

 

Having said that, a few hints come to my mind:

  • You do not tell us which instrument you are using; specifying brand and type of the instrument you could hopefully find somebody that already used it
  • The functions you are calling seem to pertain to some instrument driver: tell us which and where do you donwloaded it
  • In the code there is no evidence of error checking: adding it can possibly give you some hint on what is happening. Errors can be returned either as the return code from the functions or as the value of a global variable (like 'rs232err' in RS-232 library): the documentation for the driver should specify it
  • The very first operation should be the one that returned vnaHandle variable: did you check that that handle is valid?


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 3
(3,410 Views)

 

Thank you Roberto for the answer

I handle a vector analyzer ROHDE & Schwarez znb8 (8 9KHz . 9GHz)

I have no error in the code but it not working against the values that I want insert, not figure on the analyzer

 

0 Kudos
Message 3 of 3
(3,399 Views)