01-11-2016 08:36 AM
Hatef, I'm getting various data mismatches all around my end application when trying to implement that Queue function. I may have over-simplified the example that I posted here?
It is not necessary to have the dial control functional, other than to set a single initial value to pass to the SubVI. If you go back to my original VI and SubVI, correct operation is as follows:
1) Run MainVI
2) Set dial control to any value
3) Click TEST button on Main VI to "ON"
4) SubVI displays result.
To update the data click the TEST button on the MainVI (to turn it OFF), set a new value, then repeat steps 3 & 4. Anything fancier than that is overkill for my application.
The actual Data is a 2D array of unsigned U8. I have a version of my End Application posted on the forums, but I thought that it would confuse the situation more than help.
I have basically made two additional SubVi's to decode this data stream (U8 output Array) for the end user, that I'd like to close with a button on the SubVI rather than the MainVI. If you go back to this applicaiton, I have added the SubVI's as shown in the attached image.
01-11-2016 08:39 AM
The control reference is strict; certain Boolean buttons, the ones that pop up after being pressed, are not allowed to use the value property of the reference. You have to use a different control or typecast it to a strict reference. Do not have LabVIEW at the moment so can't give an example.
cheers,
mcduff
01-11-2016 09:19 AM
Hi Sparky,
The switch is just a picture on your front panel, it's meant to be wired up in the connector pane, but not clicked on.
01-11-2016 12:21 PM
SparkyOne I could not find the subvi that you mention could you attach again the files and explain in the vi what you want leave essential massage on the code to be clear
01-11-2016 12:27 PM - edited 01-11-2016 12:28 PM
Here you go... It may be a moot point at this time, I created a brute-force method that works with my Application (Which I'm sure violates any formal Labview training). I'm still interested in a more elegant solution....
01-11-2016 01:16 PM
This VI will show you how to open and close the front panel using your "TEST" button. The SubVI is set to floating, but it was weird. Even though "Show when called" was unchecked, it still seemed to show everytime it called. So for the purpose of a quick upload I just checked "Show when called" and "Close after running", so you might see a little flicker. For your actual code you should get the "Show when called" working correctly.
01-11-2016 01:20 PM
Here's my "Brute-Force" solution. Not going to accept it at the moment.....but it's "Working as intended".
01-11-2016 01:56 PM
I see your code you need just to do small trick to handle this.
this vi will help you to know what I means just try to replace the same loop and case with your code same structures
01-18-2016 07:05 AM
Still having problems implementing this method. I cannot seem to resolve this error when adding the Queue functions.
01-18-2016 07:28 AM
attach vi your image really really show nothing to understand what is problem