Help sending multiline interface commands

Hello,
I have an instrument that is controlled by its own software on a PC that it is connected to with GPIB and RS232. I would like to write a labview program that emulates what the software does. I ran the GPIB analyzer during the initialization of the machine and captured this:
I want to send these 6 commands in LabView so I have a little vi that initializes the machine. I looked at this thread and tried to follow the advice given there. I need to send the string @?#yI followed by a line feed. I'm very new to LabView so I downloaded the example GPIB read/write and tried to make the changes suggested. Here is a screenshot of my attempt:
I'm sure this has many mistakes, can someone point them out to me? When I run it it either a) does nothing or b) gives me an error saying "the interface associated with this session is not the controller in charge".
Also, how can I send the "line feed" character? The manual for the instrument (attached, check page 63) says statements must be followed by a PRINT statement which is the line feed character according to the GPIB analyzer output ("a" in the sixth line).
Thanks!!!
 

Thanks for the advice Dennis. This is what I ended up with:
The VISA read sends the 4 green commands (TA0, UNL, LA3, SC25) by itself and the "I\n" in the buffer sends the data.
Now I am trying to get information back from the instrument. This screenshot is what the software is doing (and I want to replicate). In the red square are the commands I want VISA read to send. The instrument sends "60." back. 
Basically, I want to have listener address 0 (LA0), talker address 3 (TA3) and secondary address 13. 
Here's what I tried:
You can ignore the stuff at the begining and see that for the VISA read I set the VISA resource name as GPIB::0::13::INSTR. However that created this result:
There is a big mess of green commands. I need LA0 and TA3. In this case I got LA0 but TA0 instead of TA3. This was the error I got when I ran it:
So then I tried using the same block diagram but with the address GPIB::0::13::INSTR for the VISA resource name input on the VISA read. This time this is what happened:
This time I got LA3 not LA0 and the TA was not set at all. This was the error when I ran it:
Do you have any ideas on how to get this to work properly and what I am doing wrong? 
Thanks!
 

Similar Messages

  • I can send multiline interface commands but not data commands

    hi
    i am using a gpib controller.I cannot seem to find a way to switch between multiline commads and data commands.the key is the ATN bit as to send a DAB command the atn bit must be low. I cannot make the controller distinguish when a command is a adta command and not a multiline command,

    sorry bit i did not know i could answer you directly.
    i am using the measurement computing gpib controller cb7210.2 which is nearly ni compatabile.i am interfacing it with a microcontroller connected to the pc.Then i am trying to use a monitor program that is embedded in the microcontroller to perform remote access of instruments.i am using assembly. i have managed to communicate with the instrument.now the problem is that i cannot make the distinction between data commands and interface commands.for eg if i send 3Fh and atn happens to be 1 this is interpreted as UNL if atn is 0 then it is interpreted as data command.i need to be able to have control of the atn bit so that i can send either at will. so to problem is how to control the atn bit.
    thanks
    again

  • Tcp/ip write help - need to send a motor command with parameters

    hello - i have one small, main labview 7.0 vi that i use to control a drill's two motors.
    right now i press a button on the front panel to move the motor, and when i do, a sub vi window pops up so the operator can set a couple of parameters and press an ok button.....the vi then sends the command with the parameters to the drill's motors.
    i am trying to change it so i can send the move command from another computer, in another room, while the main vi sits on the computer with the drill. i know i will use TCP listen, write, read, and close in both the main vi (the TCP server?) and the client which is on the remote computer.
    my problem is with setting the parameters for the subvi's that usually pops up. how do i set the parameters from the remote-client and have them be sent into the subvi on the main vi. if i can do this, i would have to also have a way to close the sub vi after it pops up in the main program too.
    OR should i use something else like and application reference or an invoke node function?????
    please help
    thanks!!!!
    sam

    Hi again,
    If the VI in the lab will be running continuously, then you will need
    to alter some things from the example I sent you or look at an
    alternate implementation. The example I sent you assumed that the VI in
    the lab was not running. This technique actually starts the VI and runs
    it somewhat like a subVI. It inputs values into the connector pane,
    runs it, and then returns values from the outputs on the connector pane
    after it finishes executing. It will not work to call a VI by reference
    if it is already continuously running.
    Instead I imagine you would want to have your VI in the lab have some
    sort of State Machine that polls a certain control value, such as an
    enum control, to determine which state to execute next. You could
    modify the technique I first sent to still open a reference to the VI
    in the lab, but it wouldn't try to run it. Instead you could use the VI
    method Set Control Value to set the value of a certain control or
    controls in the lab VI to certain values. The VI in the lab would then
    hopefully be in some Idle state where it polled one of those control
    values continuously to decide what to do next. That would allow the VI
    in the office to programmatically send commands to the other VI, as
    well as parameters for those commands. Simply set control values for
    the VI in the lab and let the VI in the lab go about its business. I've
    attached an example below.
    That's just one idea. Other options you have would be to use a
    DataSocket connection to send parameters and commands back and forth
    between computers. This is a pretty simple API to use. If you have
    LabVIEW 8, Shared Variables are an option. Or you might look into
    simply using Remote Front panels, which allows you to connect to a VIs
    Front Panel across the network. You could then have the whole VI in the
    Lab, but you could connect to it, view it, modify the controls and so
    on from your office. If you want to view and control a VI without
    having LabVIEW installed on the viewing computer, you can use the Web
    Publishing Tool to create a web interface for your front panel. Lots of
    options. Let me know what sounds interesting.
    Jarrod S.
    National Instruments
    Attachments:
    Lab_VI.vi ‏29 KB
    Office_VI.vi ‏51 KB

  • Fatal Error Acrobat failed to send a DDE command

    Hello all.  I have a fillable form I developed using word 2010.  I am trying to convert it to a PDF form.  I open acrobat and select star from wizard from the Forms menu.  I browse to find the word document and open it.  I save the PDF document and everything looks good.  I get a progress bar that says "Please wait, reading Adobe PDF".  This is very slow progress and then I get the Fatal Error message "Acrobat Failed to send a DDE command".  I click ok and the progress bar continues still very slowly.  I get the same message again.  I click ok and the progress bar continues.  The progress bar gets to the end and just stays there.  Nothing happens.  I waited for an hour and then cancelled it. When clicked cancel, the PDF document opens with my form but without any fillable fields or drop down menus.  I tried to do it again a few times and I get the same error message.   I am using Adobe Acrobat 9 pro version 9.4.2.  Thank you in advance for your help.
    Gonzalo
     

    AA 9 will not work for anything but the print function from WORD 2010. The only version of Acrobat that is compatible with OFFICE 2010 for PDF Maker is AA X. Thus, open WORD and print to the Adobe PDF printer. Then open the pdf in Acrobat. Go to FORMS>Add or Edit fields. Since you have no fields at present, Acrobat will ask if you would like to detect form fields. Answer yes and you will get a first cut at the form fields. Yes, you will likely have to add some more and change the ones that Acrobat estimates, but you are on your way.
    The other two options you have is to go back to WORD 2007 or earlier or upgrade to AA X (or find someone with AA X and WORD 2010). These methods are pretty much your options with the software combination that you have.

  • How can I send multiple string commands into a VISA write?

    Hi Fellow LabVIEW users
    I am very new to LabVIEW (2.5 months) so please forgive me if my lingo is not up to par.
    How can I send multiple string commands to a VISA write. For example each string command looks like this
    1) 3A00 0000 0000 FFFF FFFF FFFF 0000 0000 FF00 0000 0000 0000 0000 0033 (Scenario 1)
    2) 3A01 0000 0000 FFFF FFFF FFFF 0000 0000 FF00 0000 0000 0000 0000 0034 (Scenario 2)
    3) 3A01 0000 0000 33FF FFFF FFFF 0000 0000 FF00 0000 0000 0000 0000 0067 (Scenario 3).
    and so on and so forth. And there are a number of scenarios.
    Each String scenario will give a different string output which will be interpreted differently in the front panel.
    Right now I have to manually change the string commands on the front panel to give me the desired output. How can I do this without manually changing the commands i.e. hard coding each scenario into the block diagram?
    Thanks, any feedback will help.
    mhaque

    Please stick to your original post.

  • Why is the "Send to iDVD" command missing from the share menu in iPhoto 9.4.3 when trying to send a slideshow to iDVD?

    How come the "Send to iDVD" command is missing from the share menu? In iPhoto I used to be able to send my slideshows to iDVD simply my clicking on the slideshow, selecting the "Share" menu at the top and going to "Send to iDVD". Now in iPhoto 9.4.3 that option is missing.
    Further i am also using iDVD 7.1.2 and running OSX version 10.8.3.
    Thanks!

    Export the slideshow via the Export button at the bottom of the slideshow window with Size = Medium or Large.
    Open iDVD, choose a theme and drag the exported movie file to the menu window being careful to avoid any drop zones.
    Follow this workflow to help ensure the best quality video DVD:
    Once you have the project as you want it save it as a disk image via the  File ➙ Save as Disk Image  menu option.  This will separate the encoding process from the burn process. 
    To check the encoding mount the disk image and launch DVD Player and play it.  If it plays OK with DVD Player the encoding was good.
    Then burn to disk with Disk Utility or Toast at the slowest speed available (2x-4x) to assure the best burn quality.  Always use top quality media:  Verbatim, Maxell or Taiyo Yuden DVD-R are the most recommended in these forums.
    OT

  • Passive interface command on RIP

    Hi all,
    This command below
    passive-interface command give additional information to RIP, that it can't send updates via this particular interface ---
    As per my understanding is this if we have 2 routers that are directly connected with each other and we enable this command on the interface of one of
    routers then that router will not send any RIP updates to other router right?
    secondly if these 2 routers are point to point connection we can ping directly conencted interfaces IP of  routers because they are directly connected even though there is no routing protocol running between these two right?
    3rd thing when i run sh ip protocols on one of router it shows
    Routing Protocol is "rip"
      Sending updates every 30 seconds, next due in 1 seconds
      Invalid after 180 seconds, hold down 180, flushed after 240
      Outgoing update filter list for all interfaces is not set
      Incoming update filter list for all interfaces is not set
      Redistributing: rip
      Default version control: send version 2, receive version 2
        Interface             Send  Recv  Triggered RIP  Key-chain
        FastEthernet0/0       2     2
      Automatic network summarization is in effect
      Maximum path: 4
      Routing for Networks:
        192.168.4.0
      Routing Information Sources:
        Gateway         Distance      Last Update
        192.168.4.2          120      00:23:38 ****************************************************
    here last update time keeps on incrementing but  sh ip route does not show now that rip is running.
    so this line means
    Invalid after 180 seconds, hold down 180, flushed after 240
    that after 240 secs router will flush the rip routes fron the routing table right?
    but sh ip protocol  will always show rip as routing protocol as we have config the rip and last update time will keep on incrementing right?
    thanks
    mahesh

    Hi Mahesh,
    From the config guide:
    To control the set of interfaces with which you  want to exchange routing updates, you can disable the sending of routing  updates on specified interfaces by configuring the
    passive-interface
    here is the link:
    http://www.cisco.com/en/US/docs/ios/12_0/np1/configuration/guide/1crip.html
    Correct, you do not need a routing protocol.  The interfaces are directly connected.  Now, if for example you add a loopback address to each router, you need a routing protocol or static router to reach the opposite router's loopback address.
    The reason the interfaces/IPs do not show up in the RIP routing table is because they are directly connected and directly connected routes have a lower admin distance (1) which is preferred over rip which is 120.
    yes
    HTH

  • "send to color" command from FCP not working.

    Hello there...
    The problem i'm having is when I send to Color from FCP nothing happens.
    I'm working on a project all the footage is in DV... very straight forward.. i've worked with color in the past so i understand the process of preparing the material for Color.
    I restarted, created a new project, imported material in different codecs like pro res... and Nothing... Nada.
    I have the latest version of FCP and Color.
    i'm on a deadline so i want to avoid reinstall... any ideas??
    any help will be greatly appreciated!
    thanks!!!
    andres.

    Hello JP, Thanks for your reply!!
    Here are the answers...
    Restart: the application and computer (usually the solution to every problem in life)
    Created a new project In FCP.
    I'm not mixing any codecs... everything is straight edits no dissolves, no speed change, just cuts, all the material is the same source an old school mini DV camera 29.97fps.
    I'm trying to send a sequence form FCP. Actually the "send to color" command is highlighted.
    By nothing i mean:
    I select on file menu "Send to Color" command and I see the prompt window with the duration of the project (5min) Name of sequence... i change the name to v2... and thats it. Color doesn't open... I tryed opening color in advance and same thing. seems opening script is not working.
    Thanks for your reply and help!!!!!!
    best,
    Andrés.

  • Sending down Linux commands from database

    Hello
    Im working with Oracle 10.2.0.4.3 on Linux SuSE FUSE Version 2.3.0-RC0-SL0/SLES-9.
    Im currently doing an extract of BLOB files down to a directory on the server.
    When I do the extract the Oracle user becomes the owner of the files and my own user doesn't have the access (neither read or write) to the files.
    I cannot receive Oracle access due a security issue so Im wondering if its possible to send down a command from the database that does a
    $chmod a+rw my_directory/*.* ?
    Iv looked into the some forums and I didnt find anything in particulate that would help me, so Im wondering if any of you know if this is possible ?
    BR / SA

    Hello
    Thank you for your advice but the question was to send down Linux commands from the DB, not do anything in the Linux enviroment.
    Here is a good place to start that I found on the net.
    public class JShellCommand {
    public static int execute(String cmd) {
    try
    String[] shellCmd = { "/bin/sh", "-c", cmd };
    Process process = Runtime.getRuntime().exec(shellCmd);
    int exitVal = process.waitFor();
    return (exitVal);
    catch (Exception e)
    return 1;
    load it into db with loadjava and wrap it with:
    CREATE OR REPLACE
    FUNCTION Shell_Command(
    p_CMD IN VARCHAR2
    RETURN NUMBER
    AS
    LANGUAGE JAVA
    NAME 'JShellCommand.execute(java.lang.String) return int';
    For OS command you can use:
    public class JCommand {
    public static int execute(String cmd) {
    try
    Process process = Runtime.getRuntime().exec(cmd);
    int exitVal = process.waitFor();
    return (exitVal);
    catch (Exception e)
    return 1;
    and
    CREATE OR REPLACE
    FUNCTION OS_Command(
    p_Cmd IN VARCHAR2
    RETURN NUMBER
    AS LANGUAGE JAVA
    NAME 'JCommand.execute(java.lang.String) return int';
    /

  • To send multiple operation commands to serial port

    My AC power source is able to communicate to PC via serial port using LABView and I can perform any operation by giving commands in Hex individually, But when it comes to the parallel operation of all the commands or to put them in a particular sequence. I am failing to do so.

    You can only send 1 command at a time.  That is just bus communications 101.  But you can string together many VISA Writes to send the individual commands, one after the other.
    But since if sounds like you are doing this on a GUI based instance, what you want to do is configure the port before your loop and close the port after the loop.  Then inside your loop you just have an Event Structure to key off of the different controls changing values.  You just send the command you need to inside of each event case.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions

  • Can't seem to sync my phone with iCal because I get a message that says:No writable calendar. I tried the suggestions I found in Help including a Terminal command to no avail.

    Can't seem to sync my phone with iCal because I get a message that says:No writable calendar. I tried the suggestions I found in Help including a Terminal command to no avail.

    I can only suggest you now need to somehow link your mobile to sync with the new calendar 'On my Mac'.
    I have a work Blackberry whose calendar I sync with an iCal calendar 'On my Mac' using a usb lead and the Blackberry Desktop Manager for Mac. This free piece of software from Blackberry, automatically starts up as soon as I connect the usb to the iMac and it then prompts me to select which calendar 'On the iMac', which is writable, that I want my Blackberry to sync to.

  • Acrobat X Pro does not open, gives fatal error - "Acrobat failed to send a DDE command"

    Acrobat X Pro does not open and gives fatal error - "Acrobat failed to send a DDE command"
    It either does the above or the application starts and is listed in the system processes but never physically opens on the desktop for viewing.

    AA 9 will not work for anything but the print function from WORD 2010. The only version of Acrobat that is compatible with OFFICE 2010 for PDF Maker is AA X. Thus, open WORD and print to the Adobe PDF printer. Then open the pdf in Acrobat. Go to FORMS>Add or Edit fields. Since you have no fields at present, Acrobat will ask if you would like to detect form fields. Answer yes and you will get a first cut at the form fields. Yes, you will likely have to add some more and change the ones that Acrobat estimates, but you are on your way.
    The other two options you have is to go back to WORD 2007 or earlier or upgrade to AA X (or find someone with AA X and WORD 2010). These methods are pretty much your options with the software combination that you have.

  • Send multiline container into receiver (SP14)

    I need to validate each object in xml
    I created BPM, 1:N mapping,  1:1mapping for validation and value mapping.
    Then I need to insert data into DB (JDBC Receiver).
    I want to improve performance and to insert all validated data in one transaction as bath operation. For this purpose I think to add multiline container and container step ant collect all validated data.
    The question is: Is it possible to send  multiline data from BPM into receiver system? I heared that it is posible in SP14. Do I need additional configuration? Will this solution work?

    Hi Inigo,
    you need first a tranformation step where you have a source message with n lines and n target messages with one line (multi line container).
    Next you can define a loop block for all entries of that container.
    Regards,
    Udo

  • Need help in the below command excution

    Hi Champs,
    Can any one help with the below command, It is not working.
    Get-CsUser | Where-Object {$_.dialplan -eq "USDAL"} | Grant-CsLocationPolicy -PolicyName "Dallas Location Policy"
    Regards
    Vijendhar

    You could try something like: 
    $userlist = Get-CsUser -ResultSize Unlimited
    foreach ($user in $userlist)
    if ($user.dialplan -eq $Null)
    $pool = (Get-csdialplan | Where-Object {$_.Identity -like ("*" + $user.RegistrarPool)})
    if ($pool.length -ge "1") {write-host ("Pool simple name: " + $pool.simplename + ", Identity: " + $pool.identity)}
    if (($pool.simplename -eq "USDal") -or ($pool.identity -eq "USDal"))
    Write-host "Please Grant location policy to: $user.Displayname"
    # Get-csuser $user.identity | Grant-CsLocationPolicy -PolicyName "Dallas Location Policy"
    $pool = $Null
    Use at your own risk as I haven't had a chance to test, I have commented out the grant so you can test prior to changes.
    Please mark posts as answers/helpful if it answers your question.
    Blog
    Lync Validator - Used to assist in the validation and documentation of Lync Server 2013.

  • Having dowanloaded Yosemite, I find that I can' enlarge the print on the Help pages.   The Command  keystroke does n`t seem to work.   Any body any ideas as to haw to do it in the new OS X ?

    Having downloaded Yosemite, I find that I can't enlarge the print on the Help pages.   The 'Command +' keystroke doesn't seem to work.   Anybody any ideas as to how to do it in the new OS X 10.10 ?

    Hi ..
    Command + T should definitely work.
    Restart your Mac then try again.
    If that doesn't help, a Safe Mode boot deletes some system caches that may help after an OS X upgrade.
    Top left corner of your screen click the  Apple   > Shut Down.
    After your Mac shuts down, wait 10 seconds, then press the power button.
    Immediately after you hear the startup tone, hold down the Shift key. You should press the Shift key as soon as possible after you hear the startup tone, but not before.
    Release the Shift key when you see the gray Apple logo and progress indicator.
    Once you are in Safe Mode, go back to the Apple  menu. From the drop down menu click:  Restart
    Then try enlarging the text in a Help window.
    About Safe Mode.

Maybe you are looking for