Jump to content

alemarcondes

Members
  • Posts

    1
  • Joined

  • Last visited

Posts posted by alemarcondes

  1. QUOTE (rolfk @ Apr 7 2008, 08:19 AM)

    Rolf,

    First of all. Thanks so much for all your help. Can I please bug you for a little more help in setting up the call? I've been trying to get it to work with the int32 array, but I'm not having any luck. I got one combination to sort of work (Type -Adapt to Type, Data format - Array Data Pointer), but it crashed after I ask for 127 data points which translates to 254 elements in the array. There's that same upper limit again. I also tried Type = Array, Data type = int32, Dimensions = 1, Array format = Array Data Pointer, Minimum size = <None> with the same results.

    I did just manage to get one thing to work. I used the above settings, but used a int64 element and just asked for the right number of elements (instead of twice the number). Now I can get back all the values in the instruments (12500). Glancing at the received numbers I think they make sense. One of the 32 bit numbers should be constant at 0, which it is. Now maybe I just have to convert the other 32 bit number like you said.

    Just to beat a dead horse a bit more. I wasn't seeing any swapping of the float and enum in my original code. I was easy to tell because the ENUM was 0 (indicating a valid value was sent) and the float value agreed with the value returned by the company's sample code.

    George

    Success! A simple typecast to Single after separating out the upper 32 bits worked.

    It would be nice to know why sending an array of int32 of twice the size didn't work. I'm lucky the data fit in 64 bits. I don't what I'll do if a situation comes up where I need more bits.

    George

     

    Hi George,
     
    I'm having the same problem, but unfortunately I couldn't resolve with these tips. So, could you post your VI that is working?
     
    Thanks,
    Alexandre Marcondes.
×
×
  • Create New...

Important Information

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