Jump to content

modo

Members
  • Posts

    8
  • Joined

  • Last visited

    Never

Posts posted by modo

  1. Hello

    I've got a little communication problem with the device (HA7Net) that I bought last week. HA7Net is 1-wire <--> Ethernet converter. In my project it acts as a bus master in network which includes temperature sensors. Communication between the converter and PC is through http protocol. In a test stage I used simply web browser (wget)and of course it works. And now there is a time to write some VI. I've got few ideas how to solve this but the simplest is - use the ready functions that are developed. And now there is a problem. These functions are written in Visual Basic and .NET platform. I've never used VB, even haven't got someone to help me to compile this routine into dll.

    Could anybody compile the file into dll which will work in LV? My operating system is Windows XP (SP1) and LabView versions are: 6.1 and 7.1.

    Original link to HA7Net VB functions is : http://docs.talk1wire.com/vb.net/HA7Net.html - Section File: HA7Net.vb

    Also I send VB .Net file with these functions (copied from that web page).

    Thank you very much.

    Peter

    Download File:post-923-1105128055.zip

  2. It sounds like you found a solution. Another way is to create the file in the c program and then have lv check for the presence of the file. When LV toggles the boolean then have lv delete the file. Repeat this process. This way you can have the c program verify that LV saw the file and toggled the boolean. As you say, NOT pretty but works. Why not get LV to do the DAQ card directly?

    2614[/snapback]

    Hello

    I think that the right solution for your problem is DDE (Dynamic Data Exchange). With it you can communicate with multiple applications on the same computer.

    It's quite easy to implement DDE in C and LV.

    You can find DDE libraries in : "c:\....\National Instruments\LabView X.X\vi.ib\platform\dde.llb".

    Please look at http://www.stoff.pl/ . There is satellite tracking system for radio amateur and obsering purposes (Orbitron). In this programme was included DDE Server which allows you receive tracking data in your application. In download section you can find example (in Delphi) "My DDE Client".

    I sent:

    - LV routine (dde_client);

    - pdf (briefly describe the Dynamic Data Exchange in LV).

    If you want to use Orbitron and LV, please remember to do one modification in configuration file "c:\...\Orbitron\Config\Drivers.dat" - just add one line at the end, for example LabView. Now you can enable DDE Server in Orbitron (rotor section).

    Smiles

    Download File:post-923-1100171820.vi

    Download File:post-923-1100172166.pdf

×
×
  • Create New...

Important Information

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