LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

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.
0 Kudos
Message 1 of 2
(2,265 Views)
....
> 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
Message 2 of 2
(2,265 Views)