Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Setting hp3649 power supply voltage in IVI steps TS 4

Solved!
Go to solution

I'm trying to set the voltage level of the hp3649 Power Supply in simulation mode with NI IVI driver.

The configuration and measurement are working fine.

When trying to use the software trigger to change the voltage level no change occur and NI spy does not show any error.

I'm setting the extension tab to use software trigger.

The Channel tab output tab use Parameter.Voltage as Voltage Level, Output Range Mode Automatic and Voltage and Current Range 0.

The Limit tab Current Limit is set to Regulate Voltage and Current Limit is 0.5. OVP is disable.

Trigger Tab Trigger Source is software and Trigger Voltage Limit and Triggered Current Limit is 0.

The IVI step sequence is:

Init with Simulation,

Configure

Show Soft Panel

Initiate

Function to set new value for Parameter.Voltage

Software Trigger

 

Please let me if this procedure is right.

Are there other parameters to be set to change the voltage through the IVI-C steps?

Thank you.

 

Elik

0 Kudos
Message 1 of 13
(4,853 Views)
Why would you expect to see a voltage change when you are simulating?
0 Kudos
Message 2 of 13
(4,838 Views)

The test requirement is to set different input voltage level through the test. I do not have the instrument yet and I'm writing the code ahead of time using the simulation IVI.

I can configure the PS using configure IVI in IVI-V step but I prefer to use the SW trigger which should be faster.

Also, although the hp3649x series support voltage output up to 60VDC the NI IVI driver does not support output of moree than 20VDC.

 

Thank you for responding.

 

Elik

0 Kudos
Message 3 of 13
(4,819 Views)

I still don't understand your original question. As long as you are in simulation mode, you will not see any change anywhere and of course you will not get an error.

 

I can't download the IVI driver right now but what happens when you try to set a voltage higher than 20? What kind of error code do you get?

0 Kudos
Message 4 of 13
(4,815 Views)

When trying to configure more than 20V you get an configuration error invalid value.

Attach is the NI spy file.

I'll attach the TS code  in the next message so you'll understand how I'm trying to change the output voltage.

 

Elik

0 Kudos
Message 5 of 13
(4,812 Views)

Attach is the TS code. The change is not dynamic through the simulation mode but occur in different steps.

Elik

0 Kudos
Message 6 of 13
(4,809 Views)

Hello Elik,

     You probably need to specify the specific instrument model that you would like to simulate.  This is done through the setup string.  Please see KB 2L9CCRTL for more details.  Without specifying the model, the IVI specific driver will default to a certain model and use its ranges.  This is not necessary when communicating with a live instrument since the IVI specific driver queries the instrument's model.

 

Cheers,

 

NathanT

0 Kudos
Message 7 of 13
(4,804 Views)

Hi Nathan,

The link point to your previous message whick link to these set of messages.

 

Thanks.

 

Elik

0 Kudos
Message 8 of 13
(4,799 Views)

Hi Nathan,

I did find the link and it does explain the issue. I think it cannot be done in TS through step configuration, only through Labview code.

 

Thanks again.

 

Elik

0 Kudos
Message 9 of 13
(4,797 Views)

Hello Elik,

       I apologize for the bad link, but I am glad that you found what I was referencing.   It can also be done in the IVI Driver Session in MAX, so you are still in luck.  Just look on the "General" Tab for the "Driver Setup" field.

 

Thanks,

 

NathanT

0 Kudos
Message 10 of 13
(4,787 Views)