06-14-2007 02:20 AM
06-14-2007 08:01 AM
06-15-2007 01:17 PM
Hi,
You can either use an event structure or a case structure. There is a great example that demonstrates how to implement an event structure. (Help >> Find Examples >> Building User Interfaces >> General >> Mouse Rollover Demo.vi) A DAQ Assistant is a great resource for capturing the signal from your switch. Here is a great tutorial on how to program with DAQmx. Here is a great tutorial on how to learn LabVIEW in a few hours.
06-19-2007 10:05 PM
06-19-2007 11:14 PM - edited 06-19-2007 11:14 PM
I got a message that the zip file was invalid or corrupt.
If all that you want to do is monitor a single digital input from a DAQ device and run a subVI based on the line state, something like the code below will work.
Just saw the thread at http://forums.ni.com/ni/board/message?board.id=250&message.id=30865. Is this you with a different user name. It sure seems like the exact same question. If it is, using a different user name to post the same question to different boards is not a method guaranteed to win you friends. You had even gotten a correct answer there though that uses the DAQ Assistant instead.
Message Edited by Dennis Knutson on 06-19-2007 10:14 PM
Message Edited by Dennis Knutson on 06-19-2007 10:20 PM
06-20-2007 02:24 AM
06-20-2007 07:33 AM
Error Out is an indicator on the Array, Matrix, Cluster palette. Block diagram constants can be created by right clicking on a function's input or output and selecting Create>Constant. You can also select Create>Control or Create>Indicator.
Your example program makes no sense. You do not create three separate while loops with three separate event structures and three separate stop buttons. You use one while loop, one event structure with three different events, and one stop button. Your top level VI also has no DAQ functions so I don't understand the subject of your question.
06-20-2007 11:35 PM
@Kaka777 wrote:
Sorry but certainly im not using another username.Anyway where did you get the icons for lines, lines grouping and error out?Thanx!and letme repost the Vis.
Come on! Be honest. Very similar login names. And remarkably identical VI's as the ones in the zip file in this message. http://forums.ni.com/ni/board/message?board.id=250&message.id=31036#M31036
If it isn't you, then it must be your lab partner buddy in the class you are taking.
Keep all of your questions in the same user name. Don't ask identical questions in different threads. Otherwise no one will help. And if you do get help, it will be in bits and pieces that won't make any sense to you because it will be different people answering who haven't had the benefit of seeing all the other messages in the other threads.