LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Hall effect gaussmeter

Solved!
Go to solution

Ok Lynn,thanks a lot!!Although your program isn't performing right at my labview(i have 8.5), i can see by its structure what you're doing!

I think you can save your program so that it can work in labview 8.5,can't you?If you can i'd be glad if you posted it here.One way or another,my work is done and you helped a lot for it!!

Many thanks again!!Smiley Happy

0 Kudos
Message 11 of 35
(1,359 Views)

I did (attempt to) save it for version 8.5.  If it did not save, how can you see the structure?

 

Oh!  I think I know what is happening.  I do not have DAQmx on this computer so I put a diagram disable structure around the DAQ Assistant in the Timeout case.  If you remove the diagram disable structure, does it work as expected?

 

Otherwise, please explain what is not "performing right."

 

Lynn 

0 Kudos
Message 12 of 35
(1,353 Views)
That's exactly what i did meant!When i was trying to measure the voltage,it always said zero on the indicator!I hadn't seen your disable structure,and i thought it was compatibilty error becouse of a DAQ error i was getting.But now i removed it and it works fine!!!All good Lynn,thanks again!!
0 Kudos
Message 13 of 35
(1,351 Views)

I do that a lot so that i can test a portion of a VI which has nothing with the DAQ stuff.  I should have mentioned that I disabled it, particularly since you indicated your lack of experience in the original post.  Sorry for the confusion.

 

Lynn 

0 Kudos
Message 14 of 35
(1,339 Views)

No confusion,on the contrary you've been more than helpful for me!!

Do you know if there's a way for my indicator limits to remain the same(from -10 to 10) at any scale and my output value from DAQ to be multiplied every time with the appropriate number so that it can be indicated?

For example,when i have 1000 Gauss,my indicator correctly shows 1000 when the scale of 1kG is set. How can i make it show 1 with the indicator limits from -10 to 10?I've managed to change the limits for every case,but i don't know how to multiply my measurement with a different number in each case..It looks to be easy to put a multiplier in each scale,but i dont know how..Excuse me for my rookie questions...

0 Kudos
Message 15 of 35
(1,325 Views)

I am not sure I follow your question.  Are you saying that the measurement always produces, for example, +/-1 V full scale regardless of the range?

 

If so, two ways of changing your displays.  One is to multiply the data coming out of the DAQ Assistant by a scaling constant before passing it to the displays.  The other is to "fake" the display scales.  The display would always be +/- 1 internally, but the scale markers would be changed.  The latter approach is rather complicated to implement, so I would recommend the former.

 

In the Scale: Value Change cases add a constant To multiply the data.  It might already be the Scale.Maximum value.  Pass this value via a shift register to the displays in the timeout event case.

 

Lynn 

Message 16 of 35
(1,315 Views)
Yes,that's what i want to do.In each of the 4 different scales,i want to multiply my DAQ assisant output data with a different constant every time in each scale. But if i put it the timeout event case,it's the same multiplier for each scale.I want it to be different.So my really rookie question is how to change my multiplier for each scale...(Excuse me Lynn for my many questions!I can assure you it's the last one!Or i hope so..)
0 Kudos
Message 17 of 35
(1,294 Views)

Here is a chance to learn about an important LV tool: the shift register.  The images below show how to modify the program I posted earlier.  Follow the directions in my previous post.

 

Lynn

 

Gaussmeter timeout.png 

Gaussmeter scale change.png 

Message 18 of 35
(1,288 Views)
It's done!!Thanks a lot Lynn!!Smiley Very Happy
0 Kudos
Message 19 of 35
(1,282 Views)

I am a newbie to labview and using labview 9.I am using your file for designing a gaussmeter.I am facing the difficulties listed below..

1. how to add and delete buttons in this .ctl file?(i want to use 2 buttons instead of 4 now,but the required number may increase later on) .

2. how to create blue cluster like block used in this block diagram(named "scale" in your VI )?

We have tried to build the .ctl file like yours, using clusters in the type def .ctl file, but it didnt work and is pink in appearance in the block diagram of the VI , unlike yours which is blue(having datatype unsigned  32).

Many thanks in advance.

0 Kudos
Message 20 of 35
(907 Views)