Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

How to change DAQ Assistant parameter from front panel, without entering block diagram

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  

0 Kudos
Message 1 of 9
(5,102 Views)

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.

0 Kudos
Message 2 of 9
(5,091 Views)

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.

0 Kudos
Message 3 of 9
(5,079 Views)
Thanks for the kind info, this are some pictures of my block diagram and also few of my results. currently i'm just using a pcb accelerometer with sensitivity 10mV/g and NI-DAQ 9233. In future i may be using other kind of sensors. just to have an idea how to change all the parameters from selecting sensors and how to change the channels with the sensitivy and others parameters without entering my block diagram to change from the DAQ Assistant, any idea would be much appreciate. thank you 
Download All
0 Kudos
Message 4 of 9
(5,075 Views)

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.

0 Kudos
Message 5 of 9
(5,070 Views)
thank you Dennis, i will surely try it during my lab sesion starting next week. for now i'm just collecting few ways that i can use to do it. thank you for the help 🙂
0 Kudos
Message 6 of 9
(5,064 Views)
here i attach an example front panel i found in an example of labview. this is my idea, to have this kind of front panel. thank you
0 Kudos
Message 7 of 9
(5,048 Views)
i have tried using DAQmx function but i still need to enter my block diagram to change the value. i tried using rings, etc. but i seems to be not functioning, may i know y?
0 Kudos
Message 8 of 9
(5,044 Views)
Why don't you post what you have written since you have not given a very good description of what you have done? It should have been pretty simple. For example, if you are using a DAQmx Create Channel, you would simply right click on the physical channel input and select 'Create>Control'.
0 Kudos
Message 9 of 9
(5,040 Views)