05-19-2014 01:24 PM - edited 05-19-2014 01:25 PM
Hello All,
So I will start with I am pretty new to LV, so my programming techniques are the best out there, so bare with me ... So I have this device I am trying to take resistance measurements on. It has 20 pins and I have a fixture to place device in and a switch matrix connected to that and in turn connected to an Agilent DMM, all while recording the data on a datasheet.
What I am needing is for the Switch matrix to ... Connect Row 1 : Column 1 ... Take a measurement ... Record on datasheet ... Disconnect Row 1 : Column 1 .. Connect Row 1 Column 2 ... Take Measurement ... Record ... Disconnect Row 1 Column 2 ... (repeat) all the way to R4C8 and will then Switch to the Second Switch Matrix and continue.... and so on, nevermind the SubVI's [U2751A] , those are working perfectly.
When I run VI, it seems I am having a timing issue with the switching and the taking/recording data. I know its not the best practice to just get the timing down perfectly, but I would rather have it sequentially run these steps in that order to achieve the most accurate data. What is happening is for the first 5 or so switching/measuring/recording/switching again, seems fine, but then the timing is going bad and messing it up ... Anyone have any ideas on how I can Sequentially run these steps without having to depend on a time delay to get them functioning ... any help would be greatly appreciated...
1st Switch Matrix Action
2nd Switch Matrix Action
05-19-2014 01:53 PM
One potentially huge problem in your VI that I can see from the limited screenshots is that you have one event structure buried inside the other. This can lead to very unpredicatable behavior, and can lock up your application solid depending on if you have the setting Lock Front Panel until event completes on any or all of your event cases.
Any situation that relies on a user doing things in a particular order so that the code can pass through the event structures cleanly is asking for problems.
Caveats and Recommendations when Using Events in LabVIEW - LabVIEW 2012 Help
05-19-2014 01:58 PM - edited 05-19-2014 01:58 PM
Here's the whole VI, any suggestions ?
05-19-2014 01:59 PM
05-19-2014 02:00 PM
well like I said, I am NEW to labview, not a veteran, but thanks for the beating
05-19-2014 02:07 PM
05-19-2014 02:10 PM
I've thought of that, but then ran into the issue of triggering the second Switch Matrix to begin
05-19-2014 02:17 PM
05-20-2014 08:27 AM
Ok, So here is the updated version with the nested Event Structures removed and replaced. Seems to run fine, but now I was wondering what you ment by changing to the 2nd Switch Matrix with another For Loop. Also, which Delay is the one to where I can Connect the R/C Switch, let it settle for a second, then read/record data. When I tweak them all it always seems to not change.