LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

need a switch

hi i'm new to labview in my program i 'm using a DAQ assis. to send data through analoge out terminal. now it is going continuously one after another. i need to change it like, the program send the data when i press a button. regards
0 Kudos
Message 1 of 3
(3,231 Views)

Hello,

I'm afraid you posted your question in the wrong place. This is the LabWindows/CVI forum Smiley Wink

0 Kudos
Message 2 of 3
(3,219 Views)
Hi sabeesh,

This forum would be a more suitable place for you questions, but I'll do my best to help you out here for the time being. Smiley Happy

First I have a few questions to get an idea of what you're working with (this is the type of information that is good to include for any future posts you may have on the forum):
1.  What data acquisition device are you using?
2.  What version of LabVIEW are you using?
3.  What version of the NI-DAQmx driver do you have installed?

What type of signal are you wanting to generate from your DAQ device?  More specifically, have you chosen in the DAQ Assistant for the "Generation Mode" to be 1 Sample, N Samples, or Continuous Samples?  If you are doing 1 Sample or N Sample generation, keep in mind that most of our boards are designed to hold the output at the last generated value.  For example if you were generating 1 Sample at 5V, the output would remain at 5V until you updated it with a different value.

Based upon your description, it sounds like you want to generate an update value whenever you press a button on the front panel of your LabVIEW VI.  A good place to start for many DAQmx applications is the NI Example Finder (in LabVIEW go to Help>>Find Examples).  In the Example Finder browse by task in Hardware Input and Output>>DAQmx>>Analog Generation>>Voltage.  These examples use the lower-level DAQmx VIs versus the DAQ Assistant, and if you need any information on getting started with this type of programming please refer to the following link:
Getting Started with NI-DAQmx: Main Page

I have attached a modified version of the shipping example "Gen Voltage Update.vi" that shows how you could have the analog output update with a single voltage value whenever you press the appropriate button on the front panel.  This can at least give you an idea on the programming flow and hopefully get you started.  Let us know if you have any other questions!

Regards,
Andrew W
National Instruments

0 Kudos
Message 3 of 3
(3,199 Views)