Jump to content

Passing data to teststand from labview 7.1?


Recommended Posts

Hi,

I am new to labview. Currently I am doing a automation romote control to a testing system through TCP/IP. The communication from teststand to labview has been done by using queue. It outputs some data. Now I need to pass these data back to teststand and do some caculation to them. Then loop them back to labview.

anyone can help?

thanks

Martin

Link to comment

QUOTE (martin zhxie @ Aug 19 2008, 03:51 PM)

I am new to labview. Currently I am doing a automation romote control to a testing system through TCP/IP. The communication from teststand to labview has been done by using queue. It outputs some data. Now I need to pass these data back to teststand and do some caculation to them. Then loop them back to labview.

You may want to look in the Code Repository and on NI's website. There are network communication schemes such as the Publish/Subscribe (http://forums.lavag.org/Publish-Subscribe-file122.html). I also recall running across a networked queue, but can't seem to locate where that was.

Tim

Link to comment

QUOTE (Tim_S @ Aug 20 2008, 09:23 AM)

You may want to look in the Code Repository and on NI's website. There are network communication schemes such as the Publish/Subscribe (http://forums.lavag.org/Publish-Subscribe-file122.html). I also recall running across a networked queue, but can't seem to locate where that was.

Tim

Thanks for your info.

Eventhough, I use a TCP/IP connection, it acts both server and client on the same computer. I think that the problem is still between teststand and labview. (How to pass variable from labview to teststand where the variable initialized in teststand at first.)

Martin

Link to comment

QUOTE (martin zhxie @ Aug 20 2008, 05:01 PM)

Right. This sounds close to what I need. The problem is that I am using a old version of labview. (7.1) could not open the 8.6 version vi. Is there a 8.6 version can be downloaded for free. Or do you have the sample vi in 7.1 version?

Oh, Thanks a lot. I've recreate the vi tried it. It works for me. Now I just need to convert it into my own program. Hope it will work in a loop and continously sends data between teststand and labview.

Link to comment

QUOTE (martin zhxie @ Aug 21 2008, 01:30 PM)

Oh, Thanks a lot. I've recreate the vi tried it. It works for me. Now I just need to convert it into my own program. Hope it will work in a loop and continously sends data between teststand and labview.

Can you describe the flow of your program and the interaction between TestStand and LabVIEW? Maybe post a flowchart if you have one. I'm curious what you are trying to do. There may be a better way to do it.

Link to comment

QUOTE (TobyD @ Aug 21 2008, 01:50 PM)

No, the solution TobyD presents is how you should pass data from LabVIEW to Teststand. It is the official NI party line sorta speak. Isn't that great? (that was sarcasm).

One thing to note is that this solution is typically used to pass data from a LabVIEW operator interface into TestStand, not for VI calls in a TestStand step, however there is nothing preventing you from doing this. Now the other question still left is how do you pass data from Teststand to LabVIEW. Well instead of a Set Property, you do a Get Property.

There is one more method not mentioned. You can use TestStand ActiveX Callbacks. This allows your LabVIEW operator interface to respond to a TestStand event and receive a payload of data via Custom UIMessages. Again, a best practice. See here.

Link to comment

Actually I am using a queue to pass script command from teststand to labview. Then in labview, it reads the output of the script. The whole purpose is to use this output to compare with the value of a variable in the teststand. Then adjust the command and send it back to labview again.

I don't know how to attatch a screen shot here, so I paste it in the doc.

"Local.Numeric In" is the one that I want to send to teststand. I know if I merge the sequence context part into my program, it is not gonna work since I can not call this vi directly by wiring the connect panel. How about sending this refference separetly?

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.