conversion of 4-byte float

Hi all

I work with microcontrollers PIC (slaves masters + 6) RS485 network. I intend to replace the master with some hardware which would be installed LabVIEW. I already managed to put together test vi on PC with adapter USB-FTDI-RS485 WE, who is able to communicate with a slave. Slave is responsible for the consumption of electricity and water meassuring in my house.

The problem is in the conversion of data from recived tabular byte float form, it is not precise enough. Attached photo shows what aro bytes for each variable and also shows what is correct values for kWh, but also for the m3. Please check also part VI, where conversion takes place. Juice have in mind that Microchip has diferent IEEE754 standard, where the sign bit is shifted with the Exhibitor in one place.

Any suggestions or advice would be very appreciated.

Best regards, Vlado

California_J wrote: instead, it is used Microchip conversion where the side MSB eight bits are used for exponent, then a sign bit and rest of 23 as before same bits for the mantissa.

So this should work for you, once you get the 4 bytes.

Tags: NI Software

Similar Questions

  • How to convert hex 8 bytes floating point double?

    Hello

    I want to know how to convert a string of 8 bytes of data double floating-point.

    data (HEX): 40 02 70 40 00 00 00 4F

    Thank you.

    DP

    This string of 8 bytes of data is actually a string? Are the characters in the string of letters or you have hex values? Ultimately you want to use the Type Cast:

  • Conversion of 3 bytes in an I32

    I have 3 U8 bytes in a table (a byte received 24 bit number). How can I convert them to compliment of 2 number of I32 for general use?

    I wanted to do a .vi I can get value in addition to 2 from content to any position in an array of U8. My problem is that I have a byte stream that feeds coded values that can be 32-bit, 24-bit or 16-bit in size. I wish I could get out somehow the parameter "type" to make it really versatile. Do you know any VI that already do this?

    I may even face values of odd size as 10bits!

    Thank you very much for the solution simplified. I can just go with a code tailored to each type of extraction that I need to do easier.

    I'm starting to see parallels with C. Although I still think that a shift would be useful. As much as the Type cast operator ideally positions the value it reads his entry, at the upper end of the 32-bit value.

    Thanks again.

  • Conversion from data type "float".

    In a wireless data logger I collect analog data with a 8-bit microcontroller and sending it as a UDP datagram. The data received in the LV application looks like this:

    \r\n020.43\s002.14\s000.00\s000.02\s ("------" "" display codes)

    0D0A 3032 302F 3433 2030 3032 2E31 3420 3030 3030 2030 3030 2E30 3220 (display Hex) 302F

    020.43 002.14 000.02 000.00 (normal display)

    I want to undress and show values 20.43, 2.14,0.0 and 0.02 in my application of LV.  Try with "Scan of the String" and "Decimal number to the string" but without much success. Maybe I can 'building' my data of the hexagon?

    Any idea is welcome. Thank you.

    Channel scan works very well for me.

  • The AMF serialization and floats

    I'm values float transfer of Java dto to corresponding to the TITLE of objects using FDS and remote objects. Java float values have an accuracy of 4 decimal places (verified before serialization) even when they are created as they have 16 digits with values spanning all the 16 digits. I guess I can round the values when I received it at the level of the customer, but can someone tell me if there is a better way to ensure that the destination values are the same as the source?

    Thank you
    Mike

    Hi Mike,.

    To serialize/deserialize data between Flash and Java, symmetrical data types are needed. ActionScript and ECMAScript provide a data type of number that is equivalent to a Java double; It is an 8-byte IEEE-754 double-precision point variable value. They do not provide a 4-byte float data type.

    If your Java floats are expanded to issues on the client. I advise to use double values on the server if possible in order to avoid any possible incompatibility.

    Kind regards
    Seth

  • String equal?

    I have an instrument that communicate with the PC via RS232. So I use VISA write, read...

    It works OK, but have the following problem

    I want to compare two strings, one is constant other out by VISA read. If I use the indicator, this is the show "hexagonal"(par exemple 3E04 4B73) the value of VISA, but if I use the same wire to the 'equality?' to compare two strings is strange... return values ".

    We see them all together to see what my problem is:

    A string is an array of bytes interpreted as text characters.

    If the string that appears as '3E04 4B 73' mode normal consists of the characters '3' ASCII '0' ' E' '4' '' '4' 'B' '7' '3 '. The hexadecimal values in the ASCII characters are "3345 3034 2034 4237 33.  ASCII 3 = 33 hex.  ASCII E = 45 hexagonal.

    If you want to type in the hexadecimal values to a control of the chain or the constant, you must assign to the hex display.

    To see what is in a thread of string in a string to the conversion of primitive bytes and the wire table then said to a table indicator output.  This will show the numerical values of each byte of the string.  You can set the digital display to decimal, hexadecimal, octal, or binary.

    Lynn

  • Beginning DAQmx and reference trigger

    Hello

    I'm looking to understand deeper screw DAQmx data acquisition, but even after reading many white books, I have a few questions.

    In my project, I would like to start a CQI data. triggered by a start trigger (connected to the PFI3 connector external trigger source, I have an old PCI MIO16E DAQ card),

    and I need to stop collecting data when a release occurs (reference trigger, same source, PFI3). I found this KB page and an example of VI:

    KB for DAQmx page

    I would like to change this VI to be able to collect all the data for 10 amounting to edge triggering. And I have to stop DAQ when held it the 10th trigger. So, how can I stop the DAQ in the while loop, not the first reference, but after a trigger given trigger reference number?

    Also, could someone explain the idea behind the "pre relaxation" and samples "post-declencheur"? Why do these settings? I just want to collect all of the data in reference N relaxation, and I need to collect them in segments (samples by read in the example VI) since I want to put an effective value of these pieces of data to a chart. So, how should we indicate the settings above, if I only need the data between the outbreak of departure and the specified trigger nth reference?

    Also, what is the best way to back up all the raw data (converted into 4-byte floats) in file binary little endian (for a C post treatment program)?

    Thanks for the help!

    Kind regards

    exactly!  This could be one of those moments that you want to capture and ignore timeout errors

  • Strange signal Modbus TCP/IP

    Hello everyone:

    I am facing a strange problem on the modbus TCP/IP communication, we have built the connection and use the modbus library OR read the analog signals, it works, but the return signals seems odd, for example (A 40-0 for value: 5, 3F80 for value: 4000 to 1 and 2), I went throngh modbus specification documents , but in these values do not respect the rules, is there anyone has idea about this?

    Thanks in advance.

    Best regards

    Are you waiting for floating point values? Modbus transfers bytes. It's the software front end to convert the bytes floating-point or of other signed/no signed integer values, 32-bit integers...

  • NULL padded string

    I need to create a completed chain so by 0x00 if the length is not met.

    sample

    length = 30

    entry = 123456

    should look like this in hexadecimal

    0 x 3132 3334 3536 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000

    display or ' / '.

    123456\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00

    tried to "format string" either won't work for padding with 0x00 or I'm not formatting correctly

    Jeff· Þ· Bohrer says:

    Paul good idea!

    Very good idea.  Except, I just use instread replace substring of the conversion of a byte array and vice versa.

  • 9 e - learning stuck in grey, Captivate loading screen

    I created several e-learning that are run in the LMS Crossknowledge platform. It was everything works fine. Until I made a few small changes simple content (text and images) landslides and the question slides (changed the text). When I try to open e-learning, the loading screen hangs or stops running.

    When I open e-learning SCORM cloud is just works very well. That's how the log file looks like:

    undefined1: my 25 July 2016 15:12:00 GMT + 0200 (CEST).

    2: my 25 July 2016 15:12:00 GMT + 0200 (CEST).

    3: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - in the start - menu Version: 6.0.0 last modified = 25/07/2016 13:11:52

    4: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - browser Info (Netscape 5.0 (Macintosh;) Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Safari/537.36 Chrome/31.0.1650.57)

    5: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - URL: https://cloud.SCORM.com/content/courses/KEI6T96RG1/1022479039a/0/index_scorm.html

    6: my 25 July 2016 15:12:00 GMT + 0200 (CEST).

    7: my 25 July 2016 15:12:00 GMT + 0200 (CEST).

    8: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - in ClearErrorInfo

    9: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - part of GetQueryStringValue 'StandAlone' not found, poll: empty string

    10: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - part of GetQueryStringValue 'ShowDebug' not found, poll: empty string

    11: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - strStandAlone = strShowInteractiveDebug =

    12: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - Standard Configuration file - SCORM

    13: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - standard Configuration file - SCORM

    14: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - in LMSStandardAPI strStandard = SCORM

    15: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - call Initialize Standard

    16: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - in SCORM_Initialize

    17: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - in SCORM_ClearErrorInfo

    18: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - Grabbing API

    19: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - in SCORM_GrabAPI

    20: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - research with algorithm improved ADL

    21: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - in SCORM_GetAPI

    22: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - SCORM_GetAPI, research parent

    23: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - SCORM_ScanParentsForApi, win = https://cloud.SCORM.com/content/courses/KEI6T96RG1/1022479039a/0/lmspreview_scorm.html

    24: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - SCORM_GrabAPI, return

    25: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - call LMSInit

    26: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - in SCORM_CallLMSInitialize

    27: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - in SCORM_GrabAPI

    28: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - SCORM_GrabAPI, return

    29: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - call LMSInitialize

    30: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - strResult = true

    31: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - real return

    32: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - in SCORM_GetLessonMode

    33: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - in SCORM_ClearErrorInfo

    34: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - in SCORM_CallLMSGetValue strElement = cmi.core.lesson_mode

    35: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - in SCORM_GrabAPI

    36: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - SCORM_GrabAPI, return

    37: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - call LMSGetValue

    38: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - strResult = normal

    39: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - intSCORMError = 0

    40: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - normal return

    41: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - strLessonMode = normal

    42: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - normal return

    43: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - in SCORM_IsContentInBrowseMode

    44: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - in SCORM_CallLMSGetValue strElement = cmi.core.lesson_mode

    45: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - in SCORM_GrabAPI

    46: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - SCORM_GrabAPI, return

    47: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - call LMSGetValue

    48: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - strResult = normal

    49: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - intSCORMError = 0

    50: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - normal return

    51: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - SCORM_IsContentInBrowseMode, strLessonMode = normal

    52: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - false return

    53: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - in SCORM_GetStatus

    54: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - in SCORM_ClearErrorInfo

    55: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - in SCORM_CallLMSGetValue strElement = cmi.core.lesson_status

    56: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - in SCORM_GrabAPI

    57: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - SCORM_GrabAPI, return

    58: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - call LMSGetValue

    59: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - strResult do not attempt =

    60: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - intSCORMError = 0

    61: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - returning not attempted

    62: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - strStatus do not attempt =

    63: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - returning not attempted

    64: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - set the State to incomplete

    65: my 25 July 2016 15:12:00 GMT 0200 (CEST) - SCORM_CallLMSSetValue strElement plus cmi.core.lesson_status, strValue = incomplete

    66: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - in SCORM_GrabAPI

    67: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - SCORM_GrabAPI, return

    68: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - call LMSSetValue

    69: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - strResult = true

    70: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - real return

    71: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - in SCORM_TranslatgeExitTypeToSCORM strExitType - SUSPEND

    72: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - return suspend

    73: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - SCORM_CallLMSSetValue strElement = cmi.core.exit, strValue = suspend

    74: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - in SCORM_GrabAPI

    75: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - SCORM_GrabAPI, return

    76: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - call LMSSetValue

    77: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - strResult = true

    78: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - real return

    79: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - InitializeExecuted call with the parameter true

    80: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - in InitializeExecuted, blnSuccess = true, strErrorMessage =

    81: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - in IsLoaded, return - true

    82: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - in GetEntryMode

    83: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - in ClearErrorInfo

    84: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - in IsLoaded, return - true

    85: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - in SCORM_GetEntryMode

    86: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - in SCORM_ClearErrorInfo

    87: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - in SCORM_CallLMSGetValue strElement = cmi.core.entry

    88: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - in SCORM_GrabAPI

    89: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - SCORM_GrabAPI, return

    90: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - call LMSGetValue

    91: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - strResult = ab initio

    92: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - intSCORMError = 0

    93: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - back ab initio

    94: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - strEntry = ab initio

    95: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - first return time

    96: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - in GetDataChunk

    97: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - in ClearErrorInfo

    98: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - in IsLoaded, return - true

    99: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - in SCORM_GetDataChunk

    100: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - in SCORM_ClearErrorInfo

    101: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - in SCORM_CallLMSGetValue strElement = cmi.suspend_data

    102: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - in SCORM_GrabAPI

    103: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - SCORM_GrabAPI, return

    104: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - call LMSGetValue

    105: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - strResult =

    106: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - intSCORMError = 0

    107: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - back

    108: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - at SetBookmark - strBookmark = 0, strDesc = undefined

    109: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - in ClearErrorInfo

    110: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - in IsLoaded, return - true

    111: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - SCORM_SetBookmark strBookmark = 0

    112: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - in SCORM_ClearErrorInfo

    113: my 25 July 2016 15:12:00 GMT 0200 (CEST) - SCORM_CallLMSSetValue strElement plus cmi.core.lesson_location, strValue = 0

    114: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - in SCORM_GrabAPI

    115: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - SCORM_GrabAPI, return

    116: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - call LMSSetValue

    117: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - strResult = true

    118: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - real return

    119: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - SetDataChunk strData = 0

    120: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - in ClearErrorInfo

    121: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - in IsLoaded, return - true

    122: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - in SCORM_SetDataChunk

    123: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - in SCORM_ClearErrorInfo

    124: my 25 July 2016 15:12:00 GMT 0200 (CEST) - SCORM_CallLMSSetValue strElement plus cmi.suspend_data, strValue = 0

    125: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - in SCORM_GrabAPI

    126: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - SCORM_GrabAPI, return

    127: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - call LMSSetValue

    128: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - strResult = true

    129: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - real return

    130: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - in IsLoaded, return - true

    131: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - in GetStudentName

    132: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - in ClearErrorInfo

    133: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - in IsLoaded, return - true

    134: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - in SCORM_GetStudentName

    135: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - in SCORM_ClearErrorInfo

    136: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - in SCORM_CallLMSGetValue strElement = cmi.core.student_name

    137: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - in SCORM_GrabAPI

    138: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - SCORM_GrabAPI, return

    139: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - call LMSGetValue

    140: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - strResult = User, Captivate

    141: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - intSCORMError = 0

    142: my 25 July 2016 15:12:00 GMT + 0200 (CEST) - back user, Captivate

    143: my 25 July 2016 15:12:01 GMT + 0200 (CEST) - in SetPointBasedScore, intScore = 0, intMaxScore = 100, intMinScore = 0

    144: my 25 July 2016 15:12:01 GMT + 0200 (CEST) - in ClearErrorInfo

    145: my 25 July 2016 15:12:01 GMT + 0200 (CEST) - in IsLoaded, return - true

    146: my 25 July 2016 15:12:01 GMT + 0200 (CEST) - in IsValidDecimal, strValue = 0

    147: my 25 July 2016 15:12:01 GMT + 0200 (CEST) - return True

    148: my 25 July 2016 15:12:01 GMT + 0200 (CEST) - in IsValidDecimal, strValue = 100

    149: my 25 July 2016 15:12:01 GMT + 0200 (CEST) - return True

    150: my 25 July 2016 15:12:01 GMT + 0200 (CEST) - in IsValidDecimal, strValue = 0

    151: my 25 July 2016 15:12:01 GMT + 0200 (CEST) - return True

    152: my 25 July 2016 15:12:01 GMT + 0200 (CEST) - conversion of SCORES to floats

    153: my 25 July 2016 15:12:01 GMT + 0200 (CEST) - call of LMS

    154: my 25 July 2016 15:12:01 GMT + 0200 (CEST) - SCORM_SetPointBasedScore - SCORM 1.1 and 1.2 do not support the SetPointBasedScore, falling back to SetScore

    155: my 25 July 2016 15:12:01 GMT + 0200 (CEST) - SCORM_SetScore intScore = 0, intMaxScore = 100, intMinScore = 0

    156: my 25 July 2016 15:12:01 GMT + 0200 (CEST) - in SCORM_ClearErrorInfo

    157: my 25 July 2016 15:12:01 GMT 0200 (CEST) - SCORM_CallLMSSetValue strElement plus cmi.core.score.raw, strValue = 0

    158: my 25 July 2016 15:12:01 GMT + 0200 (CEST) - in SCORM_GrabAPI

    159: my 25 July 2016 15:12:01 GMT + 0200 (CEST) - SCORM_GrabAPI, return

    160: my 25 July 2016 15:12:01 GMT + 0200 (CEST) - call LMSSetValue

    161: my 25 July 2016 15:12:01 GMT + 0200 (CEST) - strResult = true

    162: my 25 July 2016 15:12:01 GMT + 0200 (CEST) - real return

    163: my 25 July 2016 15:12:01 GMT 0200 (CEST) - SCORM_CallLMSSetValue strElement plus cmi.core.score.max, strValue = 100

    164: my 25 July 2016 15:12:01 GMT + 0200 (CEST) - in SCORM_GrabAPI

    165: my 25 July 2016 15:12:01 GMT + 0200 (CEST) - SCORM_GrabAPI, return

    166: my 25 July 2016 15:12:01 GMT + 0200 (CEST) - call LMSSetValue

    167: my 25 July 2016 15:12:01 GMT + 0200 (CEST) - strResult = true

    168: my 25 July 2016 15:12:01 GMT + 0200 (CEST) - real return

    169: my 25 July 2016 15:12:01 GMT 0200 (CEST) - SCORM_CallLMSSetValue strElement plus cmi.core.score.min, strValue = 0

    170: my 25 July 2016 15:12:01 GMT + 0200 (CEST) - in SCORM_GrabAPI

    171: my 25 July 2016 15:12:01 GMT + 0200 (CEST) - SCORM_GrabAPI, return

    172: my 25 July 2016 15:12:01 GMT + 0200 (CEST) - call LMSSetValue

    173: my 25 July 2016 15:12:01 GMT + 0200 (CEST) - strResult = true

    174: my 25 July 2016 15:12:01 GMT + 0200 (CEST) - real return

    175: my 25 July 2016 15:12:01 GMT + 0200 (CEST) - real return

    176: my 25 July 2016 15:12:01 GMT + 0200 (CEST) - at SetBookmark - strBookmark = Slide_1, strDesc = undefined

    177: my 25 July 2016 15:12:01 GMT + 0200 (CEST) - in ClearErrorInfo

    178: my 25 July 2016 15:12:01 GMT + 0200 (CEST) - in IsLoaded, return - true

    179: my 25 July 2016 15:12:01 GMT + 0200 (CEST) - in SCORM_SetBookmark strBookmark = Slide_1

    180: my 25 July 2016 15:12:01 GMT + 0200 (CEST) - in SCORM_ClearErrorInfo

    181: my 25 July 2016 15:12:01 GMT 0200 (CEST) - SCORM_CallLMSSetValue strElement plus cmi.core.lesson_location, strValue = Slide_1

    182: my 25 July 2016 15:12:01 GMT + 0200 (CEST) - in SCORM_GrabAPI

    183: my 25 July 2016 15:12:01 GMT + 0200 (CEST) - SCORM_GrabAPI, return

    184: my 25 July 2016 15:12:01 GMT + 0200 (CEST) - call LMSSetValue

    185: my 25 July 2016 15:12:01 GMT + 0200 (CEST) - strResult = true

    186: my 25 July 2016 15:12:01 GMT + 0200 (CEST) - real return

    187: my 25 July 2016 15:12:01 GMT + 0200 (CEST)-in SetDataChunk strData = - A1A % 24nP0A % 24nP0A % 24nP0A % 24nP0A % 24nP0A % 24nP0A % 24nP0A % 24nP0A % 24nP0A % 24nP0A % 24nP0A % 24nP0A % 24nP0A % 24nP0A % 24nP0A % 24nP0A % 24nP0A % 24nP0A % 24nP0A % 24nP0A % 24nP0A % 24nP0A % 24nP0A % 24nP0A % 24nP0A % 24nP0A % 24nP0A % 24nP0A % 24nP0A % 24nP0A % 24nP0A % 24nP0A % 24nP0A % 24nP0A % 24nP0A % 24nP0A % 24nP0 A % 24nP0A % 24nP0A % 24nP0A % 24nP0A % 24nP0A % 24nP0A % 24nP000AA0000C-1A0DTcpQuizInfoStudentIDBAVcpQu % 20CaptivateQcpQuizHandledAllBA %2C izInfoStudentNameAPUser $ _ # _ # $

    188: my 25 July 2016 15:12:01 GMT + 0200 (CEST) - in ClearErrorInfo

    189: my 25 July 2016 15:12:01 GMT + 0200 (CEST) - in IsLoaded, return - true

    190: my 25 July 2016 15:12:01 GMT + 0200 (CEST) - in SCORM_SetDataChunk

    191: my 25 July 2016 15:12:01 GMT + 0200 (CEST) - in SCORM_ClearErrorInfo

    192: my 25 July 2016 15:12:01 GMT + 0200 (CEST)-SCORM_CallLMSSetValue strElement = cmi.suspend_data, strValue = A1A % 24nP0A % 24nP0A % 24nP0A % 24nP0A % 24nP0A % 24nP0A % 24nP0A % 24nP0A % 24nP0A % 24nP0A % 24nP0A % 24nP0A % 24nP0A % 24nP0A % 24nP0A % 24nP0A % 24nP0A % 24nP0A % 24nP0A % 24nP0A % 24nP0A % 24nP0A % 24nP0A % 24nP0's % 24nP0A % 24nP0A % 24nP0A % 24nP0A % 24nP0A % 24nP0A % 24nP0A % 24nP0A % 24nP0A % 24nP0A % 24nP0A % 24nP0A % 24nP 0a % 24nP0A % 24nP0A % 24nP0A % 24nP0A % 24nP0A % 24nP0A % 24nP000AA0000C-1A0DTcpQuizInfoStudentIDBAVcpQ uizInfoStudentNameAPUser %2C % $20CaptivateQcpQuizHandledAllBA _ #-#_ $

    193: my 25 July 2016 15:12:01 GMT + 0200 (CEST) - in SCORM_GrabAPI

    194: my 25 July 2016 15:12:01 GMT + 0200 (CEST) - SCORM_GrabAPI, return

    195: my 25 July 2016 15:12:01 GMT + 0200 (CEST) - call LMSSetValue

    196: my 25 July 2016 15:12:01 GMT + 0200 (CEST) - strResult = true

    197: my 25 July 2016 15:12:01 GMT + 0200 (CEST) - real return

    Someone who has a solution for this?

    Greetings.

    @Cromm if it works fine on SCORM cloud, the cause of your problems must be linked with the LMS with Captivate. What is the % of the preload value? What happens if you lower this percentage?

  • Invert sign to import with script

    Dear Lion,

    11.1.2.3 FDMEE and the new Jython scripting language are beautiful.

    Now please help me please with the following:

    This script works very well:

    def separation(strfield,strrec):
        if strfield == 0:
            return strrec.split(";")[8]
        else:
            x = strfield
            return x
    

    This script, where I want to reverse x value, does not work very well! Why and how to manage this problem?

    def separation(strfield,strrec):
        if strfield == 0:
            return strrec.split(";")[8]
        else:
            x = strfield * -1
            return x
    

    Thank you very much.

    Hello

    Let me try to show you some examples.

    First of all, think that FDMEE password string for the import script parameters

    In this example, you can see that there basically is convert to float your strfield and 9th field in the record.

    In this way, you would be able to reverse the sign.

    Note that x = x *-1 is also valid but the jythonic also would be x * = - 1

    But what will happen if strfield or field 9 cannot be converted to a float?

    As you can see, it would fail because of the ValueError exception.

    In Jython where the type of conversion is necessary as float() using try / except is recommended.

    In the following example, if one of the two fields is not the record number is ignored during import:

    I hope this helps.

    Concerning

  • Jython script analysis on commas

    I use an import script to import a file with records similar to the one below.

    Entity, CR_Amt, DR_Amt, Custom1, account

    ' 100 ',' 2000 ',' 300 ',' 17,000,000.00 ',.

    '400', '5000', '600', '28,000.00.

    My script is on the DR_Amt and CR_Amt fields is as follows:

    def AMOUNT_CSV (strfield, strrec):

    arrRecords = strrec.split(',')

    strDr = arrRecords [4]

    strCr = arrRecords [5]

    dr_str = strDr.replace('"','')

    Cr_str = strCr.replace('"','')

    If dr_str is None or dr_str == "" or dr_str == 0:

    End_str = floating fenΩtre (Cr_str) *-1

    Another thing:

    End_str = float (dr_str)

    return End_str

    The script seems to work fine except that it scans my fields amount on the comma separator.  For example, the first record will return at 17.00 and the second field will return 28.00.  Is there a way to get around this?

    It seems that regular import module expression or csv import scripts does not work correctly...

    Python/jython is very powerful, you might also have a solution using list function for a list of positions for the character "and then get the amount of CR based on the last two positions.

    def parseDoubleQuotesDRCR (strfield, strrec):

    If strfield is None or strfield.strip () == ' ' or strfield == 0:

    # Sample line-> ""400","5000","600","28,000.00.

    # Get a list of the positions of the characters in double quotation marks

    # Ex: [0, 4, 6, 11, 13, 17, 20, 30]

    listposquotes = [i i, in enumerate (strrec) so ltr ltr == "'"]

    "# Get the position of the first character after the double quotes after the last '.

    # CR is stored between 20 and 30-> strrec [21:30]

    crstart = listposquotes [(len (listposquotes)-2)] # + 1 post 21

    crend = listposquotes [(len (listposquotes)-1)] # 30 Position

    Separator to replace thousands of # to avoid conversion problems

    amount = float (str(strrec[crstart:crend]).replace (',', ")) *-1

    Another thing:

    quantity = float (strfield.replace(',',''))

    return the amount

  • Design for speed: types BINARY_FLOAT vs NUMBER vs VARCHAR

    We have a database which consists almost exclusively of whole numbers. All (except the identity columns) have less than 1,000 values and all are positive.

    Throughout the day, many people bite with queries and never modify the data. The output is often floating point, but we do not need more than 2 or 3 decimal places of precision - a lot of it is average, quartiles, correlation, etc. - basic stats.

    I'm not worried at all about the speed of INSERT/update - data set are changed only once a week on weekends, and could take 48 hours for what is important to us (it takes less than 30 minutes at the moment).

    So, what are the best types of data to use for columns?

    In general:

    (1) for integers, is faster BINARY_FLOAT or NUMBER types (3)? I read that the types BINARY_FLOAT is faster than NUMBER because the CPU can run directly on it. The loss of precision is not important in our case.

    (2) our identity columns (user ID) are 10-digit numbers - the numeric value is used only for the PK/FK relationship. Is faster BINARY_FLOAT, NUMBER types (10) or VARCHAR2 (10)?

    (3) we also have a bunch of lookup columns for descriptions 2-digit numbers, strings, etc. BINARY_FLOAT, NUMBER types (2) or VARCHAR (2)?

    I guess that "smaller storage in the comic book" essentially equals faster, because more of the DB should be stored in the memory cache.

    Thank you, brain trust!

    See the first response to this link so that Tom Kyte says about using vs PLS_INTEGER NUMBER PL_SQL. It the measure as an important place. And it's strictly in the PL/SQL engine and memory storage. So for handling and external storage it will probably not even measurable.

    http://asktom.Oracle.com/pls/asktom/f?p=100:11:0:P11_QUESTION_ID:5340131040835

    Here is what Tom Kyte says about storage
    http://asktom.Oracle.com/pls/asktom/f?p=100:11:0:P11_QUESTION_ID:4246401300346330419

    >
    virtually all of the data is stored in a mode 'string like. '

    A string will be an indicator of null, a length byte or bytes (characters of <=250 characters="" -="" 1="" byte,="">250-2 bytes), followed by the data.

    A number will have a null flag/length byte (numbers are length 0.22 bytes) followed by the variable amount of data.

    A binary_float kinds consumes 5 bytes - a null flag/length byte followed by 4-byte floating point data of the main.

    A binary_double will consume 9 bytes - leading indicator/length zero followed by 8 bytes of floating point data.
    >

    Here is a test code that will show you the requirements of physical storage for several types.

    CREATE TABLE SCOTT.NUMBER_TEST1
    (
      B_FLOAT        BINARY_FLOAT,
      NUM10          NUMBER(10),
      VARCHAR2_10    VARCHAR2(10 BYTE),
      PLAIN_INT      INTEGER,
      SMALL_INT      INTEGER,
      PLAIN_DECIMAL  INTEGER
    )
    
    insert into number_test1 values (1,1,'1', 1,1,1)
    
    insert into number_test1 values (1000,1000,1000,1000,1000,1000)
    
    insert into number_test1 values (999, 999,999,999,999,999)
    
    select 'Float', b_float, dump(b_float) dump_float
    from number_test1
    union
    select 'Num10', num10, dump(num10) dump_num10
    from number_test1
    union
    select 'Varchar2_10', to_number(varchar2_10), dump (varchar2_10) dump_varchar2_10
    from number_test1
    union
    select 'Int', plain_int, dump (plain_int) dump_int
    from number_test1
    union
    select 'SmallInt', small_int, dump (small_int) dump_small_int
    from number_test1
    union
    select 'Decimal', plain_decimal, dump (plain_decimal) dump_decimal
    from number_test1
    
    Decimal     1     Typ=2 Len=2: 193,2
    Decimal     999     Typ=2 Len=3: 194,10,100
    Decimal     1000     Typ=2 Len=2: 194,11
    Float     1     Typ=100 Len=4: 191,128,0,0
    Float     999     Typ=100 Len=4: 196,121,192,0
    Float     1000     Typ=100 Len=4: 196,122,0,0
    Int     1     Typ=2 Len=2: 193,2
    Int     999     Typ=2 Len=3: 194,10,100
    Int     1000     Typ=2 Len=2: 194,11
    Num10     1     Typ=2 Len=2: 193,2
    Num10     999     Typ=2 Len=3: 194,10,100
    Num10     1000     Typ=2 Len=2: 194,11
    SmallInt     1     Typ=2 Len=2: 193,2
    SmallInt     999     Typ=2 Len=3: 194,10,100
    SmallInt     1000     Typ=2 Len=2: 194,11
    Varchar2_10     1     Typ=1 Len=1: 49
    Varchar2_10     999     Typ=1 Len=3: 57,57,57
    Varchar2_10     1000     Typ=1 Len=4: 49,48,48,48
    
  • float to bytes conversion using c code in labview

    Mr President, I made the taste of the float to bytes conversion using type cast in labview. now I want that conversion using the code c. means I want to know that how labview can suport code c. farmula node is not suporting my code which is working wel in labwindows. kindly help me on this subject so that my skil can be improved using labview

    The node of the formula as its name suggests is to facilitate the access of the algebraic formulas in text form and uses a C like syntax, but is in no way a fully featured parser/compiler. It supports only a subset of the syntax of C for obvious reasons. Why would you need to implement entire code C in LabVIEW for LabVIEW program supports the same functions and to do it with LabVIEW nodes, you will always have better performance you can get in the formula node.

    If you have real C code you wish to call in LabVIEW you use the node form but create a DLL from it and call it via the node library call.

  • float to bytes conversion using labview

    in the project of the University to number of float serialy using labview. I don't know how to convert his individual bytes actualy I want to encode float in its float bytes. kindly help me in this regard

    Send "bytes" is usually done in the form of strings. Just use catalogued with the disconnected type entry (or use "flatten chain").

    To get started, simple would be to use the finder example in LabVIEW and search for serial communications.

Maybe you are looking for

  • Updates to driver for HP Pavilion 256na-550 desktop PC

    Please can you provide a link for Driver updater for HP Pavilion 256na-550 desktop PC I can't get the speakers to work, but I would check what else needs update. I thought that HP is a good company I really wish that I had chosen someone else to inve

  • How can you remove a wallpaper (no change).

    I added a wallpaper to a picture I scanned a few months ago. I wanted to get rid of the background as my laptop is rather slow and I don't want anything it slows further. I tried to delete it but when I stopped the laptop it appears again briefly dur

  • Error #2 cannot uninstall and reinstall itunes

    Original Tilte: itunes problems I tried to open my itunes, it says that it was unaple to open and to unintall and reinstall it and errror #2. I tried to uninstall and it said I had to contact the administration. I can't remove all the programs now...

  • How can I download and install the phone dialer for windows vista

    How can I download and dialer phone inatall for windows vista

  • Sony clock

    Why doesn't Sony clock displayed correctly on the lock screen after the last update (ie. hours in minutes "BOLD", in normal conditions)? Also the charge information does not appear on the lock screen while the phone is connected. Really liked these t