How do I get labview for linux to send out ascii code to a motion controller?

I have posted part of this problem but I will now try to clearify things. I have an x-y stage that needs motion control. I have to run the motion controller from within a linux system (RedHat 7.1) due to others in the research area. I have found a motion controller card (PCI) that will run under linux. This card is not National Instruments. I understand that they do not have drivers for their controller cards. This other card comes with the companies own software that uses ASCII codes to move the motors on the stage. I was hoping to create a program that could call those ASCII codes to move the stage. An example would be if a user wanted to have the stage move to the right he would press a b
utton on the screen instead of typing in whatever ASCII could that move to the right happens to be. How would I go about programming something like this? I have heard of others doing things like this but I am unsure of how to program labview to send out ASCII codes to a PCI card to move motors.

> would I go about programming something like this? I have heard of
> others doing things like this but I am unsure of how to program
> labview to send out ASCII codes to a PCI card to move motors.
Look in the manual to see get familiar with the sequences of codes you
need to write, and more importantly, where you write them to. I suspect
a memory location, but it could be a socket or port.
Each of these locations will have a slightly different way of accessing
it. Once you know, search devzone for how to do it on linux, or post
back here.
After you can send the codes to the right location, you probably want to
build a state machine that simplifies the interface and prevents certain
actions from taking place. Now determine which buttons or
keys perform
which actions and use either the event structure or the older polling
for control changes to affect state changes in the state machine.
I'm summarizing here assuming that you know what a state machine is and
why you'd want to use it. If I'm assuming too much, do some research
and post again with more specific questions. Also be sure to look at
example VIs as they show how to respond to UI actions.
Greg McKaskle

Similar Messages

  • How do I get labview to send out ascii code to a device?

    I am trying to use a device that does not have labview drivers. However, the company has sent out their own program but it is two letter ascii code. I want to make the interface easier than having to learn all the ascii codes when one wants to do something. How would I go about programming labview to send out ascii code to move my device?

    Are you asking how to communicate with the device or how to allow user to select from easily understood commands?
    If you need help communicating, look at the communication examples that ship with LabView. I'm guessing that your device is serial. To find the examples, from any LabView window, goto Help >> Find Examples >> Search, then enter Serial in the box labeled Type a keyword to find:
    If you want to help the user pick a command, there are a bunch of ways to do this. Most typical are using a ring or enum on your front panel and doing the translations from user commands to machine commands on your diagram. Look at the attached LabView 6.1 example which shows a ring and an enum. To initialize the enum or ring, select the text tool and left-click on the
    control, then enter your text. To add more items, right-click on the control and select Add Item After (or Before) and type the text for the new command. The diagram will see the output as a number. Use that number to select an index from a multi-line string or to select a case in a case structure. One nice thing about the enum is that the cases are automatically named with the enum string. An easy way to get cases for all items is to put a string constant in the first case, wire it out of the case, then right-click on the case boarder and select Duplicate Case. You'll get a new case named for the next item with a string already wired out. Then you can just edit the string text in each new case for the desired output.
    Attachments:
    PickCommand.vi ‏33 KB

  • I bought a mac book pro and apple promised upgradation to lion aosx but yet nothing rcvd , want to ask how much time it takes for them to send me the code to download it (now its more than a week i purchased this mac)

    i bought a mac book pro and apple promised upgradation to lion aosx but yet nothing rcvd , want to ask how much time it takes for them to send me the code to download it (now its more than a week i purchased this mac)

    http://www.apple.com/macosx/uptodate/

  • How long does it take for Apple to send the content code for a free upgrade to Mountain Lion?

    Has anyone managed to successfully receive the content code in their email for a free ugprade to Mountain Lion?
    I bought my MBP on 14 July so I qualified for the free upgrade. Went to the website and filled in the form along with my serial number about 2 nights ago. Still haven't received my content code yet. How long does it take? Should I be speaking to someone already? Who?
    Thanks.

    We are being advised it can take up to 72 hours !

  • Is there a way to use Labview for Linux for IBM AIX 5.1.

    I think any application built for linux can run on the AIX 5.1 if the application is recompiled on the AIX 5.1. So theoretically NI can just recompile there Linux version of Labview on the AIX 5.1 and it will work. Is there a possibility that NI will port Labview for AIX 5.1.

    I think that the use of LabVIEW for linux is platform independent as far as hardware. I believe that as long as you are running a compatible GUI (I believe XWindows and KPT??? are two that are recommended - check ni.com/linux for more information. So, for your purposes, as long as you can install the proper GUI, and then LabVIEW for Linux, you can then run, code, compile, and deploy applications on the AIX 5.1.
    I am personally VERY interested in knowing about your success (or failure, should that unlikelyhood occur) on Linux. If you browse the topics, there is actually one on non-windows useage of LabVIEW. I am currently setting up my first Linux machine at my home office, and am very curious to know how other people do with this 'adventure into unc
    harted territory'. The only documented useage I have seen is in Gary Johnson's newest edition of Power Programming.
    Good luck, and please keep us posted. I sense that I am the only LabVIEW for Linux fan besides yourself. But please feel free to post to this thread, and to the topic.

  • Font Smoothing in LabView for Linux

    Hello,
    I was wondering if anyone has been able to get their fonts in LabView for Linux to be either smoothed using Gnomes subpixel smoother for LCDs, or any other type of anti-aliasing. I currently can use truetype fonts in LabView, and for the most part they do look pretty decent.. btu they are not smoothed at all. Every single application I have loaded has smooth fonts other than LabView. Please let me know if anyone has managed to get this working... and if so, how.
    I am currently using Gentoo with all of my packages updated less than a month ago, with LabView 8.2
    Thanks for any info!

    Unfortunately, we do not support fonts on your operating system. Hopefully another customer is more familiar with this.
    Message Edited by Support on 10-04-2007 01:33 PM
    Charlie M. CLD

  • Arial font substitution for (LabVIEW for) Linux

    Hello,
    as LabVIEW was not capable of keeping the font size and spacing constant when running a VI under different Windows versions, screen resolutions etc, I have never used the "application", "system" and "dialog" font options in LabVIEW but have fixed all fonts to Arial 14 pt. This worked wonderful on all Windows systems - without that unnerving problem that control lables overwrite each other and things like that (what always happened when using LabVIEWs "application" font option).
    Now, when running the same VIs under LabVIEW for Linux, the font looks terrible, as there is no Arial font in Linux. Does somebody know an easy way to solve this problem without setting all fonts to "application font" in LabVIEW? For instance, any "ini file type" setting in Linux telling the operating system which font to use when Arial is not present, or any free font substitution that we could add to our installer routine that the operating system would use automatically instead of Arial?
    Best regards,
    Gabs

    Unfortunately, your problem is a version of a generic problem faced by GUI programmers of all types - how do you handle varying system fonts?  There are various solutions, based on who your customers are.  You are using one of the easy ones that works well until you start doing cross-platform development.  The main options are, in order or increasing complexity:
    Lock the font to a specific font and size.  This works well if your customers are limited to a single platform and are not visually impaired (do not want to use large fonts).
    Use system fonts and allow extra space.  This is a compromise that only works in most cases.  Use about 50% extra for small strings and 10% - 20% for larger strings.  This also gives you extra space for localization, should you need it.  Visually impaired customers will run into space issues, because large fonts can be 2X or more larger than the default, system fonts.  Note that the different Windows variants have different font sizes as well.  Windows Vista increased default font sizes, especially for some Asian languages, such as Japanese.
    Query the font size on entry into a GUI VI and rescale everything appropriately.  This is hard, since it must be done for every VI with a GUI.  Some system dialogs do not handle large fonts well, so you will probably end up replacing them with your own versions to get good appearance.  You could probably write a system to handle this sort of scaling, but to my knowledge, no one has (please prove me wrong ).  I have always used custom code when needed.
    No one really does this well.  Change your system font on a Windows OS to large fonts and note all the problems you run into.  I would recommend option 2, unless you have a lot of extra time.  Your customers will love you if you pull off option 3.
    More tips to help.
    Do your development on the platform with the largest system fonts.  If this is not possible, change the LabVIEW system fonts of your development system to match the largest size you support.  I usually develop using 13pt Verdana, since it is one of the largest of the variable spaced fonts.
    Check your work by using large fonts in Windows.  If it looks good there, it will probably be OK for most uses.
    Good luck!
    This account is no longer active. Contact ShadesOfGray for current posts and information.

  • What LabVIEW for Linux based on ?

    Whar is the way LabVIEW 7 for Linux communicate with
    DAQ boards ?
    Is it the same as on Windows ?
    Can I write application on 'C/C++', that use only low level library that LabVIEW based on ?
    It this possible on Windows with Visual C?
    With LabWindows it is possible.
    More precisely, I may use only NI-DAQ library and do
    nothing with IDE of LabWindows.
    But if I right, neither LabWindows nor NI-DAQ/NI-DAQmx is't for Linux.
    I have some experience with LabWindows/CVI, but nothing
    with LabVIEW.
    What is principal difference between them in low level communication with DAQ boards ?
    Thanks.
    Andrey

    AndreyCherepenko wrote:
    > Whar is the way LabVIEW 7 for Linux communicate with
    > DAQ boards ?
    > Is it the same as on Windows ?
    No! LabVIEW for Linux does not come with any DAQ libraries. There are
    basically two options at this time:
    You can download the NI Measurement Hardware DDK from NI and the
    according LabVIEW VI libraries or you can use Comedi.
    > Can I write application on 'C/C++', that use only low level library
    > that LabVIEW based on ?
    The NI Measurement Hardware DDK (and Comedi) is a C based interface with
    precompiled binary libraries which you can use from your C/C++
    application. The NI provided VI libraries allow access of that API from
    within LabVIEW.
    > It this possible on Windows with Visual C?
    The NI Measurement Hardware DDK is also available for Windows in which
    case it consists of a number of DLLs, header files and examples. They
    are callable from any C application. But this DDK is in principle a low
    level API which often requires you to go down to register level directly.
    You can also call NI-DAQ (the API LabVIEW uses on the Windows platform)
    from your C compiler, Visual C or whatever, but that API is not
    available on non Windows platforms (oh well there was an old version for
    MacOS and Sun Solaris but that is I don't know how many years old).
    > With LabWindows it is possible.
    > More precisely, I may use only NI-DAQ library and do
    > nothing with IDE of LabWindows.
    LabWindows just provides FrontPanels to the NI-DAQ libraries. It is not
    a LabWindows implementation of NI-DAQ but instead it accesses exactly
    the same libraries LabVIEW does or your own C application would.
    > But if I right, neither LabWindows nor NI-DAQ/NI-DAQmx is't for Linux.
    No! They aren't and except hopefully for a limited DAQmx library
    probably never will be.
    > I have some experience with LabWindows/CVI, but nothing
    > with LabVIEW.
    > What is principal difference between them in low level communication
    > with DAQ boards ?
    LabVIEW is a graphical programming environment whereas LabWindows CVI
    uses C programming. The difference between LabWindows and a standard C
    compiler is the standard built in support for many libraries used in
    Test & Measurement, Data Acquisition etc, the extensive library of
    graphical user interface components and the FrontPanels provided for all
    the library functions. Nothing you couldn't do with a normal C compiler
    nowadays, but they are very tightly integrated in CVI and generally
    working together well.
    As an experienced LabWindows CVI user it may be better to stay in that
    environment than starting to use LabVIEW. LabVIEW is similar in what you
    can do, a lot more comfortable for the casual programmer, but on the
    other hand also a little patronizing in more advanced features. As much
    as it is comfortable to generally not have to worry about memory
    allocation and code frameworks before you even can start to implement
    your first algorithme, it can get in the way when you try to do high
    performance operations as you not only don't have to worry about memory
    allocation but you have in fact limited and only indirect influence in
    how memory is allocated.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • HT2434 How do I get my custom linux software to display at 1280x1024 on my iMac under Parallels? and stay that way when I reboot?

    How do I get my custom linux software to display at 1280x1024 on my iMac under Parallels? and stay that way when I reboot?

    Interesting. Comes with? you didn't have either before? Paragon is commercial and is now v. 10.0, they were the only one keeping updated and was supporting 10.7.4. I would not enable more than one.
    For writing to HFS Paragon has theirs but probably give the nod to MacDrive there.
    I never do an upgrade to a new OS over the old system, I backup (clone) and format the drive with the new OS and do the install so whatever is there I know is clean and also to keep from carrying around leftovers from years and systems past.
    I would assme Paragon is limited. Try their site and knowledge base?
    MacDrive
    http://www.mediafour.com/updates/macdrive
    Paragon HFS
    http://www.paragon-software.com/home/hfs-windows/
    Paragon NTFS
    http://www.macupdate.com/app/mac/26288/ntfs-for-mac-os-x
    http://www.paragon-software.com/home/ntfs-mac/

  • Is there a Labview for Linux

    Dear friends,
    I just know that there is a Labview for Linux. I have a Labview for
    Window. I dont the Labview for Linux is free. Can anyone tell me how
    much it should be? Does it have an educational discount?
    Thanks
    Tony Cheng (EE Dept. of City University of Hong Kong)
    email :[email protected]

    There is a LabVIEW of Linux. The NI online catalogue has the pricing info
    etc and you can find it at: www.ni.com/catalog, for LabVIEW for Linux I was
    taken to this page:: http://sine.ni.com/apps/we/nioc.vp?pc=bymn〈=US&cid=1382&p_0=Linux&x=26&y=10
    Cheers,
    Kamran
    Cheng Lee Lung wrote:
    >Dear friends,>>I just know that there is a Labview for Linux. I have a Labview
    for>Window. I dont the Labview for Linux is free. Can anyone tell me how>much
    it should be? Does it have an educational discount?>Thanks>>Tony Cheng (EE
    Dept. of City University of Hong Kong)>email :[email protected]>>

  • How can i get xcode for osx snow leopard?

    how can i get xcode for osx snow leopard?

    I'm an experienced software developer (C, C++, Lisp, Linux, Unix, etc) but have never done any Mac development, and wanted to try some stuff on my iMac at home, but I have Snow Leopard and most of the turtorials I looked at said the first thing I had to do was download XCode and the first thing that happened when I tried to do that was it said I had to upgrade to Lion.
    My iMac is running SnowLeopard.   I don't have any big reason to stay at SnowLeopard, but from stuff I've seen in the forums I can't see any big reason to upgrade to Lion.   I might eventually want to do development for IOS on an iphone or iPad, but for now I just want to do a simple tutorial app for my iMac.
    I found the downloads search page, and it looks like there's two versions of Xcode  3.2.7 which has a release date of Sep 2011, and 3.2 with a release date of Jan 2012.
    Which one should I download?   And if I download one of these will it be a problem if I do upgrade to Lion in a few months?

  • Calling DLL on LabVIEW for Linux

    I have a vi that calls a dll made with Visual C++ on windows enviroment. What are the steps for calling this same dll on Linux ? Do we need to generate another dll?

    In article <[email protected]>, Labviewguru wrote:
    > First, I don't know if LabVIEW for Linux can even call a DLL. I
    > suspect that since this technology (as obsolete as it is, at least for
    > an operating system - thank you Windows) has been adopted by Linux,
    > that you can. I don't have my linux workstation on at the moment, but
    > if you need to know, I can check.
    >
    > As for the DLL itself, I suspect you will have MAJOR problems getting
    > it to work right in Linux, and that you will almost definitely have to
    > rebuild it with a Linux native compiler. It sounds like you have the
    > source code, so it should be a matter of just porting it over, and
    > stripping out all of the platform dependent calls a
    nd substituting all
    > of the necessary function calls.
    >
    > Good luck, and please keep us up to date on your progress. Not many
    > of us use Linux, and any and all information on the matter is gold.
    In linuxland isn't a dll called a shared library? You'd basically have to
    get the source for the dll and beat on it until it turns into a shared lib
    (better still, see if you can get an already built linux library). Actually
    hooking into the library from within LV should work the same in either world.
    NI, by the way, has app notes on this subject. I haven't gotten around to
    reading any of them yet, though.
    That's my story and I'm sticking with it.

  • LABVIEW FOR LINUX

    Hello,
    Presently i am a user of labVIEW 7.1 and 8.2.1 windows version.
    and also working on following hardware.
    SCXI-1001 12 chassis,
    SCXI-1125,SCXI-1124,SCXI-1160,SCXI-1162,PXI-1001,PXI-6251,PXI-6602,USB
    1600,USB 6602,PXI-1044,PXI-6133,PXI-8187,PXI-9257.
    since i am facing the problem of virus and sudden restarting of system,I am planning to switch over to linux version of linux.
    what is ur comment on my deceision?
    which version of linux OS will support all above mentioned products.
    what are the other advantages i can get from LINUX version?.
    Wil i get full programming help as available in windows?
    Can we easily learn the programming by reding the help?

    Hello chandhuu,
    Most of your hardware will be supported except for the USB devices.  The readme file for DAQmx 8.0 for Linux lists which devices are supported and by which Linux OS.
    The LabVIEW 8.5 readme file for Linux would also be helpful, along with this KnowledgeBase article, which lists which Linux OS versions support National Instruments software and drivers.  You will find that programming in LabVIEW for Linux is basically the same as in Windows, so you shouldn't have any trouble switching over if you are familiar with Linux and with LabVIEW.  Personally, I am not too familiar with Linux so I feel much more comfortable with LabVIEW for Windows.  What about just having a dedicated Windows PC that you can take off the network and use with LabVIEW so that you don't have to worry about viruses?
    Regards,
    Clint M
    National Instruments

  • LabView for Linux - Ready?

    I am setting up a research lab and would like to use linux for all my
    computing needs. I was wondering how peoples experiences with LabView on
    Linux have been? I would be using it to control instruments via GPIB
    and to take data using DAQs. Is it stable and reliable, or is it too
    early in its development to make the switch from LabView on windows? How
    is NI's LabView support? Thanks for the help.
    G. M. Steeves
    California NanoSystems Institute
    U. C. Santa Barbara

    Geoffrey,
    The LabVIEW for Linux FAQ page has many of the answers you are looking for.
    LabVIEW for Linux is very equivalent to the Windows versions with the exception of ActiveX and NI-DAQ. Data Acquisition is supported on Linux through the Comedi. This is a third party, open souce driver that supports many of National Instruments' DAQ boards. Also, the only toolset available for Linux at this time is the Internet Toolkit. For more information go here.
    Support is done at the same level as for Windows and can be done through all of the same ways.
    Randy Hoskin
    Applications Engineer
    National Instruments
    http://www.ni.com/ask

  • Labview for Linux Trial

    Does anybody know why there is no a trial version of Labview for Linux?
    I think it would be welcome by many...
    Marco

    I don't know why there is no trial version of LabVIEW for Linux but if you want to try one on trial, then you can contact the local sales engineer of your area and maybe he/she can help you out. To get information on the engineer, just contact your local NI office.
    Adnan Zafar
    Certified LabVIEW Architect
    Coleman Technologies

Maybe you are looking for

  • Hard drive was wiped, is there any way to re-download videos/audiobooks?

    My mac book pro's hard drive was recently failing, so I went to get it fixed and upgrade to leopard. I thought that my itunes purchases (specifically TV shows and audiobooks) could be downloaded again once I got the computer back, because I had not s

  • Required Fields upon user selection

    I have several forms that have been requested to move to Adobe Forms.  I have the forms created, but need some help on how to require certain fields when only others are selected.  I have one that has a drop down of 3 options and only when a certain

  • IMovie clips freezing and lagging

    I created an announcement video with music, multiple clips, and sound effects in it. When I preview and when I export it, the movie freezes in several locations no matter what I do. Is there a fix for this yet?

  • Wildcard in interface determination condition

    Hi Folks, I tried the following condition in setting up the condition in Interface Determination, but it is not working: Condition: /Document/Type = addLoad* The source field has this sample [email protected] I only need the "addLoad" and the other d

  • Connecting two monitors

    ok so the mac pro has two different monitor ports after about an HOUR of searching i finally figured out the second port is an ADC port. now i want to hook up a vga monitor to it. is there and ADC to vga adapters out there. I have only found ADC to D