Jump to content

Francois Normandin

Members
  • Posts

    1,209
  • Joined

  • Last visited

  • Days Won

    47

Posts posted by Francois Normandin

  1. I'm not getting information of devices on my system. Can some take a look and see what i'm doing wrong.

     

    I'm not either. I've not succeeded in retrieving a handle the the proper DeviceInfo (and I won't have time to play with it since it's back to work tomorrow...) but here is a little tip: Use the GetLastError and FormatMessage functions from kernel32.dll. This way, you'll know what sort of problem you have.

    It seems I've misled you with the datatypes I showed on my screenshot but I thought it was not important since those parameters are optional. The LPGUID typedef is a pointer to a GUID structure. Think of "struct" as a cluster in LabVIEW terminology. Hence, the datatype for GUID is something like this:

     

    typedef struct _GUID {DWORD Data1; WORD Data2; WORD Data3; BYTE Data4[8]; } GUID;where for example this GUID: eeaf37d0-1963-47c4-aa48-72476db7cf49 would be represented by:DATA1 = EEAF37D0DATA2 = 1963DATA3 = 47C4DATA4 = {AA, 48, 72, 47, 6D, B7, CF, 49}

    It is not trivial to get these to work in LabVIEW... The trick is to match the types and I personally find that frustrating sometimes!

    In this case, I'm returned ERROR_INVALID_DATA. I'll leave it up to you to find a solution... But here's my Windows Error Extraction class if that can be of help. (Just input the error code from GetLastError() and Merge it to LV error cluster.

    post-10515-1231128228.png?width=400

    Download File:post-10515-1231128408.zip (LV 8.6)

  2. QUOTE (Kumaresh @ Dec 31 2008, 08:14 AM)

    how to measure a 4 wire resistence by using PXI-4060 DMM card?....what is the max resitence can measure?....

    To perform a 4-wire resistance measurement, you'll need more than a DMM: a current source and a DMM.

    DMM's have typically a 6Mohm impedance. Some perform much better, but that comes at a high cost generally. I haven't looked at the PXI-4060's characteristics but the datasheet says 200Mohms, which is quite good compared to Agilent 34401A or Fluke.

  3. QUOTE (Irene_he @ Dec 23 2008, 01:52 AM)

    Dear LAVA Members,

    Holiday is approaching. I wish you all happy holiday and a prosperous brand new 2009!

    (9>8, has to be good).

    Irene

    For all positive values of Planck length... ;)

    Yeap, happy holidays to LAVA's!

  4. There must be two drivers available, one for your software and the generic IEEE1394 driver... As crelf pointed out, check in MAX and change the active driver to the generic one. (From what I can remember, you might have problems with your external software once you've changed it...)

  5. I've got a hard time finding what I'm doing wrong to add my own LabVIEW instruments to MultiSim (10.1) and I'm wondering if there wouldn't be a version compatibility problem. I've opened one of the examples provided with MultiSim and saved it (LV 8.6) and now it doesn't work anymore, no changes to code whatsoever. I found out that MS10.0.1 required the LV instruments to be saved no later than LV8.2, but that doesn't seem to do it with MS10.1 and I can't find any specific notes on that on the dark side.

    Has anyone encountered this problem before I call up NI?

  6. QUOTE (AZoptics @ Dec 22 2008, 12:18 PM)

    Hi,

    I've only ben exposed to LabView for about a year now, and it's still rather new to me. I've been put in charge of re-writing a program in LabView 7.0 and I keep running into some problems with some IMAQ1394 sub vi's. The error always reads out "Invalid Session ID". Also, I traced the error back further and it says that there is an invalid file name for the camera that I'm trying to use. I've tried researching this problem, and haven't come up with many answers. The camera ID is the same in this program as in another working program on the computer. I really could use some help trying to figure out what's going on. Thanks.

    You should post some VIs or screenshots of your work for us to help.

  7. QUOTE (Minh Pham @ Dec 21 2008, 05:39 PM)

    Hi guys,

    I just wondering that is anyone in here success capturing the event (eg. mouse down or double click) from an element within an array. (index returned prefered)

    As LabVIEW doesnt have this option, it does have the Mouse Co-ordinate values returned which can be used but it is not the optimal way of

    doing this i guess, you still have to figure out which item within the array is clicked/double-clicked and return the index so you can process a certain task

    for that item (eg. change the value, or pop-up msg).

    Any help is appreciated,

    Regards,

    If you don't worry about datatype (i.e if you use strings), you could use a listbox. Listboxes have a method "Point to Row" that inputs the mouse coordinates and outputs index. As far as I know, I don't think Arrays have a method to do that.

    Otherwise, if all your array elements are unique, you could return the array element (variant), convert it and scan the original array to get the index. But as mentioned, it works only if all values of your array are unique.

  8. QUOTE (BobHamburger @ Dec 21 2008, 09:19 AM)

    The reason that all electronic devices work in the first place is that they contain magic smoke. The magic smoke makes everything function. We know that this theory is correct, because when the magic smoke escapes, the device doesn't work any more.

    And because of the second law of thermodynamics, it costs more energy to try to put back the magic smoke inside than to just buy a new one...

  9. QUOTE (GraemeJ @ Dec 16 2008, 06:22 PM)

    Is it possible to have a number of tab pages enabled simultaneouly, and then programmatically bring any one of then to the front?

    Regards,

    GraemeJ

    I'm not sure what you mean by "enabled simultaneously".

    You can select the page to display simply by turning your Tab Icon into an indicator, or setting "Value" property to desired page if it's a control.

  10. Don't you guys think that converting the string to boolean array is the real bottleneck here???

    All implementations of arrays/matrices and case structures will be fast enough, but I would bet that "Convert String to Byte Array" is faster than looping a string with "array subset" to extract the booleans. So if one must stream the instrument status bytes as fast as possible, then it's the string conversion that would concern me. :2cents:

×
×
  • Create New...

Important Information

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