LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using NI 9205 to detect Break in Light Curtain

I am trying to use a NI 9205 in a NI cDAQ-9178 to do two tasks. The first is to continously check for a +4 VDC on one channel the second is to check for the potential of another channel. The +4VDC is run through a safety relay and will singnal the machine to go to a 'STOP' state when a light curtain is broke. I want this to be checked at least once every iteration of my main While Loop. The second channel of the 9205 will be used on during the 'Rotation' State. I have found when I try to use the DAQ Assist in a parallel or series loop the DAQ Assist errors out when it gets to the 'Rotation' State.

 

Should I only use a DAQ assistant once with the 9205?

 

How could I best accomplish this in my program?

0 Kudos
Message 1 of 3
(2,568 Views)

I have discovered that you can not use the DAQ Assistant when you want to look at the channels individualy. You have to use DAQmx Create, Start, Read and Stop for each channel on the NI 9205. 

0 Kudos
Message 2 of 3
(2,545 Views)

Hi MwMonty,

 

What error do you get from the DAQ Assistant? In terms of looking at each channel individually, you can use the Split Signals function in the Express>>Signal Manipulation section of the Functions palette.

Tunde S.
Applications Engineer
National Instruments
0 Kudos
Message 3 of 3
(2,521 Views)