Ano Ano Posted May 4, 2012 Report Share Posted May 4, 2012 Hello, I have 4 WLS-9191 with 4 NI-9219 cards and I want from each card to acquire 2 voltage and 2 Temperature (Thermocouple) readings. When I try to use this set up I get a "One or more devices do not support multidevice tasks." warning. The end goal is to programmatically create taks in such a way that if a WLS-9191 is switched on or off the program to detect it and either create a task for it or not. Any ideas on how to bypass this error? Quote Link to comment
Tim_S Posted May 4, 2012 Report Share Posted May 4, 2012 When I try to use this set up I get a "One or more devices do not support multidevice tasks." warning. Based on your error, you're trying to create one task for multiple devices. You will need to create four tasks for the four devices (9219s). Quote Link to comment
Jordan Kuehn Posted May 4, 2012 Report Share Posted May 4, 2012 Any ideas on how to bypass this error? Create a case structure after initializing your tasks to look for this specific error code. In the event that you see it, make new tasks. You can even check for errors after the creation of each task and handle them appropriately. Quote Link to comment
JamesMc86 Posted May 4, 2012 Report Share Posted May 4, 2012 I've not come across this specific error but think I can explain it. A DAQmx task is somewhat defined around it's timing engine i.e. one task will always have one time set up. The WLS devices has no way to share timing signals (naturally) so they cannot share one physical timing engine and that is why you cannot have them in a multi-device task. You will need one task for each device, although I would imagine this would actually help with your task! Quote Link to comment
Ano Ano Posted May 7, 2012 Author Report Share Posted May 7, 2012 Thank you for all the replies, Since I need to create a task for each device, are there any ideas on how to implement this in perhaps a "For Loop" and create an identical task for each connected device? Quote Link to comment
asbo Posted May 7, 2012 Report Share Posted May 7, 2012 Since I need to create a task for each device, are there any ideas on how to implement this in perhaps a "For Loop" and create an identical task for each connected device? I think you've kind of spelled it out right there. Since it's a task, you'll have to create global virtual channels configured how you like (but it sounds like you already do) and then use a Create Task node inside a loop which indexes off an array of those channels. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.