LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Urgent help pls

Solved!
Go to solution

hi, I use the NI USB 6009 DAQ card for a fish feeder control system. in the system need a lot of digital input . Can i use the Analog input replace as digital input? help me please..T.T

0 Kudos
Message 1 of 19
(3,470 Views)
As long as the digital signals behavior is static(the change slowly) I would say yes.


Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
Message 2 of 19
(3,455 Views)
if i had three true or false sensor digital input need to use at the analog input side. the input signal need go to three RED Indicator. Is the step is possible? can teach me how to solve that?
0 Kudos
Message 3 of 19
(3,452 Views)
Can you post your current code. And also tell us which Labview version you use?


Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
0 Kudos
Message 4 of 19
(3,448 Views)

Hi,

you could use the Analog inputs as "digital lines".

- Simply define an analog level which is your TRUE level.

- Use the AI read funtion for reading the channels (i.e. Multiple Channels, 1 Sample)

- Compare the AI values to your limit value --> result is an array of booleans, corresponding to the AI channels.

AnalogIn as Digital Line.png

 

 

 

0 Kudos
Message 5 of 19
(3,435 Views)

i had post the example. i had three Limit Switch to detect the feeder machine on left , right and middle position. the digital side of DAQ i used all already, so i try to ask can i use the analog part as long as digital part. when i connect ask the VI is created. there show "The specified resource is reserved. The operation could not be completed as specified." can teach me how to solve it. my version is LabVIEW 8.5

0 Kudos
Message 6 of 19
(3,435 Views)
I have posted a crude idea on how. You have to setup which DAQ channels you will include each time you do a 1chan Nsamp operation


Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
Message 7 of 19
(3,422 Views)

Sorry, can you make it in Picture form?because my version is 8.5 yours is 8.6, so i cannot read the VI file you posted just now. thank you very much

0 Kudos
Message 8 of 19
(3,415 Views)

Hi Jeff,

 

regarding your post 6/7 and the exam.vi:

 

You can have only ONE active task per resource, where resource means AI, or AO, or DI or DO.

For making it more clear:

You can use one task for reading all the Digital lines and a second for readong all the analog lines.

 

But you can not use one Task for reading AI 0 and smiulataenouasly a second task for reading AI1.

 

Read all AI lines in one task, then select the channnels you need as DI and format into Booleans.

 

0 Kudos
Message 9 of 19
(3,415 Views)

You can use the analog inputs to monitor "digital" signals or values that cross a certain threshold. 

 

I noticed that you are using the DAQ Assistant.  I always stay away from them. 

I could not verify what your configuration was because I got an error message saying "Unable to view properties".

 

Check that you are not using the same channels ai0 or ai1 for the three analog inputs.

 


Message Edited by Ray.R on 04-22-2010 08:10 AM
0 Kudos
Message 10 of 19
(3,416 Views)