LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

grass instruments and labview

I am trying to control/set the parameters of a GRASS 15LT amplifier from within my own .vi rather then with the Link15 software that ships with the amplifier...any ideas?
0 Kudos
Message 1 of 4
(3,249 Views)

Product sheet says it accepts ASCII commands.  I'd start by trying to control it using hyperterminal or some other terminal program.  That way you can make sure you have all your port settings, termination characters and cable correct.  Once you can do everything from the terminal program, start working on your LabView code.   You can use the Instrument I/O Assistant in LabView or write your own from scratch using the VISA functions.   Most people write one vi for each command they wish to send.  You could look at some of the instrument drivers on the NI web site for examples.

0 Kudos
Message 2 of 4
(3,227 Views)
thanks for the suggestions/information - i'll give it a shot.
0 Kudos
Message 3 of 4
(3,218 Views)
I've attached an example of a simple vi I put together to test serial communications with a new instrument that just arrived.   I normally don't worry about dumping the buffer in the final vi, but in the case of something new I sometimes put it in.  This vi configures the port settings, dumps the buffer, sends the command, waits a bit to give the instrument time to reply, reads the buffer and parses out the data.  This instrument is a little strange in that it does not always return the same number of bytes of data.  That is why I use the Property Node to tell me how many bytes are in the buffer.  The very last step is one of the most important.  Close the VISA connection.  You could also use the VISA events vi's to watch for data arriving in the buffer instead of using the delay between the write and read.
 
Hope this helps
0 Kudos
Message 4 of 4
(3,203 Views)