LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Help!! Switches, DAQ and Labview front panel.

Hi all...
 
I have a question.
Some questions i mean...
 
Firstly i have a switch, which i need to connect to the Digital input of my DAQ which is USB-6009.
After that i need to create a block diagram, in which then i click on this switch, a vi or subvi will pop out.
 
The block diagram is the hardest and i really need help in that area. I dont know what and where to connect the DAQ assistant.
 
Can someone make an example and post it here pls?
 
Thanx and God bless!
 
0 Kudos
Message 1 of 8
(3,247 Views)
In order to connect to the USB-6009, you should look at the examples that are shipped with labview.

What are your trying to accomplish with the subvi??  If you are just going to have the swtich control the DIO, then it would be easier to use the event structure that you currently have in your main vi.

Also, you did not post your subvi, so I dont know what is "in" it.  If you want your subvi to pop up when you press your call Vi 1 button, then right click the vi on the block diagram and select SubVI node setup and then select open when called and close when finsihed.
Kenny

0 Kudos
Message 2 of 8
(3,230 Views)

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.

Respectfully,

Rob F
Test Engineer
Condition Measurements
National Instruments
0 Kudos
Message 3 of 8
(3,204 Views)
Ok ive submitted the Vi and the pop up SubVis.
 
I know how to pop out the Subvis by clickin on the buttons of the front panel.
 
All i need to know is how to pop out the Vi using DAQ with DIGITAL INPUT either high or low.
 
Thanx guys!!!
 
If possible could any of you make an example, just one of the Subvis will do... in the attachment given and repost them?
 
God bless!
0 Kudos
Message 4 of 8
(3,177 Views)

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.Smiley Mad 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

0 Kudos
Message 5 of 8
(3,169 Views)
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.
Download All
0 Kudos
Message 6 of 8
(3,155 Views)

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.

0 Kudos
Message 7 of 8
(3,138 Views)


@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.



Smiley MadCome 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.

 

0 Kudos
Message 8 of 8
(3,113 Views)