LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Attempting to use change detection with USB6525 as generated event

Solved!
Go to solution

I'm currently trying to figure out how to hook change detection into the event structure for a process that has to monitor a few Digital Input lines going into a USB6525, and asyncronously pass this information over to other processes.  

 

In other words, I want a line on the 6525 going high to generate an event within an event structure.

 

I'm not sure if the way I'm trying to do it is even possible:

 

Here's what I have in place

http://i.imgur.com/dMQYy2Z.png

 

I found a few pages that seem to mention DAQmx based event generation-

 

http://www.ni.com/white-paper/4102/en/    (this one just does a read in a while loop, which I'm guessing just waits until a change occurrs, reads it, then restarts the loop.  So it's not really hooking into the event structure...)

 

http://www.ni.com/white-paper/5384/en/     (Under the "Software Events" section there's "Signal Event—Occurs when the specified hardware signal occurs. Supported signals include the counter output event, change detection event, sample complete event, and the sample clock."   I was thinking this is what I have in place, but driving the line (P1.0) high does not generate this event.)

 

Has any of you folks managed to do this before? What am I doing wrong here?

 

Thanks

-pat

 

 

 

 

 

0 Kudos
Message 1 of 20
(3,593 Views)

Did you set up the DAQ to register event detection? EDIT: Looks like you did.

 

I use the PCI-6520 to look for digital input changes and the use the Value Change-Signaling method to trigger the events.

 

-AK2DM

~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~
Message 2 of 20
(3,581 Views)

Here is how I init the DIO and then monitior in a loop parallel to the Event Structure.

 

I tried to insert images, but it crashed, see attachements.

 

-AK2DM

~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~
Message 3 of 20
(3,576 Views)

are you saying it lost the attachments?  

 

I don't see anything attached...

 

Are you talking about generating the events yourself upon the execution of a read that is set up for change detection?

 

thanks for the response!

 

-pat

0 Kudos
Message 4 of 20
(3,566 Views)

I just got this to work actually...

 

posting the vi...

 

(although I just noticed i get an error on the stop task saying ti doesnt exist...?)

 

edit: its because i forgot to wire the task through the stop case... duh haha

 

 

-pat

0 Kudos
Message 5 of 20
(3,546 Views)

Pat:

 

Sorry, it looks like I can't insert images or add attachments, could be good old IE8 (corporate policy).

 

Glad you got it working, I was doing it a bit differently by polling the change status in one loop and setting up a seperate Event loop that fired on the Value Signaling.

 

-AK2DM

 

(Will try attachments again, just for the heck of it)

 

EDIT- Still no attachments, I see 😞

 

 

~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~
0 Kudos
Message 6 of 20
(3,539 Views)

I'm still duking it out with this issue though- I got it to work with the 6525, but cannot get the same code to work with the USB6363... driving me nuts here...

 

-pat

0 Kudos
Message 7 of 20
(3,534 Views)

Not sure if the 6363 supports change detction, searching the manual found no references to it. Not all DAQ devices support that feature.

 

Suprised the code did not throw an error if it is not a supported property.

 

You may want to connect the error ount on the property node to your DAQmx Start Task.

 

-AK2DM

~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~
Message 8 of 20
(3,526 Views)

http://www.ni.com/pdf/manuals/370784d.pdf

 

page 145- is this the wrong manual?

 

It clearly states "x series usb device on the front of the usb6363 im using...

 

-pat

0 Kudos
Message 9 of 20
(3,517 Views)

Pat:

 

You are indeed correct. I was looking at an entirely different manual, it was just the specifications sheet in hindsight.

 

What version of DAQmx is installed?

 

-AK2DM

~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~
Message 10 of 20
(3,509 Views)