07-01-2014 07:16 AM
I don't know if this works or not. The boolean "T" is que'd up then a dialog box pops up asking for the user to select the file to print. The dialog box covers the labview front panel so I don't know if the animation is working. i turned on trace and the boolean is "deque'd" almost immediately so the animation only runs once. Maybe I don't need producer/consumer logic. I want to select the file and while its printing the animation is going. Maybe just a structure w the easy text vi in the 1st frame and the loop w a for next ( w "N" set to 7...the number of diff pictures I have) in the next. Question: I don't have to close the file I open like I did in my original vi?? Comments??
07-01-2014 07:26 AM
@Clint_Eastwood1000 wrote:
I don't know if this works or not. The boolean "T" is que'd up then a dialog box pops up asking for the user to select the file to print.
That sounds like you have something wired up wrong. The Enqueue should not happen until after the document is sent to the printer. Can you show what you have?
@Clint_Eastwood1000 wrote:
Question: I don't have to close the file I open like I did in my original vi?? Comments??
Notice that I didn't have the Open either? The Read Text File will open the file for me. And if you do not wire up the file reference output, it will close the file as well. Be sure to read the help document on it.
07-01-2014 07:50 AM
I copied and ran the vi you posted..
07-01-2014 08:08 AM
You had to have done something different. With what I posted, the queue can't enqueue the TRUE until after the dialog. Or maybe you just saw the TRUE constant read, but the Enqueue did not happen yet?
Though, this whole animation thing probably isn't really necessary. All the time you will see this animation is just to read the text file and send it to the printer. That will be very fast unless you have a horribly large file. The printer will then go on printing when it feels like it. But your code will think that it is done.
07-01-2014 08:50 AM
I'll just use the sequence I created ( and works) rather than producer/consumer. I didn't think about the popup until it happened.
Thanks..I'll "mark" this as solved or open a new thread if I have different questions..