Jump to content

Writing to queues across applications...


Recommended Posts

Hi All,

I have an application which I've written to control a measurement system, the main app is based on a kind of queue driven state machine. This application is typically built into an exe before use and then run from that. I now want to write a second application that can programmatically fire off some of the operations (states) within the first app. So, my question is, is it possible to do this using standard queues?

Simply put, I have a Queue (sink) in App 1, and I want to write things into that queue from App 2. (note, this is not VI 1 to VI 2, this is separate apps...).

Thanks in advance for any help!

Paul

Link to comment

Hi All,

I have an application which I've written to control a measurement system, the main app is based on a kind of queue driven state machine. This application is typically built into an exe before use and then run from that. I now want to write a second application that can programmatically fire off some of the operations (states) within the first app. So, my question is, is it possible to do this using standard queues?

Simply put, I have a Queue (sink) in App 1, and I want to write things into that queue from App 2. (note, this is not VI 1 to VI 2, this is separate apps...).

Thanks in advance for any help!

Paul

Yes, you can do that.

I posted an example a while ago, it was in LV 8.20 if I remember well.

See here, and this thread can be interesting too.

The example was with FGVs I believe, I also have one with Queues somewhere... (maybe).

hope this helps

The example was with FGVs I believe, I also have one with Queues somewhere... (maybe).

There it was!

partager une FGV (queue).zip

Link to comment

Hi Antoine,

Thanks for the reply. I'm still trying to get my head round it all. I've done lots of labviewing -although not perhaps by people here's standards - but never really got into using VI server like this! I ran your example fine using the exes, but when I ran it directly from the VIs in projects, I get an error when I try to run "B"... I get error 63 - serial buffer overflow. Any idea why?

Link to comment

Thanks again!

Glad it helps!

Never mind - got it. I had to set the port number within the project file (A).

Yes, all the VIServer parameters need to be carefully set, that's what took me the longest to figure out.

Also as sachsm pointed out this is sort of an "old" way, I used it from LV 6.1 to LV 8.6 (and it might even work with older versions) but with newer versions you certainly have new ways.

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.