Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Acquire values only when digital output is high.

Solved!
Go to solution

@anuvohr wrote:

Hi Daniel and Apok,

 

Thank you guys for great help,it works the way I want it to work.

 

Small help: I want to do it for 16 transistors one after another but I don't want to make in one state machine.

 

How shall i do it?? 16 different state machines with some wait states between them or 16 sequential state machines??

 

Which method will be good?? Only point It should work one after.

 

I want it seprate it because if one of the transistor based on some of decisions fails,I will be switching it off permanently.

 

One more issue How to save all the data for one state machine??

 

Best Regards,

Anurag 


ok....keep the states as is, the only thing that is changing is the DO's to each transistors that you are testing to.all you have to change in the VI given is the "Bool Array" to what output you want tested.

 

  • 16 transistors to test= 16 cyles
  • at the end of "t2", "increment +1 function" to a "shift register" ..."greater or equal function" 16>>>>goto "t0"
  • use that shift register to index an "array of bools(DO's)" for what transistor output you are currently testing
  • when the shift register gets to 16 at the "t2" case, "select function">>>> "stop"

sample VI will give you a hint as how to output the DO's...

 

note: as for shutting down the testVI....

 

  • the measured AI should be compared, i.e., "in range or coerce" function to a known good value..if out of range, then "select function" goto "stop" case...eazeee peeezeee lemon squeeezeeee!Smiley Very Happy

 

sampleVI.png

0 Kudos
Message 11 of 11
(594 Views)