NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Write/Read a digital channel

Solved!
Go to solution

Hi,

I have to command a relay so i have to use labwindows to create a CVI project and call it from Test Stand.I tried to use the Write.Dig.Chan from find examples in CVI but it dosen't work!!!!!!

Could you help me please in modifying this code to call it from Test Stand and generate the 5V.

I'm using Labwindows CVI 2010, Test Stand 2010 ,and NI PCI 6220.

Regards,

0 Kudos
Message 1 of 4
(3,117 Views)

The easiest way is to build a DLL in CVI and call that DLL in TestStand.

 

http://forums.ni.com/t5/LabWindows-CVI/Using-CVI-Examples-in-TestStand/td-p/1920579

CTA, CLA, MTFBWY
0 Kudos
Message 2 of 4
(3,113 Views)

Problem 1 - CVI code does not work

 

It should work.Only issue i see is the name of the card in the MAX.

Open MAX (installed with NI device drivers) and look for your card.

Ensure name of this card is same as used in the CVI ( ex "Dev1").

From the MAX you can also run test panels to check the card and its output.

 

Problem -2 :

For TS compatibility you need to create DLL ( example shown are of exe format)

 

http://forums.ni.com/t5/LabWindows-CVI/Using-CVI-Examples-in-TestStand/m-p/1920579/highlight/true#M5...

 

There are CVI DLL example codes in TS example directories.

You can refer them to create DLL and call from Teststand.

 

 

0 Kudos
Message 3 of 4
(3,103 Views)
Solution
Accepted by topic author PFE

Hi,

Thanks for responding me. I solved my problem.I did it with Labview adapter it seems to be easier and functionnal.The snapshot shows the the VI that works efficiently:)

Regards,

0 Kudos
Message 4 of 4
(3,069 Views)