Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I control power supply by steps

I forgot to attach these two library files .

Thanks,
Sophie
Download All
0 Kudos
Message 11 of 41
(2,160 Views)
Hi

Labview must be transferring colds, I was sick last week also.
I look at your code tomorrow

greetings from the Netherlands
0 Kudos
Message 12 of 41
(2,150 Views)
Dear Mr.Albert,

Of course LabView is transfering the cold. Hopefully you are recovering from cold. I have made a overall program that modified your example and measure by two meters. Please let me know your opinion that my labview flow is right or not?

Thanks in advance.
Sophie
0 Kudos
Message 13 of 41
(2,128 Views)
Hi

Your flow is almost Ok.

The only thing I would change is the reading of the keithley.
I would do that in the same line as the reading of the HP. just befor or just after the reading of the HP.
In that case it is almost at the same time and belongs to the same power output.
As you set it now you can read the value from the keithley before the output is correct.

The saving of the data could use better naming but is in principle correct.
One way or the other you should not rename all vi's from a library.
The best way to have your own naming would be to name it completely different (don't be subtle but very clear)
Now I'm missing the PSU set output VI.
and I'm very curious why you use units in this vi.

greetings from the Netherlands
0 Kudos
Message 14 of 41
(2,119 Views)
Dear Mr.Albert,

Thanks for your time and kind advice upon the labview VI. Because of your suggestions and help. the program seems OK although I need to do some.I have to use the PSU set output VI because it is to control the amplifier and power supply to control the magnetic field. I have no choice that it is used previously. I have attached  the  PSU  output VI.

Your help really help me to develop my little knowledge on LabView.

regrads,
Sophie
0 Kudos
Message 15 of 41
(2,110 Views)
Hi Sophie

This is what I meant about merging both read out of the agilent and the keithley.
It is not optimal because the keithley driver is very badly written, or better historical a mismatch product.
But it is already quite old and LabVIEW has grown a lot since then.


greetings from the Netherlands
0 Kudos
Message 16 of 41
(2,100 Views)
Dear Mr.Albert,

I am really appreciate your kind contribution. I will  do  measurements and report to you regarding with the outcomes.

Thanks for all.
Sophie
0 Kudos
Message 17 of 41
(2,079 Views)

Dear Mr.Albert,


I have done a couple of measurements with the program that youdone for me. Please let me express my sincere thanks for it. Although the program worked well, some of the data output seem abnormal. I have attached the text file for your kind consideration. I have highlighted the abnormal data.

I will compare the new data with the old data. The normal difference between the old and the new should in the range round about 1~1.2. If the difference between new and old data becomes significant in difference, the spikes occur and that mainly effect upon my graph and data. In order to correct the abnormal data, I need to add subVI  after the output of HP .I have some logic as follows;

Start from X old =0

For True case,

If D X >3 then False case

If D X< 3 then   True case

For example X old =0 , X new =-6.8 , D X >3, then divide with 10 =-0.68 and then feed back as input

                     X old =-6.8   X new =-11.866, D X >3, then divide with 10 =1.18

 

For False case,

                     X old =-1.18   X new =-2.29, D X <3, no need to divide with 10 and pass to output the X new.



I have made a labview VI for data check , but I was difficult how to feed back again to the inputin the case  if the data difference is greater than 3 and divided by 10. Please let me know your kind suggestions .

Thanks in advance.
Sophie

 



Message Edited by Toyota on 11-21-2007 10:58 PM
Download All
0 Kudos
Message 18 of 41
(2,061 Views)
Hi Spohie

The best way to proceed is to find out WHY there is a difference between the expected and real measurement.
Often the voltage or amp or gauss meter has an old value or picked up too much noise.
Or your waiting was too long or too short.
Also in magnetic measurements the hysteresis makes reproducibility more difficult.

But a simple way to check which measurement have to be redone could be the subvi below.

You made two mistakes that ruined your vi.
The first one is that you are interested in a difference >3 without using the absolute value of the difference so losing all values with a differenc of -3 or even bigger!
The second error is the 0 connected to the N of the for loop resulting in a very fast subvi.
LabVIEW is inherently lazy If you connect two arrays to a function or for loop it will execute only the smallest sized array for indexing.
(and the values of the other array until that index.
But will throw away the bigger indexed values of the bigger array.
And if it can do less because you tell the for loop to excute zero times it will also take the smallest (0) number of loops.

inside the case I did not check anymore!

sorry for the bad naming of the vi
greetings from the Netherlands
0 Kudos
Message 19 of 41
(2,050 Views)
Dear Mr.Albert.

I am sorry for my poor labview VI. I really appreciate your suggestions. I have made a couple of measurements with different delay times before and still occur the spikes. The measurement range of Gauss meter cause these spikes . The meter is quite old and I have to convert the data again with serial converter , in order to measure with HP.  I have only one chance to correct the data.
 Without your help and members in this forum, it would be very difficult .

I have made some modifications , in order to connect with the HP meter and the adnormal data that are divided by 10 should feedback to the input as Xnew .

Please let me know your kind opinion upon this.

Thanks in advance.

Sophie
0 Kudos
Message 20 of 41
(2,041 Views)