06-05-2008 01:58 AM
06-06-2008 12:05 PM
06-09-2008 12:56 AM
Hello Neal,
Thanks for the reply
I tested the the same code for DC valves,it doesnt give any error and running smoothly for long time
the only difference in the code between AC and DC system is the valve is actuated by a LabVIEW Counter in DC and by an external power supply in AC
in AC we use the power supply trigger as to start the valve actuation and coil current read in synchronised way.
The DAQmx read (-200284) occurs only in AC system vi which i posted earlier
was it due to the trigger which we use in the second loop?
but the second loop runs only once and stops
pls seethe attached code which i used for DC and this does not give any DAQmx read problem(it uses the same structure except the valve actuation)
Thanks
Chandru
06-10-2008 01:28 PM
06-18-2008 02:26 AM
Hello Neal,
i have done some intensive testing to identify the location of the error,theerror -200284 occurs in second loop where i used a external trigger to synchronise the coil activation and coil current measurement.This trigger we get from the chroma power supply and i see that the chroma trigger is existing but even then it produce the DAQmx read error -200284.
it happens rarely and that affects our whole measurement calculation
we tried detecting the trigger using a PFI line using a trigger detection vi but it seems it doesnot work
Do you have any suggestion to over ride the error or let me understand what might be the other causes for this error
is there any mehod to detect the trigger and arm the start task
Thanks in advance
Regards
Chandru
06-19-2008 10:42 AM - edited 06-19-2008 10:42 AM
07-04-2008 05:22 AM
hello Neal,
As discussed in the previous posts,i went for analog trigger instead of digital trigger to avoid the missing trigger(occasionally occured)
Now i am facing another probelm, when i run the Stand_alone_AC _switch program alone the program recogonise the anolo trigger and acquire the data,but when i use the stand-alone_AC_test_loop program it does not detect the trigger and outputs the same error -200284
my objective "stand-alone_AC_test_loop program" is to continuously maintain the pressure in the loop1 and after 15 sec,the second loop has to switch the valve and acquire the valve voltage,when it detects the trigger.
but it is not happening,when i remove that start trigger analog edge vi and run the code,it is working,i do not understand where i am going wrong.
as mentioned when i run the "stand-alone_AC_test_loop program " alone it is detecting the trigger perfectly,the same functionality only i used as a second loop in "stand-alone_AC_test_loop program .
please go through it and let me guive a thought about where i go wrong
hope to hear some remedy
Thnaks
Chandru
07-07-2008 10:57 PM
Hi Chandru,
Just to make sure I understand the problem correctly, it sounds like you are unable to get “Stand-alone AC test loop PID.vi” to run correctly using the analog start trigger, but that you are able to get “Stand-alone AC Switch.vi” to run correctly when using the trigger. The -200284 error is occurring at the DAQmx Read in the bottom loop, where you are configuring the analog input channel to use the analog start trigger? Does this error occur every time you run the VI or only sometimes? It looks like there may be a possibility that the trigger is occurring before you actually start your task, and thus you are missing the trigger. Looking at your code, this could be possible since you are calling the “chr616xx Output Switch.vi” independently of the DAQmx functions, and thus there is no guarantee of when the trigger occurs in relation to the DAQmx Start function. One thing you may want to try is to route the error out from the DAQmx Start function to the error in of the chr616xx output switch, and then wire the error out of this to the error in of the DAQmx Read. This will force the DAQmx task to start before the trigger is sent. I hope this helps,