LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple channel configuration along with scaling

Hi everyone,

 

my program is regarding multiple cahnnel configuration using cDaq and NI9203 

Please fingdthe program attached.

Problem is I´m unable to run the program without Setting the tast terminal. So connected a Task terminal, but then it didnot work untill selecting a Task. After selecting the Task, as expected it works according to what has been already configured in Task. 

Please suggest me how to correct this and be able to configrue each channel

 

Thanks a lot in advance

 

Best Regards,

Deepa 

0 Kudos
Message 1 of 9
(1,964 Views)

Hi Deepa,

 

use DAQmxCreateTask to create a "fresh and clean" task instead of wiring a task reference…

 

Hint: each scale name should be unique and  "non-empty" to avoid errors.

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO
0 Kudos
Message 2 of 9
(1,955 Views)

Hi GerdW,

 

Thanks a lot for the Input. will try implenting it

0 Kudos
Message 3 of 9
(1,947 Views)

I tried it, But then I am getting error.

Is it possible to provide all the channel as a Options to configure according to the need of user?

I mean if s/he requires only 5 out of eight channels they configure those five with Name of the Task and channel

 

Best Regards,

Deepa

0 Kudos
Message 4 of 9
(1,920 Views)

@Deepa_Krishnamurthy wrote:

I tried it, But then I am getting error.

Is it possible to provide all the channel as a Options to configure according to the need of user?


What error are you getting?  Show us your attempt.

 

Yes, you do what you are asking for and the way you were told to do it.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 5 of 9
(1,915 Views)

Please find the attached vi with Task and error generated

 

0 Kudos
Message 6 of 9
(1,909 Views)

Hi all,

 

Now with the attached vi. I am able to get the Output without scaling.

When the scaling is involved error Pops up saying  AImin should be Minimum of yintercept.

I did search about this error and sét the AImin from 0 to -20m. Still then I am getting the error.

 

Any suggestions are greatly appreciated

 

Thanks a lot in advance

 

 

0 Kudos
Message 7 of 9
(1,896 Views)

Your Maximum Value and Minimum Value inputs on the Create DAQmx Channel need to be based on the values AFTER the scale was applied.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 8 of 9
(1,893 Views)

I tried AImin -50 and AImax +50, still then it Pops a error stating that that value of AImin should be greater than and lesser than y intercept value

for example: If y intercept is -25... it states that AImin should be lesser than -24.9 and greater than 25.06.... 

0 Kudos
Message 9 of 9
(1,881 Views)