09-26-2014 02:42 PM
09-28-2014 09:51 AM
Dennis, in your example, does that mean there will be a 50ms lag?
09-28-2014 12:49 PM
09-29-2014 09:36 AM - edited 09-29-2014 09:50 AM
OK thanks, I think it is starting to make sense.
What do y'all suggest I do for my program, however? It is important that the logging is lossless, the graphs could be lossy..
It is important that my logging gathers exactly what I need, right when the logic occurs.
As I understand, you can only have one of the tasks in the reserved state at a given time depending on hardware. I cannot have a task start when there is already one running (two AI tasks)
I tried running 2 separate DAQmx Create Tasks. One to do 'continuous' read (for my UI plots) and then 1 to do the read exactly when logic goes true, but I was getting resources reserved errors.
I would like everything to be continuous and my logging to not interfere with anything else ;/
09-29-2014 09:53 AM
09-29-2014 09:58 AM
What are you calling the 'trigger condition'? When my logic from the 'Injection' goes False?
That is what I had prior to running into issues:
I was starting my task and acquiring via DAQmx Read.
The problem I ran into was when I had to add more to the code - the continuous acquisition of an additional channel.
09-29-2014 10:10 AM
09-29-2014 10:16 AM - edited 09-29-2014 10:20 AM
Ok, great, that is what I was doing.
I was creating my task, starting it, reading, and stopping - all when my trigger condition happened.
I was doing a finite acquisition based on 'seconds * 1000' to log the exact amount of samples desired.
This was on AI0.
I then needed to also continuously plot AI1. That is what brought me to the problem I currently am having.
Any advice?
09-29-2014 10:18 AM
09-29-2014 10:21 AM
I understand that, I guess what I do not understand is:
How do I continuously acquire and plot Channel0 while logging only certain portions of Channel1?