02-04-2020 06:53 AM
I developed a program in Labview 201? Windows7 using niswitch. Then ported over to a machine using Windows 10 and can't find niswitch. All my vis that use that "subvi ( niswitch initialize with topology.vi, niswitch relay control.vi, niswitch debounce.vi..etc) show up w ? (questions marks). Does anyone know why? And what is the difference between switch and daqmx?
thxs
Solved! Go to Solution.
02-04-2020 07:29 AM
NI Switch is an additional drive package.
You can down load it here:
https://www.ni.com/en-us/support/downloads/drivers/download.ni-switch.html#329036
02-04-2020 08:07 AM
Any preference of one over the other?? Why the 2 different ones?
I created the vis on a machine that apparently has ni switch on it. I used ni project to develop my test. How come it didn't package ni switch w the project when i ported over to another development machine?
thxs
02-04-2020 08:26 AM
@Clint1000 wrote:
How come it didn't package ni switch w the project when i ported over to another development machine?
What is NI Project? Or do you mean a LabVIEW project? Drivers and toolkits are not included in the project. Those are separate installs.
02-04-2020 09:14 AM
yeah..sorry..LV Project.
I'm using relay cards pxi 2509 &pxi 2567
is there a preference between daq switch and ni switch?
02-04-2020 10:17 AM
I have always just used NI Switch, so I don't really have an opinion on using DAQmx for switches. But since you already have the code written to use NI Switch, just download the driver and install it. Then you are good to go.
02-04-2020 10:31 AM
Where are you seeing DAQmx Switch? I've never seen DAQmx used for switch control. I've only used DAQmx for digital/analog/counter IO.
That's not to say it won't work, just that I've never seen it (nor can I find it in my palettes). I had always assumed you use DAQmx for IO and NI Switch to control switches.
02-04-2020 11:01 AM
EXAMPLES> then search for relays.."Switch-Controlling Individual Relays(DAQmx)
02-04-2020 11:04 AM
So will it package the ni-switch when I create an installer on my development machine?? If I were to port my development SW onto another machine w LV do i have to reinstall ni switch if it doesn't have it or will it package it in LV Project ?
02-04-2020 11:25 AM - edited 02-04-2020 12:18 PM
The LV project just contains LabVIEW code. It doesn't contain drivers, so you will need to reinstall it. If you build an installer, you can use the item "Additional installers" to include the drivers for it.
I looked for your example and didn't find it, so I must not have that particular driver installed, sorry. What version of DAQmx and LabVIEW do you have?
Last, I searched for "daqmx switch" and found this Help article:
http://zone.ni.com/reference/en-XX/help/370469AP-01/lvdaqmx/palswitch/
It appears that all of the DAQmx Switch functions are deprecated, so I would assume they just ported all Switch functionality to NI Switch.
Edit: Originally said "if you build an executable", should be "installer"