Jump to content

Buglish

Members
  • Posts

    10
  • Joined

  • Last visited

    Never

Posts posted by Buglish

  1. I have started from scratch and now I am using the Fantom SDK. Though compiling the arrays of hex commands is kind of difficult.

    The vi I am including searches for the NXT block then pairs up.

    The problem is starting the application I need.

    I have converted "spike remote" to the hex"5370 696B 6520 5265 6D6F 7465 " to start the application.

    And sending messages to mail box 1 with the data of a number between 1-6 is not working :/

    Please help me create the packets.

    Regards Bug

    Download File:post-5518-1163576324.vi

  2. Just some quick notes:

    1. your program are using I32 constants instead of U8 (doesn't really matter)

    2. you could implement this with an event structure, to get more direct user response

    3. I personally prefer to open/close VISA sessions explicitly

    Do you get any errors? If so what errors do you get?

    /J

    :throwpc:

    The return count of the VISA prints out 8.

    So the connection works since data is sent to the NXT block but the response is a bit off :/

    I am not sure how to control the data bit.

    If you do a format and precision on the number inputs you will see its hex

    -----------------

    Ok I have a response of an error

    Possible reason(s):

    LabVIEW: File permission error.

    ---

    NI-488: DMA hardware error detected.

    Ok whats this?

  3. I don't think you should convert the ASCII values to hex, but rather the values contained in the string.

    Your output "3078 3030 2C30 7830 392C 312C 322C 31" is the hex representation of the ASCII sequence "0x00,0x09,1,2,1".

    If you are going to send this sequence as hex, I would guess that your program expects the following hex representation

    "0009010201".

    So if you have a U8-array with the values [00, 09, 01, 02, 01], feed this array into the "Byte Array To String" function (or a typecast node), and the output will be the string to send. Or enter the values manually in a string control that is set to display strings as hex values, then just send this string.

    /J

    Hi JFM,

    Well all I want to do is send an integer between 0-5 to the NXT block.

    What would the message format be?

  4. Hi,

    I have created a button interface in LabVIEW that when pressed it will write a string into the VISA port directly using a serial connection of my blue tooth connection. This is after the NXT block is paired.

    I am having trouble understanding the packet format that has to be sent in hex.

    Other forums show they created a array then convert it to string again to send using VISA in the Fantom SDK.

    I am bypassing that by creating the connection beforehand.

    From what I understand I can start the program using a array which is converted to hex. But that format I am not sure I am implementing correctly.

    Start of program : (0x00,0x00,Spike Remote 0xA,0x02,0x00,StatusByte)

    Send Integer value of 1 : (0x00,0x09,1,1,2-10)

    When Converted its

    3078 3030 2C30 7830 392C 312C 322C 31

    Perhaps I should remove the commas and send this hex >3078 3030 2030 7830 3920 3120 3120 32

    But the NXT block is not responding...what should the format be?

    Do I have to convert it to hex before sending?

    What format do I have to use since ',' = 392C . Do I have to include the commas?

    Thanks

  5. Hi to all,

    I just spent some time searching the forum, but unfortunately I did not found a satisfying result...

    The communication to set up should be using the RS-232 interface. I am using VISA configure serial port -> write -> read -> close (LW 7.1)

    I got an auto-correlator which returns me 256 equidistant ACF-values as a row of 512 Byte with the following structure:

    1.byte

    00(hex)...FF(hex)

    2. byte

    00(hex)...C0(hex)

    .

    .

    .

    511. byte

    00(hex)...FF(hex)

    512. byte

    00(hex)...C0(hex)

    For that I am using the VISA read, which gives me the correct 512 bytes after sending the "GetACF" command.

    By placing an indicator at the output of the VISA read and changing its properties to "hex" I see the right string.

    For further processing I need to convert it into numbers. Using the "Hexadecimal String to number" does not seem to work.

    For sure, it is my fault, but I already tried different number representations (which is the only thing to modify)

    Here the first 10 bytes of my signal:

    04E3

    04EE

    04FD

    04F4

    04FA

    Using a probe data between the VISA read (read buffer out) and the Hex string to number does not indicate me the hex string, but any symbols.

    Could this be the problem???

    Thank you in advance for any hints.

    Hi,

    How would you create the string that you send using VISA that represents an integer of a number between 1 to 5.

    is this correct before converting to hex?

    I used this string before converting to hex. Is this format correct for sending a message of a integer?

    0x00 0x09 1 1 2

  6. Hi. I am researching and making a plan for a project. The Goal is to Use LabView trough the internet with a java servlet to make circuits and designs in the front panel and back end (block diagrams).

    I have to use Java (Servlet) , PHP, SQL, CGI in a project.

    Is this feasible or am I aiming in the wrong direction.

    If this VNC option is acceptable what whould it look like. Or will this method not be possible?

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.