LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

multiple devices

Hi,
 
I'm looking to control 48 valves by a scxi-1163r. Look my code in attachement. The problem is that my code doesn't work for multiple device. Do I have to copy this code twice to drive two device ? Is there any other solution ?
 
Thanks for help,
 
Paul
0 Kudos
Message 1 of 6
(3,245 Views)
Just out of curiosity, have you tried using the DAQ Assistant? I've never wrote my own DAQ code like that, but the DAQ Assistant inside of LabVIEW has worked pretty well with mutliple devices so far.
0 Kudos
Message 2 of 6
(3,232 Views)
The attached file is a solution to my problem. I can open line on multiple devices as I desire, but it doens't look elegant. If somebody has an other solution ...
 
 
0 Kudos
Message 3 of 6
(3,230 Views)

Even with the assistant It doesn't work erreur -200558

Paul

0 Kudos
Message 4 of 6
(3,229 Views)

Anybody has an other idea or no one cares ?

 

0 Kudos
Message 5 of 6
(3,200 Views)

Hi Doyon,

 

Thank you for posting on the National Instruments forum.

The error that you are getting is because you cannot access more than one device in a task as is explained in this knowledge base article.

Why Am I Getting Error -200558 From the DAQ Assistant?

For controlling the SCXI-1163R’s, what DAQ device are you using?  You can either use a DAQ card or a DMM to control the switches.  After you have that, you have a couple of options for using the SCXI-1163R’s. 

You can either use two separate tasks to control each module using DAQmx, or you can download NI-SWITCH and use the switch drivers to control the switches and in turn control the valves.  NI-SWITCH comes many examples that will help you get started and it easier to control the switches with NI-SWITCH than DAQmx. 

You can find the drivers for NI-SWITCH here.

 
Thank You,

Nick F.
Applications Engineer
0 Kudos
Message 6 of 6
(3,177 Views)