Desperate questios on RS232 Communicat​ion

Hallo all expert,
The attachment is a vi which is expected to write/read data to/from COM1 of my machine. For verification, I simply short circuited pin 2 and 3 of the RS232 port. However there are some questions following my experiment:
1. In the chart the label of x-axis can not be restored to be 0 to 100, it automatically increases without limits. I wish it start from 0 instead resuming a time instant;
2. In the "read string" field the display is not updated during my typing characters in "string to write", although I have enabled "Update Value while Typing";
3. The display in the chart doesn't correspond to what I have typed. Should I need more functions in order to show up the data?
My final purpose is to use this interface to communicate a pic chip which I programed to realize A/D conversion. At begin, a value is ought to be sent to the chip where the value is compared and if it is "1"f, then the conversion is initiated, and the value is read in the chart and could be also saved a excel file for documentation.
I'm wondering how to input value "1", instead string "1". I successfully type "Ctrl-A" in HyperTerminal, but have no idea which function is due to be used to realize the corresponding conversion.
Attachments:
myrs232r_r.vi ‏36 KB

There are several ways to send a hex 01 with the VISA Write, and all have been explained numerous times onn the forum. One wya is to simply right click on your string control/constant and select Hex Display. You can right click and select '\' Code Display and enter \01. You can have a numeric control and use the Byte Array to String. You can have a numeric control and use the Typecast function to convert to a string.
Your error can be due to the device not sending any data back, hence the VISA Read times out waiting for non-existant data. If you sometimes get data and are unsure of the length, you need to use VISA Bytes at Serial Port wired to the byte count input of VISA Read. This has also been discussed numerous times on the forum.
Message Edited by Dennis Knutson on 04-19-2007 06:15 AM
Attachments:
write hex to serial.PNG ‏4 KB

Similar Messages

  • RS232 communicat​ion with cDAQ

    Hello,
    I am about to commence a project which will require my LabVIEW application to communicate with an RS232 device.  I am planning on using an Ethernet 4-slot Compact DAQ module, but can't see a way to connect through.
    Is this possible? Is there a C-Series module I can buy for RS232 comms?
    Dave 

    So you mention you have a ethernet cDAQ.  Would it then be possible to add an ethernet switch, and a Ethernet to Serial device?  I have never used one but it appears that a quick google search finds lots of modules that can take ethernet from an RJ45 and convert it to RS232 in a DB9.  Here are a few links.
    http://www.perle.com/products/RS232-to-Ethernet.sh​tml
    http://www.lantronix.com/device-networking/embedde​d-device-servers/xport.html
    http://www.bb-elec.com/Products/Ethernet-Serial-Se​rvers-Gateways/Ethernet-Serial-Device-Servers.aspx
    http://www.digi.com/products/faceted?keywords=prod​ucts/serialservers/
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

  • Communicat​ion via RS232 with a Kollmorgen Servostar 300 using LabView.

    Hello,

    Sorry I am new posting a message here and I post it before I was able to describe my problem.
    I have a Kollmorgen Servostar 300 to control an AKM24F motor and I would like to send the instructions to the controller via RS232 using LabView. I think I had achieved communication from a PC to a Servostar 300 using LabView via the serial port.
    So far I have setup in LabView the configuration of the RS232 (8 bit, no parity, baud rate 38 400), the address of the servostar (ADDR 0), the way the servostar should respond to the host (PROMPT 1) and the error flag (MSG 1), and no error had been detected when I run the program. I should mentioned that after I sent an instruction such as ADDR 0 terminated with a carriage return, I set a delay time of 150 ms, then I read the amount of bytes that are in the buffer, and then I read the buffer, as I mentioned no error message has appear and the ADDR 0 instruction is read from the buffer. Following the same procedure I sent an instruction to move the motor but nothing happens.
    So far I am not sure if the way I am trying to communicate with the servostar is the correct or if I am missing something, any guidance that anyone my give would be greatly appreciated.

  • Problem with serial communicat​ion PLEASE HELP

    Hello everybody !
    I'd like to ask You for some feedback on my wierdo problem that I got with my program.
    I have built a device that detects changes in magnetic field. It is used for detecting vehicles passing it on a highway. Generally the main components communicate with each other by RS-485 protocol, but I would like to connect the device to a PC. To do so I am using a RS-232 protocol (I have a RS485=RS232 hardware converter).
    Now, I made the program (even two), which generally works, BUT some wierd things are going on sometimes; it happens that I have a problem to get a communication (after that, resetting the device by un-powering it helps, sometimes I have to restart the PC as well) but overall it happens quite not so often. The project itself is for passing one of my subject on the university - so I have to run the whole thing over there, here comes another problem : the program did not work on all of the bunch of PC's that are there. Same thing happens on my notebook. The effect of 'non working' is : I am recieving same data packet that is beeing sent... BTW : notebook does not have a RS232 port and I am using a USB-RS232 calbe converter (to count it out from the reason of problems I have checked it on my main PC and it works almost fine - almost because ocasionally I am getting the same sympthomps as I mentioned before ).
    Other problem is, when it works, that I am loosing communication for couple of hundreds of miliseconds and then it comes back to normal (i can see it on the osciloscope).
    I alredy looked for some answears here and there, and I found some suggestions about using 'buffer cleaning method', unfortunatelly I kinda do not know how to do it, and might that help anyways ?
    I also thought about using VISA drivers, but I am having trouble with it as well - the damn thing just does not work.
    My very bling guess is that everyting that I am expierencing is about using the communication protocol and seting it right. I am attaching both of the programs, PLEASE anyone pretty pretty help I totally ran out of ideas and knowledge and day after day I am turning it on and off on my PC and notebook hoping some miracle will occour ... 
    Many many thanks in advance !
      Best regards
                    Tom
    P.S. the program is very unfinished (man things are just put in), the main thing I am struggling now is getting, and setting the communication protocol right.
    Attachments:
    detektor_3_2.vi ‏141 KB

    The biggest problem I see is in the sequence:
    Write out a string.
    Wait 50 mSec.
    Ask how many bytes have been received.
    Read that many bytes.
    Can you guarantee that the data can make a round trip in 50 mSec?
    You should know that the SERIAL PORT WRITE completes NOT when the data has been sent out the port, but when it has been BUFFERED for sending. In other words it returns and starts the timer BEFORE it is actually sent.
    Also, given that there are 232 -> 485 --> USB conversions involved in both directions, I would bet that you are sometimes not allowing enough time for the data to get back.
    If you can control the protocol of what gets sent back, I would change your receiving logic. I think you should check for a carriage return or some other delimiter, and not react until you get that character (or until a reasonable timeout expires).
    In other words, try synchronizing the two ends. Something like:
    N = Get # bytes at port
    Read N bytes from port (flush any characters waiting).
    Write out command string.
    TimeLimit = NOW + 1000 mSec (or whatever)
    S = ''; (Working string)
    repeat
    N = #Bytes at Port
    If N > 0
    S = S + Read N Bytes
    Found = Search String for Delimiter
    until Found or (Now > TimeLimit)
    If Found, parse string S
    You are also re-initializing the port (SERIAL PORT INIT) every time thru the outer loop - that's unnecessary.
    Steve Bird
    Culverson Software - Elegant software that is a pleasure to use.
    Culverson.com
    Blog for (mostly LabVIEW) programmers: Tips And Tricks

  • Serial Communicat​ion problem in LabVIEW 7.0

    I recently upgraded my test computer from a 450 Mhz machine to a
    Del 2.8 Ghz Pentium 4processor with 512meg's of ram using Windows 2000 for the operating system running LabVIEW 7.0.
    I use the serial port to communicate with a piece of hardware,
    Rs232, 115200 baud, 8 bits, 2 stop bits. NO hardware or software handshaking
    The hardware is capable of receiving data from the computer at a full 115200 baud up to 65k transfers at a time with no extra delays.
    The problem that the serial data coming from the new Dell computer will send out 2 bytes then waits 2 to 3 milliseconds and sends 2 more bytes.
    I generated a separate serial VI that will jest shove data out the serial port.
    The VI is a VISA configure serial po
    rt, into a while loop that contains 6 VISA Write VI
    And on the backside of the wile loop a VISA close.
    The above VI will generate the serial data stream as stated above
    EXCEPT when I put a PROBE on each of the ERROR OUT of the 6 writes, then the serial port will generate a continuous serial data stream with no millisecond breaks.
    I have changed the FIFO Buffer settings (all the possible combinations) of the serial port in Windows 2000, and that has hade no effect.
    Any help would be greatly appreciated
    James Zumstein
    E-mail [email protected]
    Attachments:
    Serial_Test_1.vi ‏45 KB

    Greetings!
    Serial port commucations problems can be a real joy, can't they? Have you tried communicating with your instrument with Hyperterm? Usually Hyperterm is capable of operating with almost no overhead, so you can see if there's any strange symbols being transmitted that might be holding things up. There might be an extra CR being inserted, or something like that, which will show up as heiroglyphics in Hyperterm. See if all your symbols coming back are valid. This is where I usually start.
    Hope this helps.
    Eric
    Eric P. Nichols
    P.O. Box 56235
    North Pole, AK 99705

  • Serial Communicat​ion Error -107380725​3

    Hello!
    I'm trying to make a simple serial port reader VI and i can't get over this:
    Error -1073807253 occurred at VISA Read in communication.vi
    Possible reason(s):
    VISA: (Hex 0xBFFF006B) A framing error occurred during transfer.
    I'm pretty shure that the device sending a data works properly and the parameteres like a boud rate, parity etc. are set correctly because I've already communicate with that device via Matlab.
    Although I've noticed that somebody here have the problem with this error, but I can't find any solution for me.
    There is a picture of my simple VI diagram in Attachments. The parameters of the communication are set at the beginnig, after that and a litle delay the input buffer is flushed, then the loop starts. When the buffer contain nine or more bytes this bytes are readen. 
    Please, can anybody tell me what I'm doing wrong?
    Thanks
    Attachments:
    VI-rs232-trouble.jpg ‏106 KB

    chikvadrat wrote:
    The VI works well after launch. It also read first 9 character correctly, but after that it crashs.
    So what happens if by the time the loops comes back around, you have 10 bytes waiting for you at the port?
    Bill
    (Mid-Level minion.)
    My support system ensures that I don't look totally incompetent.
    Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.

  • I need help with Modbus Ethernet communicat​ion

    I try to communicate with a Modbus RTU controller with a MOXA Ethernet to RS232 converter. I use DSC module to create a modbus Ethernet driver, and create a list of shared
    variables that are bound to individual addresses in the modbus register.
    I have tried for a long time to make this communication stable, but I lose communication after a couple of hours..
    I read hex values from the controller registers, and they normally is from 100 to 140 depends.. But after a while some of my
    registers drop to zero, and others up to 65408 for instance..  and some digital values hang..
    When I restart my vi, it works again for some hours..
    Maybe it is a communication problem true Ethernet, because I have tested shared variables in other ways, and it works fine..
    I want to know if there is any specific rules how to put up a good way to communicate with my modbus driver true Ethernet.. I have enclosed one of the examples that I tried, and I have also tried to read values directly into while loops, but I lose communication after a while
    Anybody…  please I need help. I would be happy to see a good and stabile way to put up a communication example.. 
    I also tried some of the modbus examples, but I didn't manage it to work.. I use one master controller and one slave, and I use ID 32 for
    the master and ID 01 for the slave..
    Thanks..
    Very best regards from..
    Benji..
    Attachments:
    test37.vi ‏83 KB

    Hi.. and thank's for your answer..
    Yes, I have downloaded and tried the modbus lib before, and it works, but I have to rebuild it to make it work good for my system..
    Maybe that is the way to go..  But I also thought that when I have DSC installed, it would be easier to use that one..
    In the mean time I've did some test's and, I see that the problem maybe is in my modbus gateway..
    Anyhow.. thank's for your answer...
    Regards from Benji..

  • VISA: Communicate​ion with "imar sensor " via serial port[

    Hello
    I have problem in communication. I have one sensor imar sensor that can be easily communicate in Hyperlink but if I send same command for example "show conf" it doesn't responses It is connected with rs232 in com port 1.  it will be nice if you give me some suggestion thanking you
    regards
    Solved!
    Go to Solution.

    Yeah I can't open that (needs to be 2010 or earlier - see my first post)
    Is 57600 baud rate the one specified in the manual for your device? This needs to be absolutely correct for the serial communications to work properly.
    "If anyone needs me, I'll be in the Angry Dome!"

  • It's better or necessary open and close communicat​ion with instrument every loop?

    I must communicate with my instrument, but I must change its value, for example temperature, every loop. See the Figure to understand:
    I think that it is better if I open communication with my instrument out of while loop so I many operation: if I put Open VISA in While loop I open VISA session every loop, instead I think it is not intelligent. Can I open VISA SESSION out of the while loop or it is an error for EXCELLENT LABVIEW VI and I must open and close VISA SESSION every times I must talk (and set) with instrument? What is the better way?
    Message Edited by Michelle1892773 on 02-22-2010 02:00 PM

    Something like this?
    I do have to say, i don't know what is happening in the false case of yours, but if nothing happens with the 100 that is wired to the shift register, once you enter the true case, the value in the shift register will always be great than "i". You might as well do what I have done then. However, if something does happen with that number in your false case, then keep it the way you have it.
    That being said, why is the condition there to see if it has looped 100 times before doing the visa write??
    Message Edited by for(imstuck) on 02-22-2010 04:45 PM
    Message Edited by for(imstuck) on 02-22-2010 04:46 PM
    CLA, LabVIEW Versions 2010-2013
    Attachments:
    visa.PNG ‏13 KB

  • How to implement Modbus Ethernet communicat​ion in Lookout, if we want to simulate the PC as PLC ?

    Problem Description :
    Dear Sir,
    We are doing a project where we are using Lookout with
    Front end Modicon PLC. The communication is by
    Ethernet, using Modbus.
    Since the installation is at a distant place, we wanted
    to use another PC (running Lookout) to simulate the
    PLC. For this, we tried to communicate
    a: the server Lookout PC running Modbus Ethernet mode of
    Modbus object as Master
    b: with another PC (for simulating the PLC) running
    Modbus Slave
    We did not get any communication. (we have given the
    details of what we have done, at the end of this email)
    We also tried connecting the above 2 PC's as
    a: the server Lookout PC running Modbus Serial mode of
    Modbus object as Master
    b: with another PC (for simulating the PLC) running
    Modbus Slave object
    Again we did not get any communication.
    If instead of PC (b) we connect the Modbus simulator to
    PC (a), there is no problem in communicating
    Please let us know how to go about establishing the
    communication between 2 PC's using Modbus serial,
    and Modbus Ethernet. A detailed step by step procedure
    would help us a lot.
    Thanking you
    Warm Regards
    Raja Mahbubani
    Procedure of our trial with ethernet.
    This is what we have done in detail.
    On PC A:
    We created an object (Pot) and connected it to
    the modbus data member of the modbus object say 40001. In the
    properties of the modbus object we selected modbus ethernet mode
    of communication and in the IP address field we wrote the IP
    address of the machine B to which we are trying to communicate
    i.e. 152.63.50.2.
    On PC B: we tried the following two methods
    Trial 1 : We created a modbus slave object and
    inserted an expression for the same data memeber to which the
    object was connected hoping to get the value of the pot of machine
    A on machine B.
    Trial 2 : We created a modbus object on machine B and we wrote
    the IP address of machine A and inserted an expression for the
    same datamemeber to which the object was connected hoping to get
    the value of the pot of machine A on machine B.
    NI Software : Lookout
    Version : 4.0.1 or 4.5
    OS : Windows 98
    NI Hardware : N/A
    Drivers : N/A
    Other Hardware/Instruments : N/A
    CPU : Pentium
    RAM : 64
    Vendor : S-Tech
    Customer Information :
    Raja Mahbubani
    Theta Controls
    IN
    [email protected]
    Ph: (+91) 20 4222556/7

    The ModbusSlave which comes with Lookout currently supports only Serial communication. So, you cannot use Ethernet between your two PCs. At least not with Modbus Master-Slave setup (if you must speak Ethernet between the two PCs, IPASCII object lets you do that, but then you'll need to implement your own protocol).
    Since all you want to do is simulate a Modbus PLC on a PC, you can use the Serial mode of communication for now. And later on just modify the Object in your Server Lookout to use the Ethernet mode.
    For setting up a Serial Modbus Slave, use a null-modem cable between the two PCs (lines 2 and 3 are swapped). On your PC 'B,' create the Modbus Slave object with the right COM port for that PC. And on your PC 'A' create the regular Modbus Object as if you w
    ere connecting to the Modbus Simulator box. The only difference here is the cable. The simulator box uses a straight-through cable whereas the Slave needs a null-modem cable.
    Hope this helps.
    Rgds,
    Khalid

  • 6500a e710 a-f - Scanner Communicat​ion Error Windows 8.1

    We have been experiencing issues with scanning whilst connected via USB, using the HP Scan software. The software returns an error message saying scanner communication cannot be established, half way through scanning. Then HPScan.exe fails to load again. The printer just says “scanning cancelled” on its display.
    This is only effecting one model of PC and that is a HP 8300 Ultra-Slim PC.
    We are running Windows 8.1 64 bit from an image install. However, I have tested this with a fresh Windows 8.1 retail installation and get the same problem.
    We have tried various actions to fix this:
     - Various accounts, admin accounts, domain admin accounts, local accounts etc.
     - Uninstall and reinstall. Basic and Full driver packages including the latest versions
     - Removed all other HP software from PC including registry keys
    - Used built in Windows 8 scan software with basic driver
     - All USB ports tested including 2.0, 3.0 and powered / non-powered
     - Replaced cables
     - Re-isntalled USB bus drivers for 8300
     - Followed the print/scan doctor which shows a driver error - scandriver unable to communicate with product
     - Run HPScan in compatibility mode for 7/XP
     - Updated firmware on printer
     - Installed latest Windows Updates
     - Checked WIA service and dependencies are running
     - Semi and Full factory resets on Printer
     - Shell hardware detection service set to manual
     - We have replaced the printer for an affected user - same issue
     - Also replaced PC for an affected user - same issue.
     - Updated PC BIOS
    I have tested connecting the printer to the router with a network cable and then installing printer as a networked device rather than USB and then the hpscan.exe works. So this is only an issue with USB (though it wouldnt be practical to try and talk 200+ users through networking their printer).
    As you can see, we have tried almost everything. Interestingly we havent been able to replicate this issue in one of our main offices - despite collecting the same PC and Printer from an estate and bringing it back to an office.
    We have also sent out a working PC and Printer combo to an affected estate office and it has not worked there.
    Our Estate Offices connected via an ADSL Router and "My Documents" are re-directed to a network location. Could a failure in accessing this network location cause the problems? I have tested connectivity to network store from PC and it accesses the files fine.
    Any solutions would be greatly received, I have spoken to HP After Sales support but not received an working solution yet.

    Greetings, @Scammell29
    I have read through your post and have very ideas left for you, as you've tried quite the load of troubleshooting!
    I am thinking the issue could be power related, so try a power reset and plug the printer in directly to the wall outlet. Avoid power bars, surge protectors, etc. Just a direct plug in to the wall to test the power. Afterwards, see if you still receive the communication error.
    If the issue continues, next try a disk cleanup, the instructions are included in this guide: A 'No Computer Detected' or 'Connection Error' Message Displays during Scanning for HP Officejet 650...
    If the error still persists, perform a Clean Boot and restart the PC and then disable the Firewall and Anti-Virus scanners.
    Please let me know the results!
    Good luck
    R a i n b o w 7000I work on behalf of HP
    Click the “Kudos Thumbs Up" at the bottom of this post to say
    “Thanks” for helping!
    Click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution!

  • Serial communicat​ion does not work in an executable​.

    I have created a vi that communicates with a serial device. It works fine on the computer that it was creatd on. I then created an application and then built an installer to put it on another machine. The second machine does not have LV 2009 on it. Once installed on the machine the vi does not work. When it runs on the computer with LV 2009 the the com port control is a pull down, and it lists all comports on the computer and then you select the one you want to connect with. The computer that the vi is installed on does not list the available com ports. This leads me to believe that there is no serial comms support in the installable version. What do I do now?? I noticed that you can add "Additional Installers" when you build the installer and one of them is NI-Serial 3.4. I try to add this and a message said that it had to get, so I didn't use it thinking it was more than I needed and that standard com port driver would be included. Am I wrong here or am I missing something else?? All help is greatly appreciated.
    [email protected]
    Solved!
    Go to Solution.

    claudio.rossi wrote:
    Hi  at all!!
    I'm new in NI forum.
    I have one similar problem. My VI communicate with external device on serial port. The VI work very well, but when I create executable (.exe) file with Labview application builder (on Labview 2010) the .exe don't use serial port!!! The executable run perfectly (nothing error or warning by the application builder), but the serial data on selected COM port  isn't send!!! Also on the PC where I developed the VI!!!
    What do you mean by your last sentence?  Are you trying to say that you can't run your executable even on the same computer on which you developed the application?  If so, was LabVIEW open when you tried to run it?  Try quitting LabVIEW; if you had previously run your VI and didn't close the serial port, LabVIEW might have kept it open, which would prevent the executable from accessing it.  If the executable won't run on the development machine it's unlikely to be resolved by installing VISA since you need that installed for the VI to work properly in the development environment.  Do you have any error handling in your code that would indicate if an error occurred after trying to write to the serial port (an indicator on the front panel, or a call to Simple Error Handler)?

  • MAX communicat​ion hangs after Standby Mode(with GPIB PCMCIA)

    I have a IBM Laptop with MAX 2.2 and a GPIB PCMCIA Card installed. After booting the computer I can communicate with GPIB instruments without problems. After I get the Laptop out of a Standby Mode, MAX can not make any connection to GPIB devices; when I scan for Instruments it hangs as well.
    The troubleshooting wizard tells me: one or more GPIB interfaces failed.
    Does anyone have the same problems or solutions ?

    On the NI-488.2 2.0 download page it is mentioned that that driver does not support standby mode. No such mention is made on the download page for NI-488.2 version 1.7 (which I need to use for my PCMCIA-GPIB interface), although the 1.7 release shows very much the same problem: After stand-by, communication with the GPIB port is no longer possible.
    The Visual Basic example tool for preventing stand-by may help those users who are familiar with VB, but it does not help me.
    Frankly - what I'd like to see is an improved NI-488.2 version that does support stand-by. Does NI consider providing such an upgrade/patch?

  • I have problem with communicat​ion bethween 2 computers

    hello
    i have problem with communication bethween 2 computers
    On the firs computer i have installed OPC server from unitronics . In this case i communicate with my lookout process.
    On the second computer i have installed only lookout. 
    This 2 computers are connected with a VPN whireless .
    The second computer command the device from the first . 
    My problem is : After 10-14 hours comunications bethween computers is blocked . If i restart the first computer comunication begin to work.
    How to solve this problem , i don't want to restart every 10 hours the first computer
    Thanks in advice  

    1) Are you able to verifiy that the VPN connection is still active at the time of the loss of data? There may be a timeout in the VPN system.
    2) Is there any time out n the OPC server?
    3) Is there sufficiient memory on the first computer?
    Robert Hill
    Technology and Security Advisor

  • Intensity plot and MSnode-win​dow communicat​ion

    Two questions:
    1) Is there an intensity plot function that can be called from the mathscript window to display 2D arrays (such as a grayscale image), similar to the matlab function "image" or "imagesc"? The only options I saw were to display a 2D array on a 3D plot. Yes, I know the intensity plot is available in the variable display window, but I would really prefer a command-line option.
    2) When I wire a variable to a matlab script node and run the VI, that variable becomes available in the matlab command-line window. I find this very convenient. Is it possible to do this (or something like this) with the mathscript node and window? I know I can communicate between the node and window with globals, but I have to go through the trouble of defining globals, and this only works if I create a project for my VI, which is just far too much overhead.
    thanks.

    Hello,
    In response to your first question, we currently do not have such a function.  However, such functionality is on the roadmap for a future release.  As for the second question, each MathScript node is currently sandboxed -- that is, it has its own variable space.  This was done so that there is no variable collision between different MathScript nodes.  We will be improving the interaction between the MathScript node and the MathScript Window in the future and your suggestion is one idea we are considering.  It would most likely be an option on the node and not enabled by default to prevent any variable collisions.
    You do not need to create a project in order to use globals to share data between the MathScript node and the MathScript Window.  However, the MathScript node and the MathScript Window need to be in the same application instance.  Thus, if you are already using projects, make sure you launch the MathScript Window from the same project in which your VI is located.  If you are using the default application context (no projects open), then you should be able to share a variable "a" between a MathScript node and the MathScript Window by typing in each:
    global a
    Grant M.
    Staff Software Engineer | LabVIEW Math & Signal Processing | National Instruments

Maybe you are looking for