Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

controlling agilent power supply e363x series

Solved!
Go to solution

I am trying to write a vi where after every 30 secs i want to change the power output of the agilent e363x power supply.

The communication  is via Rs232.

 

Initially i se tht econfiguration of limits and the intial voltage level then i created a sequence of frames and alternatively i put a delay of 30000msec and then a software trigger to change the voltage level.

 

I repeated this sequence about four times.

 

When i run the vi connected to my power supply .the first 30 secs wait time gets executed howver the second delay time lasts only for 10 secs and the last two delay times are executed properly.

 

However when i run the pgm without any instument connected i sent some smaple output form different frames and the delay times of 30 sec was executed in all the four times.

 

1.So I dont understand why in the actual scenario the second wait is not executed or starts executing earlier?

 

2.I got the code from the trigger output example in the driver. However i am wondering if i could just replace that part of code with four more configure output voltage with different levels?

 

 

i have attached the vi for your reference however if you dont have the drivers installed you can refer to the picture file showing atypical delay frame and trigger frame.

 

Clarifications int he problem will be highly appreciated.

 

 

Download All
0 Kudos
Message 1 of 3
(4,175 Views)
Solution
Accepted by topic author siva0182

First remark!

don't use wait until next ms multiple if you want to wait.

It indeed waits but the first call can be ending soon! Somewhere between 0 and max of the time set !

 

Read carefully what it means and use the simple wait ms in your case!

greetings from the Netherlands
Message 2 of 3
(4,171 Views)

Yes I think using wait until multiple was the one which created the problem...i will try on monday and let you know if changing to wait msec solves the problem.

 

Thanks

Siva

 

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