LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Urgent help pls

Solved!
Go to solution
8.5 ver


Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
0 Kudos
Message 11 of 19
(2,015 Views)
Thanks SK@NIG, then Is possible to extract the  3 channel dignal at the task to the different indicater? have any method can do that>?
0 Kudos
Message 12 of 19
(2,011 Views)
Solution
Accepted by jeff7095

You could use the DAQ assistant, it´s one of the very effective Express VIs, becuase for that what you configure inside the assistant wizard, after clicking ok, in the background LV code is scripted for exactly the functionality you need.

The screenshot I attached is based on the code that the Asisstant created, I added some managment and the splitting into 3 LEDs and the while loop.

In this example I used 3 AI channels (0 to 2 ). The 3 AI channels will be configuredone after the other, you could also use a for loop for doing that...

 

UseAIasDI.png

 

- Stefan

0 Kudos
Message 13 of 19
(1,999 Views)

thank you,have any method to extract three signal from the task and fransfer to the indicator? Is possible to do that?

 

0 Kudos
Message 14 of 19
(1,997 Views)

As you can see in my example, I extract the Booleans from the array and put them into indicators.

I do the checking for all the three AI channels, if you need only one or selected ones from all AIs you acquire, you can use the AI Read for reading ALL channels, and then use the Array subset / index Array for getting the channels you´re interested in.

0 Kudos
Message 15 of 19
(1,992 Views)
what  name of the array node u used? i not found the node? really thank you to you
0 Kudos
Message 16 of 19
(1,980 Views)

SK@NIG wrote:

You could use the DAQ assistant, it´s one of the very effective Express VIs, becuase for that what you configure inside the assistant wizard, after clicking ok, in the background LV code is scripted for exactly the functionality you need.

The screenshot I attached is based on the code that the Asisstant created, I added some managment and the splitting into 3 LEDs and the while loop.

In this example I used 3 AI channels (0 to 2 ). The 3 AI channels will be configuredone after the other, you could also use a for loop for doing that...

 


Is it not more easy to like described here http://digital.ni.com/public.nsf/allkb/9A2AF5E10E0C893386256FE8006807DF or use Physical Channel browse option and selecting channels by using Ctrl+left mouse button. Your method works fine, but it is somewhat awkward I would say



Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
Message 17 of 19
(1,974 Views)
thank you everybody. thank for helps
0 Kudos
Message 18 of 19
(1,962 Views)

Yes, you´re right with using physical channel names and the ai0:2 symantic , which is less confusing and less code than my one.

But with the code above you are able to set channel names, resolution etc by channel.

Just for geeting an array of DBLs you one is smarter 😉

Message 19 of 19
(1,957 Views)