LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

ni-272x modules on CVI program

Solved!
Go to solution

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 

 

0 Kudos
Message 1 of 11
(5,430 Views)

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

0 Kudos
Message 2 of 11
(5,397 Views)

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

0 Kudos
Message 3 of 11
(5,393 Views)

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

0 Kudos
Message 4 of 11
(5,371 Views)

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

0 Kudos
Message 5 of 11
(5,368 Views)
Solution
Accepted by topic author momo2013

I think I get how to calculate the realy now.

 

Thank you.

0 Kudos
Message 6 of 11
(5,366 Views)

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

 
  

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
Message 7 of 11
(5,277 Views)

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 

0 Kudos
Message 8 of 11
(5,264 Views)

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 

   

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 9 of 11
(5,258 Views)

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

 

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
Message 10 of 11
(5,215 Views)