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

Similar Messages

  • Problem with out going mail. I can send from my iPad but not my MacBook Air yet settings are the same.

    Problem with out going mail. I can send from my iPad but not my MacBook Air, yet settings are the same. Can anyone advise?

    Hi sointoit,
    If you are having issues sending mail from your MacBook Air, you may find the following article helpful:
    OS X Mail: Troubleshooting sending and receiving email messages
    http://support.apple.com/kb/TS3276
    Cheers,
    - Brenden

  • Can send photos in message, but not recieve?

    Seem to be able to send photos in messaging, but not able to recieve messages with photos or videos. Any help?

    http://support.apple.com/kb/ts2755

  • Can send email from iphone but not from mac.

    Hi. I'm using a mac desktop and the mail app. I can receive email, but not send. I checked my port and id/pswd and still cannot send. After the app tries to send, it says the server is offline.
    I am able to send email fine with my iphone.
    Any ideas would be appreciated. Thanks!

    I've checked this and mail connection doctor says I am connected  - think I am going to have to get someone in to help me as I have spent about 4 hours on this now :-(

  • Can send faxes on 6500 but not receive them.

    Test says I need different phone cord. Went to Best Buy and they said that's crazy since I can send out. It used to work when I had Vonage, but now I switched to Comcast home phone and it won't work.
    This question was solved.
    View Solution.

    Hate to hear your are having that issue with your faxing. The Best Buy reps do their very best, they have 1000's of products to get to know....
    if you are not using the HP supplied cord (which is a 2 wire cord) or the fax hardware test indicates your are not using the correct cord then we need get you another fax  cord(2 wire  fax cord...)
    If the cord you are using is a 4 wire cord (you can tell by the 4 prongs on the end) then you will have fax issues... The extra 2 wires in a 4 wire cord can cause interference..
    Also.... you mentioned you changed carriers..If you have a voicemail service active this will disrupt your incoming faxes... there is no work around you MUST DEACTIVATE your voice mail to receive faxes.
    If I have solved your issue, please feel free to provide kudos and make sure you mark this thread as solution provided!
    Although I work for HP, my posts and replies are my own opinion and not those of HP.

  • I can send new, short emails, but not reply or attach

    Hi,
    I can send new and very short emails fine and recieve all emails fine too. However if i reply to anything longer than a word or two or try to attach any size file, mail won't send the file. The same thing happens in Entourage and this started happening after i switched DSL carriers. Any ideas? I have already deleted and recreated my accounts and checked with the DSL carrier who is satisfied that my settings are correct.
    thanks,
    J.

    You friend needs to check the router manufacturer's website for any updated drivers for the router model which may or may not be specifically targeted for OS X but if available and installed, this may resolve the problem especially if it occurs with any OS X email client.

  • IMessage only can send text with photo but not text only

    How come my iMessage can only sent text with photo but not text only. While entered text the send button is blue and gray.the button could become blue and white when only photo was being inserted. My iPad 2 iOS version 5.0.1.

    Went apple store today, everything is fine. Out of the store I have the same problem as disrobed above. Can anyone help?

  • I can't send pics to certain friends via iMessage or mms.  I can send to my daughter but not my wife.  Both have iPhone 4

    When sending a picture from camera roll I'm unable to send to my wife's iPhone 4 but I can send to my daughter's iPhone 4.  Anyone have any ideas?

        We understand how important photos are to share. We want to make sure that we get these fixed for you, susanhm. Is your husband able to receive other people's picture messages? Has he ever been able to receive picture messages from you?  Please have him send a photo message to himself and see if he is able to receive it.
    RobinD_VZW
    Follow us on twitter @VZWSupport

  • I can send vars to php but not load

    My AS2 script:
    var sen = new LoadVars();
    sen.nam = "mycont";
    sen.wor = "test";
    myvar = sen.wor;
    And I got a button with the script:
    on (release){
    _root.sen.sendAndLoad("this.php", _root.sen, "POST");
    And a textbox with the var "myvar".
    My PHP content is:
    <?php
    $myf = "that.html";
    $cont = $_POST['nam'];
    $write = fopen($myf,"w+");
    $wor = fread($write, filesize($myf));
    $vars = "wor=" . $wor ;
    echo $vars;
    fwrite($write, $cont);
    fclose($write);
    ?>
    When running it the send is succesfull because I can see that
    it edits my file.
    But nothing is get into my textbox.
    Whan is the problem? I try to fix it two hours already.
    Thank yo for your help...

    well, first myvar is going to have a value of "test", but
    that doesn't mean anything's been received from your php file
    because you're assigned rec to have a property of wor that has a
    value of "test".
    if you're not seeing that, you have a problem that has
    nothing to do with your php file: you don't have a visible
    textfield that has variable myvar.
    second, you don't want to assign any properties to rec. you
    want those properties to be assigned by your php file so you can
    retrieve feedback from your script, including assurance that it
    executed properly.
    further, you don't want to use the code i showed. i
    mistakenly thought you wanted to send wor and its value to your php
    script but there's no reason for that. so remove that
    sen.wor="test" line of code.
    finally, you probably don't have a way to check the trace()
    functions output so you can't see if everything is working. instead
    of using trace(src), use myvar=src and make sure myvar is an
    existing visiable textfield variable. (or, even better, use a
    textfield instance name and assign its text property.)

  • Can Send ASCII Files Correctly But NOT Binary FIles (TCP)

    In this code right here we are sending in a file and outputting it to the same computer -- we are just trying to test to see if it works. We are breaking the file up into 128 bit packets into byte arrays which we convert to strings to append ACKs, etc.
    When we send and ASCII file it is no problem, and it come out perfectly correct.
    When we send a BINARY file and try view it in wordpad, everything looks the same except sometimes a block (original file) will be a ? (copied file). Yes, it will literally show up as a question mark.
    Our code is below -- any help would be AMAZING.
    // PROGRAMMING ASSIGNMENT #1 (TCPCLIENT.JAVA)
    // Names: Brendan G. Lim, Andrew Tilt, Naoki Kyobashi
    // Class: COMP 4320 - Introduction to Computer Networks
    import java.io.*;
    import java.net.*;
    public class TCPClientString {
    public static int fileSize = 0;
    public static int arrayLength = 0;
    public static byte[] leftOver;
    public static int lengthLeft = 0;
    public static void main(String[] args) throws Exception {
    String fileName = "test.jpg";
    String fileOut = "copy.jpg";
    byte[][] splitArray;
    byte[] sendPacket;
    int ackNum = 1;
                   int fileSizeOut = 0;
    int windowStart = 0;
    int windowEnd = 0;
    int totalAcks = 0;
    //String serverAddress = args[0];
    // final int BUFFER_SIZE = 128;
    // byte[] buffer = new byte[BUFFER_SIZE];
         //Socket socket = new Socket (serverAddress, 6190);
    BufferedInputStream in = new BufferedInputStream(new FileInputStream(fileName));
    // //BufferedOutputStream out = new BufferedOutputStream(socket.getOutputStream());
    BufferedOutputStream out = new BufferedOutputStream(new FileOutputStream(fileOut));
    int len = 0;
    splitArray = createFileArray(fileName);
    boolean[] acksRecieved = new boolean[arrayLength];
         for(int i=0; i < arrayLength; i++)
    acksRecieved[i] = false;
         if (arrayLength >= 5)
         windowEnd = 4;
         else
         windowEnd = arrayLength - 1;
    System.out.print(arrayLength);     
    if (arrayLength != 0)
    while(totalAcks != arrayLength)
    for(int l=windowStart; l <= windowEnd && l < arrayLength; l++)
    if (acksRecieved[l] != true)
    sendPacket = getPacket(splitArray, l, l, 128);
    // System.out.println(windowStart);
    //      System.out.println(windowEnd);
    out.write(sendPacket);
                             fileSizeOut += 128;
    acksRecieved[l] = true;
         totalAcks++;
    while (acksRecieved[windowStart] == true && windowStart < arrayLength -1)
         windowStart++;
              if (windowEnd < arrayLength-1)
              windowEnd++;
    if (lengthLeft != 0)
    // System.out.println("did this");
    sendPacket = getPacket(leftOver, ackNum, lengthLeft);
    out.write(sendPacket);
                        fileSizeOut += lengthLeft;
    // System.out.println("\n\nSending File...");
    // while((len = in.read(buffer)) > 0 )
    // out.write(buffer, 0, len);
    in.close();
    out.flush();
    out.close();
    //socket.close();
                   System.out.println("\n \n" fileSize " " +fileSizeOut);
    System.out.println("\n****File Transfered****\n\n");
    public static byte[][] createFileArray(String fileName)throws Exception
    int arraySize = 128;
    FileInputStream fr = new FileInputStream(fileName);
    fileSize = fr.available();
    System.out.println(fileSize);
    arrayLength = fileSize/128;
    int currentPos = 0;
    int bytesRead = 0;
    byte[] msg = new byte[fileSize];
    int counter = 0;
    fr.read(msg);
    byte[][] brokenUp = new byte[arrayLength][arraySize];
    int msgPos = 0;
    if(fileSize >= 128)
    for (int j = 0; j < arrayLength; j++)
    for (int i = 0; i < 128 && msgPos < fileSize; i++)
    brokenUp[j] = msg[msgPos];
    msgPos++;
    if (fileSize%128 != 0)
    lengthLeft = fileSize%128;
    leftOver = new byte [lengthLeft];
    for (int j = 0; j < lengthLeft; j++)
    for (int i = 0; i < 128 && msgPos < fileSize; i++)
    leftOver[i] = msg[msgPos];
    msgPos++;
    return brokenUp;
    public static String getPacket(byte[][] brokenMatrix, int position, int ack, int length)
    byte[] packet = new byte[128];
    String pack;
    String finalPack;
    for (int i = 0; i<128; i++)
    packet[i] = brokenMatrix[position][i];
    pack = new String(packet, 0, 128);
    // finalPack = ack+"**"+"Address1"+"**"+"Address2"+"**";//+pack;
    // System.out.print(pack);
    //packet = pack.getBytes();
    return pack;
    public static String getPacket(byte[] brokenMatrix, int ack, int length)
    byte[] packet = new byte[128];
    String pack;
    String finalPack;
    for (int i = 0; i<length; i++)
    packet[i] = brokenMatrix[i];
    pack = new String(packet, 0, length);
    // //finalPack = ack+"**"+"Address1"+"**"+"Address2"+"**"+pack;
    //packet = pack.getBytes();
    return packet;

    Please use [code][co[/i]de] tags when posting code.
    It's too hard to see unformatted, but from your description I'd suppose you have a call to String#getBytes() somewhere. This method uses the default platform charset, and if they're different, you'd get different results. On the other hand, ASCII chars often have the same encoding (byte), which'd explain why it works with text files.
    You should use the String#getBytes(String) method with a consistant charset, like UTF-8.
    In fact, you shouldn't have to create Strings at all, no, let me rephrase that: you shouldn't pass any Strings around if you'Re sending binary data (nor for the text data, btw.).

  • I can send video to IDVD but not audio...

    I shot it on my video camera, imported with Imovie, sent it to garageband to add chapters (markers) and then sent it to IDVD for burning. Am I needing to check some audio button or something? The dvd burns fine but no audio.
    Thanks.

    Xvid/Divx are output files, not meant to be edited (variations of the MPEG4 codec, often used for Internet streaming video) so, they mostly do NOT edit well (if at all) in any flavor of Premiere
    To edit a divx file, start at http://www.divx.com/
    To edit an xvid file, start at http://www.xvid.com/

  • I updated to iOS 6 on my iphone 4 and updated my macbook pro with and now my mail is not working at all on my iPhone.  I can receive/send on my laptop, but not my iPhone!! Can someone help?

    i updated to iOS 6 on my iphone 4 and updated my macbook pro  and now my mail is not working at all on my iPhone, whether on wifi or 3G.  I can receive/send on my laptop, but not my iPhone!! Can someone help?

    Which email provider are you using?  If it's Gmail, try unlocking your account here: https://accounts.google.com/DisplayUnlockCaptcha.

  • Why can I receive text messages but not send?

    Why can I receive text messages but not send. This has been happening for about 10 hours.

    Thanks for the response. Must be smart phones. My daughter has a dumb phone and she can send out. I tried deleting my text messages on the Verizon website, but they won’t delete. It must be on their end. Chat line was busy forever, until they shut it down.
    Jennifer

  • HT200241 Can Apple Configurator deploy and modify Apple TV iOS 6.0 settings? For instance, what if I wanted to submit a 'reset all settings' command, but not a 'factory restore'?

    Can Apple Configurator deploy and modify Apple TV iOS 6.0 settings? For instance, what if I wanted to submit a 'reset all settings' command, but not a 'factory restore'?

    Did you follow the instructions here:
    http://support.apple.com/kb/HT4367
    Pay attention to differences in power connection depending on whether or not you have AppleTV2 or AppleTV 3.
    Also some microUSB leads don't seem to work - try another if you can. Disconnect superfluous USB device/hubs too if possible.
    AC

  • I don't have a phone plan, so I cannot text without wifi. I have been using iMessage to text my friends, until it stopped working. I can text my sisters email, but not my boyfriends iPhone. The send button will not turn blue. Help? Please?

    I don't have a phone plan, so I cannot text without wifi. I have been using iMessage to text my friends, until it stopped working. I can text my sisters email, but not my boyfriends iPhone. The send button will not turn blue. Help? Please?

    There is a problem with iMessage with what Apple says is a small number of iPhones and they are working on a fix. In the meantime try this:
    1. Settings > Messages > iMessage = Off
    2. Settings > FaceTime > FaceTime = Off
    3. Settings > General > Reset > Reset Network Settings
    4. Wait for the iPhone to Reboot
    5. Settings > FaceTime > FaceTime = On
    6. Settings > Messages > iMessage = On
    You may have to repeat the steps a couple of times.
      - with thanks to @deggie

Maybe you are looking for