06-30-2011 03:05 AM
System Information
Operating System: XP
Labview: 8.2
Force sensor data acquisition via DAQPad-6070E
Actuator: Actuator via MCS-3D controller
Programming Information
Number of events: 13
Position read: Reads the position and the force sensor data every second.
Move I & Forward: Moves the actuator forward with a define step size
Two actuators are made to travel certain distance. A force sensor is attached to the system. The aim here is to acquire continuous data as per the defined time wait (1 sec). The data is logged in a text file which gives the position travelled from the actuator, the force sensor data with a time stamp.
The issues I am encountering is during writing a file.
For ex: When even is activated ( Move actuator at defined stepsize) the event are logged into the log file but the positions are updated into the log file only when the next event is activated. So it means that the positions and the force values are updated into the logfile after the consecutive event is executed. If you see the logfile ex inside the attachment the red block explains the event executed but the position are updated in the next line (event). This file is just for example.
Please help here I am going wrong!
Thanks in advanced
07-01-2011 09:02 AM
Hi,
I think this is because you're logging the data to soon. Before you write the Data to your File the move from the actuator has to be completed.
regards
07-05-2011 08:48 AM
Thanks Method M!
Do you have an idea how can I get rid of this unwanted delay?
Regards
Itz
07-05-2011 08:55 AM
Do you have a Time Out Case in your Event Structure?
Best Regards
07-05-2011 09:11 AM
In your Screenshot, i can see, that you always add a "-1" to the Timeout Terminal from the Event Case. If you wire a "1000" to this input, the Event Case will get every second into the Timeout case and that means, the vlaues from the acuator will be written every second into the log file.
07-12-2011 02:50 AM
Dear Method M
I find it out what was going on. As you mentioned that I was writing the values before the actuators achieving the final position, so I introduced a delay between the execution of two SubVI's. It isnt a clean method but it works.
thank you very much!
Regards
Itz