LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

SENDING VOLTS VALUES FROM TXT FILE TO POTENTIOMETER

Hi, I am using labview ver 6.1. I need to send 90 voltage values to a potentiometer over 3 secs. At each point in time the pot requires a specific voltage value, say @ t=1.1s v = 4.5v @ t=1.3s v =4.8v.
How can I best ensure that each value is read at it’s allocated time.
0 Kudos
Message 1 of 8
(2,515 Views)
Organize the TXT file data like this way:
1.1
4.5
1.3
...

Then trigger a combination of "read characters from file" and "pick line" each 3 seconeds.

If you still need help tell me.
-----------------------------
Ayman Mohammad Metwally
Automation Engineer
Egypt - Cairo
0 Kudos
Message 2 of 8
(2,510 Views)
Ok, I got some time !

Here is the code .. See the attachment
-----------------------------
Ayman Mohammad Metwally
Automation Engineer
Egypt - Cairo
0 Kudos
Message 3 of 8
(2,507 Views)
UPDATE: I reread your post, It seems that you want all the 90 values to be used in 3 seconeds!
So just change the "Elapsed time" function in my last post to the suitable time (3/90).
-----------------------------
Ayman Mohammad Metwally
Automation Engineer
Egypt - Cairo
0 Kudos
Message 4 of 8
(2,503 Views)
Thanks a lot pls see attached the AI will not accept this !! sorry , i am really new to all this . is the timer the correct one?
0 Kudos
Message 5 of 8
(2,497 Views)
try this one...
0 Kudos
Message 6 of 8
(2,488 Views)
THANKS A GREAT DEAL IT RUNS .

Cheers
0 Kudos
Message 7 of 8
(2,482 Views)
Well, Topsy's method is better than mine, but I thought you really want the data to be stored in an external file "to be editted or so!".
Any way, avoid using files if you don't want them.

And about my method, you have to convert the "string" output to be "numeric" before it is used by the AO function.

Good luck
-----------------------------
Ayman Mohammad Metwally
Automation Engineer
Egypt - Cairo
0 Kudos
Message 8 of 8
(2,468 Views)