Jump to content

bangsang

Members
  • Posts

    2
  • Joined

  • Last visited

LabVIEW Information

  • Version
    LabVIEW 2014
  • Since
    2014

bangsang's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Hello I would like to use the system exec vi to run a file and stop the file depending on conditions. I have an exe file written in C# that makes a force feedback joystick to vibrate. I used the command line in exec vi to run the file and it works. Now I to open/close the file depending on the conditions. In the picture, there is a small square box which is where I want the joystick's cursor to be. Whenever the cursor goes outside the box, I want the labview to run the exe file(vibrates joystick). When the cursor comes back inside the box, I want exe file to close(turn off vibration). Is it possible to do this using the system exec vi? If yes, can you guide me through it? I don't know what to do with the error in/out, etc. If no, do you know another way to do this? I tried making a DLL file and using constructor/invoke nodes but one guy told me that I have rewrite the code becaues the all the code is written under one class and I need to separate it into many classes to call each functions in labview. However, I showed the code to C# guy and he told me that I cannot separate the code because it's written as windows form... Thank you!
  2. I have C# code that initializes force feedback joystick and plays force effect file; vibrates the joystick. I converted console application into a dll file. I want to test this dll file in LabVIEW to check that my dll file works. People told me that I need to use property, constructor, and invoke nodes, so I went to connectivity - .net - used property, constructor, and invoke nodes. With the constructor node I browsed for my dll and it shows my class Form1. I don't know what to do from here. I have attached dll file and what I did so far with the LavVIEW. C# force feedback dll.zip
×
×
  • Create New...

Important Information

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