LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to modify input range (DAQ assistant) with a numeric control ?

Solved!
Go to solution

hello every one

 

I am currently working with the NI USB-6218 acquisition card.

I would like, in order to acquire a signal, to be able to choose the input range of the DAQ assistant with a numeric control ( and not by opening the DAQ assistant window ) (like the "number of sample" and the "rate" entry...)

Is it possible and if yes, how ?

 

Thanks so much in advance for your answers !

0 Kudos
Message 1 of 5
(2,936 Views)
Solution
Accepted by topic author guyua

You can't with the DAQ Assistant so right click and select 'Generate NI-DAQmx Code'. Then you can edit the subVI that does the setup.

0 Kudos
Message 2 of 5
(2,934 Views)

thanks for your answer ! 

However, yhen i convert the DAQ assistant, I ge this error: "The polymorphic subVI is broken. You must fix all errors in the polymorphic subVI before this VI can run."

Even if I found the input range entries, I can´t launch the acquisition anymore. Have you an idea about how to solve that problem ? 

Thank you very much !

0 Kudos
Message 3 of 5
(2,925 Views)

I don't know since you did not attach either the original or broken VI.

0 Kudos
Message 4 of 5
(2,920 Views)

hello

sorry I forgot it. but after spending a few hours on the problem this morning, i solved it 🙂 Apparently, I corrupted the general DAQmx assistant last friday. By restarting my computer this morning, this issue was solved and I was able to transform the constant into command for the input range.

 

Thanks a lot for your help !!!

 

Guyua

0 Kudos
Message 5 of 5
(2,902 Views)