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

VI works properly every other time

$
0
0

Hello All,

I am fairly new to labview, but not programming. I have created a VI that controls an electronic load via inputs from a CSV file. The VI communicates with the load via a NI USB to GPIB converter. The driver for the load is from the NI find drivers page. The problem I am having is that the load follows the commands every other time the VI runs unless I close out Labview entirely and start fresh each time.  This leads me to believe that there is some buffer that is not properly cleared after the VI closes. I have attached the VI and a sample CSV file but I don't think anyone will be able to use it without the load. So I guess my question is, how can I return the VI to a virgin state at the begining of a run without having to close out labview all together? I have checked "Clear Indicators when called" but that just makes it look like it was fully reset. Also, why would it work every other time it is run without being completely closed? To be more clear on that point, I open the VI and run it. The VI completes as expected and returns to the editor. I click run again and it does not appear to communicate with the load during this run. After it exits back to the editor, I click run again and it works as expected once again. This pattern repeats indefinately.

 

Thanks in advance ,

Eric


Viewing all articles
Browse latest Browse all 67078

Trending Articles



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