10-19-2009 04:06 AM
Hi, I'm using a PCI 6251 DAQ card. In my project, i'm getting analog inputs from sensors.. I also need to control a motor (up or down separate relays) and another relay that connects to an electromagnet to switch it on or off..
Analog input part is working fine. I'm using DAQ assist. For digital output though, i'm stuck...
I'm using two while loops concurrently (kind of multithreading) in one loop which is my main loop, i'm collecting user data and sub loop collecting analog inputs etc.. In the second while loop i have my DAQ assist for digital outputs. I've configured only one DAQ asssist to handle all three outputs (being sent as an array - all line o/p s are 1 sample-on demand). The problem is when they are in separate loops ( the main loop and digital o/p loop), I'm not getting any digital o/p. And one more thing is I'm operating the switches(digital o/p ) in my main loop...
I tried using notifiers thinking I can send notification for o/p loop only when needed (really) and the element type for notifier is an array of three boolean elements. This is giving me an error
"Error 1 occurred at Wait on Notification in IT1.2_setup_test.vi
LabVIEW: An input parameter is invalid. For example if the input is a path, the path might contain a character not allowed by the OS such as ? or @.
NI-488: Command requires GPIB Controller to be Controller-In-Charge."
I don't know if using notifiers is a good idea..
Also will it help if i split the o/p to three DAQ assists?
change my programming technique to handle this situation
Any suggestions are very much appreciated...
thanks..
11-09-2009 02:03 AM
Attach your Vis for better understanding
Pnt told: Keep your posts small and try to post a small example vi.
Even if it is not working.
LabVIEW users are bored reading long text, describing what a vi must do
11-09-2009 03:20 AM
Have you seen this?
11-09-2009 03:21 AM