VeriStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Input data to channels from labview

Hi,

 

I wanted to know is there anyways to write (input) data to channels (aliases)  in labview by using api. 

0 Kudos
Message 1 of 8
(6,559 Views)

The VeriStand API in Labview lets you Set and Get values from any VS channel.  If you want to map and input to an output you will have to set up the channels in VeriStand and map them when you are creating your workspace.

0 Kudos
Message 2 of 8
(6,556 Views)

Thank you, is there any example or detailed procedure  so that i can have look at it .

0 Kudos
Message 3 of 8
(6,554 Views)

Check out the shipping examples found in

 

C:\Program Files\National Instruments\LabVIEW 2011\examples\NI Veristand\API\Execution API\Deploy and Read Channels

 

The basic idea is you open up a link to your workspace, drop in a read or write API vi, connect up the channels you want to r/w to, and close the workspace ref.

 

If the examples don't help, I can post some code.

 

Good Luck!

0 Kudos
Message 4 of 8
(6,549 Views)

Thank you, It would  be rally helpfull if u give some codes since i'm new to veristand.

0 Kudos
Message 5 of 8
(6,538 Views)

Try this.  I actually got this from NI, but it was the quickest example I could find.  I have used the advanced concepts for several GUI implementations working with VeriStand.  I hope you are familiar with Labview, there is not a lot of documentation, but ask if you have questions.

0 Kudos
Message 6 of 8
(6,534 Views)

HI, 

 

 

        I have wriiten a code in LV 2011 which is attached. I have tried to intialise the veristand engine bz giving a delay at start, the code is working fine. But the problem is i'm not able to write data to the channels which are created by aliases in the config file through the encircled new val. I tried putting inside the flat structure but wen i do that i won't be able to change the number, it reamins constant. So is there any other method .

0 Kudos
Message 7 of 8
(6,522 Views)

I know there are some issues of when you can use aliases, and I don't think you can when you are doing the read and write commands ( I would use the API VI's for readability).  I would use the GET ALIAS LIST.VI and then do a search for the corrisponding full channel name and use that for the Read/Write.

0 Kudos
Message 8 of 8
(6,514 Views)