Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 67081

Controlling Event Structure with Text File

$
0
0

I am relativaly new to LabVIEW (only about 2 week experience). I am currently trying to control a stepper motor using an event structure. Similar to the example code given by LIFA, I input my parameters of how the stepper motor moves, then press a button on the front panes to start it, and it works this way. I also have other hardware that works as well in LabVIEW, such as a transnational stage; all the components work individually.

 

 

Now, I am trying to make the system more automated, and make it so all the different hardware work in the same code. So, I tried implementing an event structure using a text file as an input to try to control the events. The text file has a 1D array of numbers going down vertically (only the row numbers are changing). So, I used an index array function to take out the numbers one by one, and use a for loop (while loop in this example code) to go down the column of numbers. However, the event is not registering the change even though the indicator says the value is changing. 

 

Attached is my test code and the text file I am using to try and control the event structure. Please let me know what I am doing wrong. Thanks.

 


Viewing all articles
Browse latest Browse all 67081

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>