WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 10-04-2006, 12:27 PM
vizmaster vizmaster is offline
Member
 
Join Date: Aug 2006
Posts: 27
Question Passing sensor data to C++ GUI

I have a GUI written in C++ that sends a filename to a Vizard script using a mailslot. (Thanks for the code). Now I would like to send sensor data back to the GUI for the Vizard script. Should I use the same mailslot and then break up the message in the GUI (since it is a test string). OR should I use/move to viz.NETWORK? Which prevents reading and writing at the same time?
__________________
VizMaster
Reply With Quote
  #2  
Old 10-04-2006, 12:39 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
You can read/write with both mailbox and network objects. I can provide you with sample C++ code for recieving data through a mailslot.
Reply With Quote
  #3  
Old 10-05-2006, 11:37 AM
vizmaster vizmaster is offline
Member
 
Join Date: Aug 2006
Posts: 27
I actually figured out the receive part. Would like to see your sample code to see if we came up with the same thing. Also noted that a recent thread indicates that viz.NETWORK does not work in 3.0. Would like to use this instead so that I can pass the sensor data as numeric values. With MAILBOX I am trying to figure out the conversion from text back to numeric.
On a seperate yet related subject. I can only test on my local PC. Is there a way to have a seperate mailbox for send and receive? Can I do something like
mailbox = viz.add(viz.MAILBOX,'Machine\MailOut')

Thanks,
__________________
VizMaster
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 04:27 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2021, vBulletin Solutions, Inc.
Copyright 2002-2018 WorldViz LLC