LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Alternate between digital output and analog input

Solved!
Go to solution
Solution
Accepted by JPROC

This is a case where if one way of thinking about your problem isn't helpful, come up with a new way.

 

Don't think about switching between devices. Think about one 8-bit dataspace that just happens to be split between two devices.

 

The basic flow from my last upload will still work, but because there are two devices involved, there are two tasks that need to be created, updated and cleared.

 

Try this...

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
Message 11 of 13
(490 Views)

@mikeporter wrote:

This is a case where if one way of thinking about your problem isn't helpful, come up with a new way.

 

Don't think about switching between devices. Think about one 8-bit dataspace that just happens to be split between two devices.

 

The basic flow from my last upload will still work, but because there are two devices involved, there are two tasks that need to be created, updated and cleared.

 

Try this...

 

Mike...


Thanks!  It wasn't that I hadn't thought about the problem in that way, it was that I had no idea how to program it.

 

Earlier you had brought up the point about a race condition where the consumer loop wouldn't process the last item in the queue.  Again, because I'm so new to this I don't know what to do to prevent this from happening.

 

suggestions?

0 Kudos
Message 12 of 13
(473 Views)

Never mind the other comment, brain fart - I was probing in the wrong place. 

 

Mike...

 

PS: Feel free to drop some kudos when you see something you like...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 13 of 13
(464 Views)