LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

motor hall sensor

Hello,

 

im using Labview almost 6 months and i was proud of the Teststand which i was programming. The vi´s are attached.

Anyway now my .vi is  not suitable anymore and i have to improve it.

 

Im using compact DAQ equipment :

-Chassis 9188

-DO 9474

-AI 9222

-DIO 9401 with 2 Counter

-CAN and LIN Interface

-Power Supply with Labview Driver

 

So due to my problem.

The main idea of my .vi is to make a endurance Test with the motor, therefore im reading with the AI the Hall impulses and and when a minmum and a maximum Impulse is reached the motor shall always change the direction until the given number of cycle is reached. Then the next voltage area shall be testet automatically.

This works allready but i have a problem with the current diagramm in the TEST.VI. i need this current diagramm in my Sequence.vi because this is my main Vi.

How to bring the diagramm from the TEST.VI in my Sequence.VI???

 

Another problem is my Stop button...when i press stop its only stopping the cycle and not the whole vi. How do realize that??

 

 

I acutually dont like how i have programmed my first vi ever. but i dont know how to make it better. The automatically motor direction change is my biggest challange.

 

So im really happy to the some professional support.

 

Best regards

ck

 

 

 

Download All
0 Kudos
Message 1 of 2
(2,724 Views)

Hello ck,

 

I was looking into your VI's Smiley Wink

To get the diagram from the test.vi into the main.vi several ways are possible! In my opinion, the easiest way to get the values form the diagram in your main.vi, is to implement your test.vi into the the main.vi as a SubVI. Also possible is a functional global variable or to creat a queue to pass the data from the one vi into the other.

How you want to run this test.vi exactly? 

You can run it from the main.vi, for this way a SubVI ist the optimal solution. 

If you want to run both vi's separately, a functional global variable (fgv) or a queue would be a better solution.

 

In which VI do you have exactly the problem with the stop button?

 

0 Kudos
Message 2 of 2
(2,684 Views)