01-24-2014 10:22 AM
Hello,
I tried to put ni-272x moudule for CVI applications and can't find the library or Instruments on my file system(C:\Program Files (x86)\IVI Foundation\VISA\WinNT).
Could you help me to find such as ni272X.fp (I guess...)?
Thank you so much,
Insuk
Solved! Go to Solution.
01-27-2014 04:18 PM
Hello,
These devices are supported either by the DAQmx or NI-Switch driver. You can use any of the shipping examples included with each driver.
C:\Users\Public\Documents\National Instruments\NI-SWITCH\examples\CVI
You will find the niswitch.fp in the next location:
C:\Program Files (x86)\IVI Foundation\IVI\Drivers\niSwitch
Regards,
MCOTO
01-27-2014 05:34 PM
Hello MCOTO,
Thank you for reply. I already included niswitch.fp in my cvi project but I did not know ithis driver could be used for ni 272x (programmable resistance).
I would like to check the examples.
Thank you so much.
Insuk
01-28-2014 02:25 PM
Hello,
I could not find the specific example for setting 2720(programmable resistance).
Do you know how to do that by using niswitch.fp?
For example, if I want to set up chan 0 to 30ohm... Do I need to use "Relay Control" to make 30ohm?
Thank you,
Insuk
01-28-2014 02:58 PM
So far I found :
I may need to use the following function.
niSwitch_InitWithTopology ("PXI1Slot5", NISWITCH_TOPOLOGY_2720_INDEPENDENT, VI_FALSE, VI_TRUE, &resHandle);
Thank you,
Insuk
01-28-2014 04:22 PM
I think I get how to calculate the realy now.
Thank you.
02-13-2014 01:11 AM - edited 02-13-2014 01:20 AM
Hi,
I had the same problem as you! I did not found an C-API for the 272x. I fact there is nothing for C/C++ !!
The support also told me to use NI-Switch! Happy relais switching calculation.
But there is a LabView library: NI-272x Reference VIs. Here is what i needed. There are high level Vi,s like resistorsimulation by value.
The vi is doing relais switching internaly.
How to consume this in C/C++?
If you have a LabView available use the NI-272x Reference VIs and make a wrapper vi around it.
LabView is able to make a DLL of your wrapper. Just implement this DLL/LIB in your CVI project.
If you have not maybe the support is able to create one for you?
For me this working perfect and i had no headache about relais/bank/connector/channel switching
Regards
Juergen
02-13-2014 08:24 AM
Hello Juergen,
Thank you so much for answer. That sounds great!
If I embeded the vi DLL into cvi project, do the cvi program call "Labview program" to execute the DLL?
I am not familiar that concepts so please bear me.
If I need ask to support, how or who can I need to contact?
Thank you so much,
Insuk
02-13-2014 09:11 AM
Hi Insuk,
The dll is calling all the LabView stuff automatically, you will not see anything about LabView.
But as I assume you need at least LabView runtime installed.
At the moment i doing this on a maschine were LabView Develpment Environment is running, too.
During next week i will try to run it on a maschine were only LabView Runtime is present.
Will give you a feedback.
Support: You have to ask the Blue Ones.....
Regards
Juergen
02-18-2014 10:00 AM
Hi Insuk,
The Dll is running under LabView Runtime Engine as well.
Note: If you are using 64bit maschines and your LV-Development is under Programm-X86- installed.
on the 64bit maschines there must be LabView Runtime Engine for 32-bit installed, too!!
This kept me just one day....
Regards
Juergen