Jump to content

ashwin

Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Posts posted by ashwin

  1. Download File:post-10588-1202299207.zipThanks Rolf,For guiding me in the right direction.I have actually accomplished enough except a few things. I am able to acquire signal. I called various DLL functions but I could not get DATA READY status. There is no function in the given DLL for checking if data is ready, so I actually got the Data and then checked for its correctness cuz a GETDATA function in DLL gives me the data and I am checking 10000 Samples. As soon as I get 10,000 Samples, I get out of the WHILE loop, of course after doing some more processing.Also I could not implement the STOPSAMPLING and CLOSEASB functions of the DLL, very well using CALL LIBRARY FUNCTION node so I used a workaround calling them from VB and writing ActiveX DLL. If you try to use the STOPSAMPLING function from DLL in LabVIEW, it always gives an error, depite of giving correct DataTypes in arguments....I just want you to verify my acquisition process and any ideas to find when data is ready in the device.If you got some Idea on improvement of my code please let me know...i am uploading the code.. its one hell of a messed up coding though, cuz I had to finish this before a set timeline......but it works...ThanksAshwinQUOTE(rolfk @ Jan 28 2008, 03:27 PM)
    Forget the queues for a moment. You want to call those DLL functions in a loop or something and test it's return value or it's returned parameter until it gives you the value to tell you it is ready. Then you call the function to retrieve the data or do whatever else you want to do.There is no way to use LabVIEW queues or such directly with the DLL. Once you have the DLL calls working properly you can of course develop a VI library that could give you a queue based interface. But I do not think that would have real advantages over a more direct VI library approach directly.Rolf Kalbermatter
    David,I think the code I uploaded for Rolf to review can solve your problems...Its huge so just find the CALL LIBRARY FUNCTION part....Also I have called the functions from my DLL, so please use API provided by your Device manufacturer for info on your DLL functions, I have used mine...ThanksAshwin
  2. Anybody coming up on this please?

    I think we can use messaging queues for this along with dynamic events? want a more focused example?

    Thanks a ton in advance

    Ashwin

    PTAG (Product Test Automation Group)

    QuEST

    QUOTE(ashwin @ Jan 26 2008, 07:53 PM)

    Hi,

    I am trying to use an ADTEK ASB-3000 Digital Stotage Oscilloscope with LabVIEW. I am trying to use Driver DLL given by vendor. They have given API for DLL exported functions. I have the following functions:

    ASB3000create

    ASB3000setmode

    ASB3000StartSampling

    ASB3000getstatus

    ASB3000getdata

    ASB3000stopesampling

    using LabVIEW, I am able to create connection with device using ASB3000create function with CALL LIBRARY FUNCTION method. I am also able to SET MODE with settings information sent from LabVIEW. I am also able to use AB3000StartSampling.

    The problem is that I want to poll the device for receiving its status and data ( using ASB3000GetData and getstatus functions).

    I tried listening to the device using Queue but its not able to listen to DATAREADY message i.e. 1125 ( Decimal) please convert to equivalent HEX. Until I receive DATAREADY message, I can't start start reading data using ASB3000GetData function. In a VB sample program, they are constantly polling for DATAREADY and then running getstatus and getdata functions, if they have DATAREADY msg received from device.

    Also, I don't want to use NI-VISA RAW method and use vendor driver DLL.

    Any help on polling the device to receive message for DATAREADY? any example VI for similar device will be a great help.

    Thanks

    Ashwin

    Product Test Automation Group(LabVIEW)

    QuEST

  3. Hi Jim,

    I am trying to receive a DATAREADY message from a USB based DSO ASB3000 using its driver DLL.

    Can u tell me how to use ur VIs for receiving a message from a Device?

    Tnx a ton

    Ashwin

    QUOTE(Jim Kring @ Oct 22 2002, 11:20 AM)

    Hello LAVA folks,

    I wanted to invite anyone who is interested, to take a look at a new tool that I created. I call it a "Message Queue". The nice thing about this queue, is that when a message is enqueued a response notifier may be obtained. Then, when the message is dequeued by the message handler, the same notifier is returned. Finally, when the message handler is finished processing the message, notification can then be sent back to the message generator.

    You can download the tool at:

    http://osdn.dl.sourceforge.net/sourceforge...eue-6.0.1.0.zip

    The download includes a simple calculator example and installation instructions. It is packaged so that you can just drop the tool into your user.lib folder and a pretty palette will appear. Let me know what you think. Obviously this doesn't solve all messaging problems, but it does address simple message and response needs. I am interested in your feedback and seeing any interesting examples and use cases that you come up with.

    -Jim Kring

  4. Hi,

    I am trying to use an ADTEK ASB-3000 Digital Stotage Oscilloscope with LabVIEW. I am trying to use Driver DLL given by vendor. They have given API for DLL exported functions. I have the following functions:

    ASB3000create

    ASB3000setmode

    ASB3000StartSampling

    ASB3000getstatus

    ASB3000getdata

    ASB3000stopesampling

    using LabVIEW, I am able to create connection with device using ASB3000create function with CALL LIBRARY FUNCTION method. I am also able to SET MODE with settings information sent from LabVIEW. I am also able to use AB3000StartSampling.

    The problem is that I want to poll the device for receiving its status and data ( using ASB3000GetData and getstatus functions).

    I tried listening to the device using Queue but its not able to listen to DATAREADY message i.e. 1125 ( Decimal) please convert to equivalent HEX. Until I receive DATAREADY message, I can't start start reading data using ASB3000GetData function. In a VB sample program, they are constantly polling for DATAREADY and then running getstatus and getdata functions, if they have DATAREADY msg received from device.

    Also, I don't want to use NI-VISA RAW method and use vendor driver DLL.

    Any help on polling the device to receive message for DATAREADY? any example VI for similar device will be a great help.

    Thanks

    Ashwin

    Product Test Automation Group(LabVIEW)

    QuEST

×
×
  • Create New...

Important Information

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