07-19-2016 04:06 AM
I'm sure this is simple but I've been going around in cricles for a while.
I have created a task in my project. It works fine with 6008 (Device 1).
Now we are building a new system and using a different 6008, imaginatively entitled dev3.
Is there anyway to edit the task to change the device, (see below)?
The above should be dev3 but I cannot find a way to set it.
Rgds,
Seán
07-19-2016 05:27 AM
Did you try right-clicking on the channel? There should be a menu option for changing the physical channel.
07-19-2016 06:23 AM
I did indeed, (i'm not that bad!).
However, it only allows the channel to be changed and not the device.
07-25-2016 05:08 AM
Hi Sean,
I have found a method that I've tested with a pair of USB-6009s:
If you need to use both devices on the same PC you can continue with the following steps:
This method has quite a few steps in it however I believe it should achieve what you were asking for. Hope this helps!
Joe
07-26-2016 05:52 PM
Hi Joseph,
Thanks for the workaround. Still a bit surprized there isn't a more straightforward way to change the device. Maybe next release of LabVIEW will have an easier solution?
Rgds,
Seán
04-26-2020 06:06 PM
Hello,
I am attempting somewhat same, but the problem is I have created many tasks with two USB 6212 devices (for eg. Dev1 and Dev2)
Tasks:
Digital_Input_task_USB01
Digital_Input_task_USB02
Digital_Output_task_USB01
Digital_Output_task_USB02
The problem, the device may get identified under different names in different systems when shared as application.
So, I wanted to ask whether there is any method to keep the channel unchanged ; but to select and change the device programmatically?
This may help the user to change device from Front panel without any knowledge of Ni Max.
04-26-2020 06:23 PM
I define my tasks using an XML or JSON file. So the only thing that would be updated for me is the device name(s) for the task(s) in those files. I haven't found any better way to protect against wrong device names.
04-28-2020 12:23 AM
Hello crossrulz,
Can you provide me with an example.
Thanks.
04-28-2020 06:20 AM
Here is an example of an xml file I use (I had to zip it up for the forums). Unfortunately, I am not able to share the code at the moment. But I have a section in the file for each channel. Each channel has attributes for the Device and the Channel of that device. I use Format Into String to build up the channel path that goes into the DAQmx Create Virtual Channel.