LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple channel configuration along with scaling

Highlighted

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
(692 Views)
Highlighted

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 LV2011SP1 + LV2017 (+LV2020 sometimes) on Win10+cRIO
0 Kudos
Message 2 of 9
(683 Views)
Highlighted

Hi GerdW,

 

Thanks a lot for the Input. will try implenting it

0 Kudos
Message 3 of 9
(675 Views)
Highlighted

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
(648 Views)
Highlighted

@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
0 Kudos
Message 5 of 9
(643 Views)
Highlighted

Please find the attached vi with Task and error generated

 

0 Kudos
Message 6 of 9
(637 Views)
Highlighted

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
(624 Views)
Highlighted

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
0 Kudos
Message 8 of 9
(621 Views)
Highlighted

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
(609 Views)