Communicating between Labview RT code running on windows using Linux C code over network

Hi,
I have been working with Labview FPGA+RT for robotic applications (impedance control, tendon driven robotics etc.) for some time now. I was wondering if anyone has successfully been able to communicate with
shared variables being sent over a network by a labview RT program using C/C++ on a non labview Linux PC. I have been working on this for sometime and have read about CVI and Datasocket protocols. I am in the
process of making a library on my RTAI patched Linux installation to have a high level control loop on the Linux PC communicate with low level motor control and sensor data acquisition codes running on the labview RT
pc. In the worst case scenario I am planning to use basic network port sniffing to atleast acquire data.
Just thought I will ask here before wasting time reinventing the wheel. Any suggestions and ideas would be greatly appreciated as well.
Thank you for your time.
Prashant

Morning Prashant,
You are on the right track. You can use datasockets from any environment to interface with a network shared variable. I've pulled some of the examples from CVI which show how to call network shared variables. These should help. You should search how to call data sockets in C then pass the address to them to read and write from. 
Look into the polling example for the basics.
Kyle Hartley
RIO Product Support Engineer
National Instruments
Attachments:
networkvariable.zip ‏69 KB

Similar Messages

  • Running programs WINDOWS using java

    Hi ,
    I would appreciate if anyone could tell me how to run programs WINDOWS using JAVA language .Thank you.

    I am not quite sure what you mean by that, but if you want to execute a program use:
    Runtime.exec(String)

  • Will Labview 5.1 run on Windows XP or 2000?

    I am currently in process of upgrading my workstation from Windows NT to either Window XP or 2000. I'm currently working in Labview 7 but I have a lot of vi's that were written in Labview 5.1 running under NT that still require some support and I'd like to not have to recompile all of them in Labview 6.1 or 7. Can anyone tell me whether Labview 5.1 will run under Windows XP or 2000 before I just have to try it out and see?

    It's not a problem. You can even run both LV 5.1 and 6 together (I've at least verified this on XP, but 2000 is pretty darn close). Not sure about LV 7 (or runnning all 3). You may have to tweak how Windows decides which version to run when a vi is opened.
    2006 Ultimate LabVIEW G-eek.

  • Problem in viewing the components on running a window using java or javaw

    hi
    whenever i run a windowed application built in swing i have to resize the window in order to view the components i added to the container of the window.
    but this does not happens when i use a JProgressBar
    please help me out with this

    Read the [url http://java.sun.com/docs/books/tutorial/uiswing/TOC.html]Swing tutorial. There are plenty of examples that work correctly.
    If you still have problems then post your [url http://www.physci.org/codes/sscce.jsp]Simple, Executable Demo Program that shows the incorrect behaviour. We are not going to sit here guessing what you may or may not be doing.

  • In LabVIEW OI the Run Selected Step Using Test UUTs does not work

    TestStand LabVIEW Operator Interface (old style) - TestStand Version 2.0.1 & 3.0
    The Interactive option was enabled for the Process Model Entry Point - Test UUTs in the SequentialModel.seq.
    When selective steps were selected to run within the LV OI using the menu item 'Run Selected Step Using - Test UUTs' it was found not to work.
    The reason for it not working was because the main event string was "Run Selected Step 0" but this isn't available in the case statement. Changing the "Run Selected Step 1".."Run Selected Step 9999" to "Run Selected Step 0".. didn't produced the desired result. Instead of the selected steps running using the entry point Test UUTs, the steps ran without the process model.
    The Case Statement string was retored back to "Run Selected Step 1".
    The changes that are required to make the "Run Selected Step 1".."Run Selected Step 9999" work with either of the Entry Points are as follow.
    In the VI TestStand - Create Entry Point Menus for Interactive Exec.vi
    Insert an Increment from the iteration terminal of the FOR loop. This ensures the Message Queue string generated is in the range 1 - 9999 not 0 - 9999.
    In the TestStand - Sequence Display.vi
    For the Main Message Event "Run Selected Steps", "Run Selected Step 1".."Run Selected Step 9999"
    In the case "1, Default", decrement the input 'Entry Point Index' to the VI TestStand - Start Interactive Entry Point Execution.vi. This ensures the Entry Point Index starts from the value 0.
    Now when the selected steps are run using a Pocess Model Entry Point, they run correctly.
    This problem only appears to affect the LabVIEW Operator Interface and only the old style. The new style that comes with TestStand 3.0 runs correctly.
    There is one other problem. When an Operator is logged in to TestStand, the Entry Point - 'Single Pass' is disabled. But this is not reflected to the menu item 'Run Selected Step Using'. Both 'Test UUTs' and 'Single Pass' are available to the operator.
    The reason for this is because in the VI 'TestStand - Create Entry Point Menus for Interactive Exec.vi' the sub menu item is enabled as a result from the property Sequence.AllowInteractiveExecutionOfEntryPoint. This is not enough to disable the 'Single Pass'. The Engine.CurrentUserHasPrivilege needs to be checked as well. Which means modications to the VI 'TestStand - Create Entry Point Menus for Interactive Exec.vi'.
    Hope is maybe of help to anyone that may need to use this option.
    Regards
    Ray Farmer
    Regards
    Ray Farmer
    Attachments:
    In_Labview_OI_-_Run_Selected_Steps_Using_Test_UUTs_doesnt_work.txt ‏3 KB

    Thanks Ray for the "heads-up". )
    I am about to implement a vi which calls TestStand functions. This vi will allow to select tests and permits test re-entry (loops) if the user has supervisor privileges.
    I will consider what you recommend in this string.
    I will also provide feedback on this thread if I discover anything .... let's say "unusual"..
    On another note, I am using TestStand 3.0 I have not observed any problems when running selected steps or run selected steps using single pass. I have also within TestStand set privileges for certain Operators to do the same. They have not reported any problems.
    Thanks,
    JLV

  • Making a java program run in Windows and Linux via web applets

    Hello, this is my first post at java.sun.com
    I made an application in Linux, using Jbuilder Fundation 2005. I used the JDBC MySQL connector for Linux, and I used Mandriva as a distro. What I did is a program that allows me to connect remotely to my server, in order to update the news.
    However I want to create an applet, in which you could click a button, and the main frame of the program will load. I have no idea how to do this, since this program runs great on my linux machine, and from what I know it uses the MySQL JDBC jar that's installed on my machine, and a lot of classes from the Jbuilder program directory.
    How could I upload this program to a webpage (with the applet idea that I mentioned earlier) so that both Linux and (especially) Windows clients could use it?
    It will also be nice to know how to create a .jar file that has all of the required classes in it, I know that Jbuilder enterprise does this, but I don't have that version or plan buying it.
    Thanks in advance

    Put the jre folder from your JDK install in your app folder.ok, but in this way he doesn't have to download jre
    but I have to add it to the app folder so that an
    application large just some kilobytes would become
    some megas bigger... unless I have misunderstood what
    you're suggesting me of course.Yeah, that's the downside. However, 17 MB isn't very large by todays standards.
    jre\javaw -cp <your classpath> <your main class><your classpath> is the class i need to be run's path
    or my classpath?
    jre\javaw has to be written like this or preceeded by
    the path of jre directory?As long as you point 'start in' to the correct directory, I don't believe you have to worry about that. That path you have there isn't quite right (neither was mine) but I think you've got that under control.
    You can give anm explicit path, then you can have different users with different start-in values and store their properties there automatically.

  • TCP/IP communication between labview and microchip board

    Hi
    I have a microchip board which sends out data over the Ethernet. I have to read this data and use for further mathematical computations on it. So I decided to use some available examples on Labview. I find that all examples come as a pair, client-server. But in my case the board will be the server ( providing data continuously) and Computer with Labview will act as a client (Continuous receiving). Is there any readily available example on Labview for this purpose. If not, can you please suggest which example I need to modify for my purpose? Thanks
    Arvind

    arvind3tthiru wrote:
    Hi Greg, thanks for the reply. I am connecting to a PICDEM.NET2 board which is sending data through its ethernet port. I know the port number and the IP address of the board. I want labview to listen to this port and store the incoming packets. I am not sure how LABVIEW disintegrates the TCP packets and takes only the data out. Since I am not seeing anything on the LABVIEW client, so I am starting to think that TCP Client on LABVIEW may have some prescribed packet format which is not the format in which I am sending my data in. Please enlighten me if I am wrong. If you need more information, please tell me what you will need, I will provide you immediately.
    Thanks
    Arvind
    LabVIEW has no "predesribed" packet format, and it doesn't take packets apart. LabVIEW operates at the application level, so the OS is responsible for providing the data that's contained in the packet to LabVIEW. LabVIEW just sees the data in the packets.
    Have you verified that a connection is actually being made? You said that the LabVIEW should listen to this port. Did you create a listener on the LabVIEW side? Does the microchip code indicate a connection? You may want to use Wireshark to capture the packets to see exactly what is going on.

  • Communications between LabVIEW and spectrum analyzer

    hi, im a beginner in LabVIEW and spectrum analyzer, and im now trying to let LabVIEW captures signal coming from spectrum analyzer. i have all the required components needed but i have totally no idea how to get started, is there any exercises or labs available here?

    It will depend on your method of communication with the device.  If it is RS232 you can go to the example finder (Help > Find Examples) and search for RS232 or however you plan on communicating with the device.  Or you can browse the catagories for examples on various topics. 
    Depending on the device the manufacturer may have LabVIEW drivers on their web site.  But anybody will need more information on the analyzer and the signals before you can be helped. 

  • How to establish communication between dynpro and Applet running in Portal

    Hello SDN,
    I have a problem with concept of my app and would be glad if You can help me. 
    -  I needed a graphics engine to draw a map during a dynpro runtime, and i made applet for it because dynpro don't offer suitable api.
    Map have to show some data from Bussines Warehouse and R/3 and also have to return coordinates onMouse click to dynpro app.
    My question is how to pass params from web dynpro app to applet and receive coordinates after mouse click on map.
    I made dynpage and placed my applet inside for EPCF but don't know how to use it in applet?

    1. First of all set up the Rfc connection between System A and System B.
       If you are calling the function module which is avlaible on Syetem A  and calling in system B. In system A, go to SM59 opt for R\3 connection and give all the details in "Technical settings" and "logon & Security" tabs and test your connection. If you are returning any value Back to system A , make the same settings in system B.
    2. While creating the Function module check the Radio-button "Remote-Enabled Module" in the attributes tab.
    3. Call function <function-name> Destination <Destination-name>.

  • LabView equivalent to running batch files using the "shell" command (VisualBasic)

    I'm converting a VisualBasic app to LabView and am having trouble figuring out how to run a batch file with LabView.
    The VB code that I'm trying to replicate is:
    'UNLOAD RTX DRIVERS
    Dim ProcessId As Long
    ProcessId = Shell(App.Path + "\UnloadReloadRTX.bat", vbNormalFocus)
    Wait 400
    I haven't found a LabView equivalent to the Shell command. Any suggestions will be appreciated.
    thanks,
    Todd

    It seems as if this question pops up every week. Use the System Exec.vi found under Funtions - Communications palette. It is the equivalent of Shell.
    - tbob
    Inventor of the WORM Global

  • Can't copy some files from Windows 7 to Mac OSX over network

    Hi,
    I'm running the latest version of Max OSX v10.8.4 on a brand new Macbook Pro.
    I have followed the setup instructions at http://www.7tutorials.com/how-change-workgroup-mac-os-x-easy-networking to access my Macbook from Windows, and http://www.howtogeek.com/howto/24950/how-to-share-a-folder-in-os-x-with-windows/ to share some folders from my Macbook to Windows.
    I am now trying to copy some files from my Windows 7 Pro (SP1) computer to my Mac, and have hit the following problems:
    I can view my Macbook in my list of local networked computers on WIndows, but I cannot access it. Clicking on it causes Windows 7 to try and access it, but then I get a message after a minute saying the network path could not be found. However, if I manually enter the IP address of my Macbook in the Windows address bar (\\192.168.0.191), I can view and access all the shared folders. I can never access the Macbook via it's computer name (\\MACBOOK-ROB).
    I cannot copy some files from Windows to my Macbook shared folders via Windows. There is nothing to distinguish these files from the hundereds of other files that I have successfully copied to my Macbook. They are pictures and music with no special characters in the filenames, not overly long filenames or folder paths, no access restrictions, or any other security restriction that I can see. However, every single attempt to copy these files to my Macbook results in WIndows reporting that access to the destination was denied.
    I have tried both these above scenarios on WiFi and Ethernet, and the results are the same.
    So:
    Why am I unable to access my Macbook by it's computer name on the network? How can Windows see it, but not access it?
    What are the limitations on transferring files over SMB that is (presumably) causing these specific files to fail?
    Thanks for any help you can offer.

    I have a fix for inability to copy files. I had the same problem moving a lot of old files across my LAN from a Windows XP machine to a Mac Mini running Mountain Lion. After confirming copy of some special file, I would get an error that terminated the copy operation, and info on the Mac side would show a locked folder.
    I finally decided to eliminate all special files on the Windows side, before copying, by running
         attrib -s -h -r /s /d [drive or folder]\*.*
    in a command window. Running attrib /?  tells what the arguments mean, but it doesn't explain that you need the *.* to make the command go through the hierarchy clearing the special attributes on all the files.
    After I did that, and then used drag and drop between two Windows Explorer windows (one on the Windows drive, on on the target drive on the Mac), the whole move operation ran to completion without stopping either for error or to ask for confirmation.
    I do not have a fix for the inability to access some computers by name rather than by IP address. I'm looking into the possibility of activating bind on the Mac but I haven't done anything yet.

  • Using jdk1.3 compiler over network on NT SP6 and Windows 2000 is very slow.

    We recenlty shifted to jdk1.3 from jdk1.2.2. We compile java files that
    are on a mapped network drive. The compiler,source files and the class
    files are read from and written to a mapped network drive.
    We have noticed that our compilation times have increased 3 times since
    we started using jdk1.3. We compile around 4000 files which use to take
    4 hours when jdk1.2.2 was used and with jdk1.3 it is taking around 14
    hours. This is the case when we compile on Windows 2000 and Windows NT
    Service Pack 6 machines. But compiling on Windows NT ServicePack5 it
    would get compiled in 5 hours. This is really weird but that is the
    workaround we have now that is using a NT Sp5 machine for compilation.
    Wondering if anyone else has seen this problem. Please let me know.
    Thanks,
    VJA.

    Well the bottleneck in your build process is always going to be the network regardless of the compiler you use.
    Ok, the compiler may be slower but the I/O issues far outweigh the compiler performance.
    What affects the build process you have that you can compile on a particular machine but the files must remain on a central server?
    There is little difference in copying all the files to a local machine, compiling locally and copying the class files back to the server, and having the compiler read from and write back to a network driver apart from performance. Obviously there may be some issues however very few that cannot be resolved.

  • Cisco Security Manager Client running on Windows Server 2008 R2 (64 bit) in Terminal Service

    Hello CSM Gurus,
    Would there be any performance issues in CSM client software design if multiple instances of CSM client by multiple users ran concurrently on a Windows Server 2008 R2(64 bits) while CSM users accessing the server via Remote Desktop Services ?
    In my environment, we have a CSM server at our major data center while security administrators from all over the world need to use this CSM server. 
    In order to overcome the latency of the CSM client due to the WAN network, the plan is to use a Windows Server 2008 R2(64bits) as a terminal server and all security administrators would need to access this terminal server via RDP and would launch CSM client on their desktop.  The terminal server locates on the same LAN as the CSM server itself in order to minimize network latency in communications between the CSM clients running on the terminal server and the CSM server.  there would be multiple instances of CSM clients running concurrently on the Windows Server 2008 R2, the terminal server. 

    Hi;
    please check
    Oracle Database 11g Release 1 (11.1.0.7.0) <<Oracle Database 11g Release 1 (11.1.0.7.0) for Microsoft Windows Server 2008 x64
    http://www.oracle.com/technology/software/products/database/oracle11g/111070_win64_2008soft.html
    Check Database 11g Release 2 Certification Highlights [ID 1065024.1]
    But please check this thread
    client 11gR2 install on Win 7 Pro fails java.lang.NullPointerException
    Regard
    Helios
    Edited by: Helios- Gunes EROL on May 14, 2010 4:49 PM

  • Communicat​ing between LabVIEW and Basic Stamp 2.0

    Hello,
    We are trying to control the movement of a Parallax Boe-Bot (robot with
    Board of Education) via LabView programming.  The BOE operates on
    Basic Stamp programming to control the pulse width sent to two servo
    motors.
    Is there a way to establish communication between LabVIEW and Basic
    Stamp 2.0?   We need to send commands from LabVIEW to the
    Basic Stamp to control the pulse width and therefore the rotation of
    the two servo motors.  We also need to send a signal from an
    accelerometer based on the robot to the LabVIEW ADC. 
    The ultimate goal is to do this with wireless communication, but for
    right now we are simply trying to figure out any way to send the data
    between LabVIEW and the Basic Stamp.
    Any ideas?
    Thank you,
    Adam

    Hi Adam,
    You can communicate with a BASIC Stamp microcontroller over GPIB using VISA.  To see some LabVIEW example code, just search for GPIB in the NI Example Finder (Help>>Find Examples). This will show you the basics of GPIB communication in LabVIEW.  I also found this link by searching the NI discussion forums for "basic stamp"
    http://www.parallax.com/html_pages/downloads/softw​are/software_basic_stamp.asp
    Here you can download an example using LabVIEW 7.0 or higher to communicate with a BASIC Stamp 2.
    I hope this is helpful!  Let us know if you have further questions.
    Megan B.
    National Instruments

  • How to upgrade 5.0.1 executable to run on Windows XP?

    I need to upgrade the OS on a standalone DAQ system to Windows XP.
    This system is controlled by an executable created by LabVIEW 5.01 running on Windows 98.
    I am not sure if we have the source code (i.e. LV vi's).
    Can any one please tell me how to upgrade the system so that the LabVIEW 5.01 executable can run on Windows XP?
    Thank you very much for your help.

    I will try after backing up the entire system before trying it.
    Another related question, if I can find the source code in LV 5.0.1, will I be able to upgrade it to the latest LV version if I buy the LV package, or do I expect problems?
    I guess if it were me I'd just get a new compatible hard drive for the system (since they are so inexpensive these days) and swap it for the one with Win98. Install WinXP to the new drive and be sure that you are happy with the performance of the old machine under WinXP before proceeding. Then you can temporarily add the Win98 drive as an additional disk to the WinXP system and copy the files you need off of it and then set it aside again just in case you are not able to get the LabVIEW working. Swapping disk drives is MUCH faster and usually safer then creating and restoring backups. An alternate similar path is to add the new drive to the Win98 system and, using software like Norton Ghost, clone the Win98 system/disk to the new disk then pull out the old Win98 disk, boot off the cloned Win98 disk and upgrade that disk to WinXP. That way the old applications would exist under the new system and you may be able to run them without any further fuss.
    The current version of LabVIEW should be able to read the old VI files. You could always download the demo and try it. As far as having problems, many people in general are not happy with one aspect or another of LabVIEW v8.0 and the patch to 8.0.1 certainly does not fix all the problems but if all you are doing is upgrading old code to run again under 8 then you'll probably be OK.

Maybe you are looking for

  • Can anyone explain how we create Choose from list for profit center in sap b1

    Hello ALL , Can any body suggest me how we create the CFL for profit Center . I am creating add -on using sdk and create a screen form using screen Painter . In my form there is matrix that contain the profit center column just like in sale order scr

  • Ipod service

    i am in the process of sending in my ipod for repair. on the apple site when i put in my serial number, it says it is not recognized. any suggestions?

  • CD stuck in my CD drive

    I inserted a smaller than a regular sized disk into my macbook pro's CD drive and now I can't get it out. What should I do?

  • Can't install Mavericks...

    OK, here's a weird one... I can't install Mavericks on my 2012 MacBook Air (29GB free) - "Macintosh HD" is being used for Time Machine backups. Huh? Any clues/fixes gratefully received!

  • Number range overlap

    Dear all, when i am maintaining the number range for remittance challan getting error "enter number range with out overlap". even i have not maintained any number range related to TDS Please suggest Regards,