LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to control a second instrument in response to the results from the second instrument.

Hi, am new to labview. Am using two devices (conex) and (smc motor controller). i have already written labview programs for the devices and i now need to modify them to fit my need. from my experiment, the value of analog voltage from conex changes when the motor moves agiven step and there comes apoint when the voltage drops from the conex device. this is the position of the motor am interested in.

the following is my objective;-

i want the smc motor to move a step, then after to compare the current and preveous voltages from the conex device, if the voltage current voltage is stil higher than the preveous, the motor should continue moving and only stop if the current voltage is below the preveous.

Am attaching the Vis for both devices. Help is highly welcome

0 Kudos
Message 1 of 3
(2,569 Views)

From the front panel examples you have, you should know which commands you want to send.  So the reading and writing of the instruments shouldn't be an issue.  You keep previous values in a shift register.  Comparing is really simple (Less? node should work for you).

 

So what have you tried?  Where are you stuck?


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 3
(2,538 Views)

Hi, where am stuck is now interconnecting the wo devices so that they can operate together. please advise how i can inter link the two Vi's

0 Kudos
Message 3 of 3
(2,530 Views)