LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

recording data on events

In my Labview program, I can monitor the current and position. I am trying to store the postion values at specific current events.

How do I use the variables to store these position values at specific current events?

 

Do I need to use any File I/O function?

 

 

 

 

0 Kudos
Message 1 of 7
(3,125 Views)

Hi Shan21,

can you please explain a bit more about what you try to do? Where do you get current and position? Which events do you mean? How long do you want to store these things?

 

Mike

0 Kudos
Message 2 of 7
(3,122 Views)

I have a servo motor controller which interfaces in Labview. The current in the servo motor is being monitored at various positions .  Feedback about positions is also provided in Labview

 

When the current rises above a certain threshold limit, the position needs to be recorded.  There will be many occasions when the current will reach the threshold, hence many instances of position need to be recorded.

 

These "threshold" positions need to be stored so that they could be analyzed further. This means I want to store them even after the program finishes.

 

 

0 Kudos
Message 3 of 7
(3,118 Views)

Hi Shan21,

you can use a queue to send your values to another loop if the current exceed the limit. There you can store it with File I/O functions. Store your values first in a shift register and write it block by block to your file.

 

Mike

0 Kudos
Message 4 of 7
(3,110 Views)

I would like to record the position data only when the current threshold is reached and not on other instances.

 

How do I display the contents of the queue to be sure that the data acquired is true? I would like to see the threshold position values on the front panel ideally.

 

 

 

 

0 Kudos
Message 5 of 7
(3,090 Views)

Can I use a queue to compare previous and current signal values and hence design a trigger? I could then use this trigger to read the position values only on trigger actiavation.

0 Kudos
Message 6 of 7
(3,081 Views)

Hi Shan,

you can store the old value in a shift register. It´s independet from the queue. Then you can compare the new and the old value.

 

Mike

0 Kudos
Message 7 of 7
(3,079 Views)