LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

automating data input for a control terminal

I am trying to control a variable resistance instrument using lab view. I received a program to operate the instrument from the manufacturer however I would like to be able to automate the data input process i.e specifing the values that I want input into a particular control terminal and then having labview systematically process the range of values that I have specified. I have attached a pdf of the main components of the system I am working with which may describe what I am trying to achieve a bit better. Please could you let me know what is required for me to automate this process. If you would like me to clarify anything please let me know. Thanks James 

 

0 Kudos
Message 1 of 6
(2,932 Views)

Make the manufacturers' vi in to a sub vi. If the controls and indicators are not connected to the connector pane, then do so (https://www.ni.com/docs/en-US/bundle/labview/page/assigning-terminals-to-controls-and-indicators.htm...) and create your own vi which feeds the values as necessary to the sub vi


CLA CTAChampionI'm attending the GLA Summit!
Subscribe to the Test Automation user group: UK Test Automation Group
Message 2 of 6
(2,925 Views)

It looks like you have everything you need. You just need to create the array of values you need and pass it into a for loop with that function inside. Just like the example you posted except you replace the scalar with your array.

 

If you don't understand how to create an array or how a for loop autoindexes an array, you need to start with some basic tutorials.

 

3 hour

Message 3 of 6
(2,923 Views)

Thanks for your reply, my only hesitation is that I do not understand how that wire is interacting with the instrument. If I was to break the connection would I need to reprogramme the interaction with the instrument? Is there a way of seeing how it is connected to the instrument below the block diagram view?

 

Thanks

 

James  

0 Kudos
Message 4 of 6
(2,912 Views)

You can open the subVI and understand the basic communication with the instrument. You really don't understand LabVIEW, arrays, and for loops, though if you are asking this question. An array connected to the driver function through a for loop will pass a scalar to the function each time it is called. There would be no reprogramming of the driver required.

 

I would not suggest calling the top level VI as a subVI. Generally, those are just examples and you are expected to use the individual functions in a driver for your own application. Take those LabVIEW tutorials and then look here for how to use a driver.

0 Kudos
Message 5 of 6
(2,907 Views)

Thanks very much for this. You are right, I have only had a brief look at lab view (I just wanted reassurance that it could be done before delving too deep). I need to spend some time on the tutorials. I will have a go at this next week and hopefully it will be resolved. Thanks again for your help.  

0 Kudos
Message 6 of 6
(2,901 Views)