12-28-2009 03:04 AM
Level- beginner
Hai,
Currently I’m doing a research using Labview to create a VI to be use for a condition monitoring front panel. The problem is that I need to enter my block diagram (to the DAQ Assistant) each time if I need to change my input channel, sensitivity and other as well. How can I change all the parameters from the DAQ Assistant without entering the block diagram, only to change in the front panel.
From the picture i attached, i can only change the 'number of sample' and 'sample rate' value. how can i change other too? Thank you
12-28-2009 12:02 PM
You'll have to get rid of the DAQ Assistant. You can right click on it and select 'Generate DAQmx Code. You'll get a subVI that has the DAQmx Create Channel functions inside it. You can modify this subVI and change the constants to controls by right clicking on them. You could also just use the DAQmx functions from the start instead of the DAQ Assistant. LabVIEW comes with extensive examples that demonstrate how they can be used.
p.s. Posting an image of a front panel is not the best way to get your question answered if you need help in the conversion. If you posted the actual VI, it would be much better.
12-28-2009 11:26 PM
What Dennis said is right, and I've some additional ideas regarding changing channels and sensitivity:
1. Instead of changing a channel, I'd recommend acquire from them all. For example, if your Dev1 has 4 channel, you can acquire from them all by setting Physical channels to Dev1/ai0:3. Then, you can use array function to show only channel you wish to see.
2. Sensitivity, after acquiring, you can multiply sensitivity outside DAQ assistant. Doing this you can change sensitivity from frontpanel without bothering DAQ assistant.
12-29-2009 12:03 AM
12-29-2009 12:15 AM
What other idea do you need? I've already told you what to do. Have you even looked at any of the example DAQmx programs where all of the parameters are set on the front panel?
You skip the whole front panel thing and define your tasks in MAX.
12-29-2009 12:31 AM
12-29-2009 08:23 PM
12-29-2009 10:05 PM
12-29-2009 10:47 PM