11-01-2008 01:42 AM
11-01-2008 03:04 AM
"do i need a PCI card installed in the system? " NO
"any specific card?" NO
"can i have a rs232 to usb adapter and plug that into my system and still develop my project in labview?" YES
" to program in labview, should i need a instrument driver to send commands to the controller?" NO. You can do it with VISA functions. Do a little search for those.
If your controller has a D-SUB 9-Pin RS-232, you can use a simple cable, compined with USB to Serial
11-01-2008 11:06 AM
hi,
thanks for the reply..
that was very informative..
there is a D-9 female connection in my controller device..
i have few questions
1.so i can use a USB adapter to connect this to my system? any specific USB adapter is needed or a normal rs 232 to usb would suffice?
2.there are a set of ieee 488.2 and scip commands given by the vendor in his manual.. is that sufficient to control the machine..
3.If yes, this only has the commands to read and write.. from where shoul i get to know what data corresponds to what action. For eg, if i need to raise the temperature of the TEC using the controller, how do i know writing this data will raise the temp and something else will decrease the temperature.. For this do i have to get a lookup table having commands and the hex/ascii values corresponding to the commands? if yes, what shold i ask the vendor for?
thanks a ton for your help 🙂
you rock!!!
11-01-2008 11:19 AM
1. A USB-RS232 adapter is a specific type of USB device.
2. Obviously, you would not use any GPIB control commands but the SCPI commands are all that you need to control the device.
3. There is only reading and writing. What other type of operation would you want to have? The manual should have the complete syntax for writing a command with data. For example, there might be a command listed as SET:TEMP n. n is the temperature setpoint. You would typically use a Format Into String function to create the entire command and n would be a front panel numeric control.
Look at the shipping examples for an instrument driver (i.e. 34401). You might also want to consider using the Instrument I/O Assistant. With a serial connection, I would also recomend you test your commands in a program such as Hyperterminal before trying to write any code.
11-01-2008 11:39 AM
there is no list of commands given like SET or something..
but there are a list of modbus registers given
and packet syntax is given..
is that all i need to send to the serial port using normal visa write and read?
thank you
11-01-2008 11:47 AM
11-01-2008 12:18 PM
oh ok dennis,thank a lot for ur help.
btw, even if i use modibus, can i use a rs232/rs485 to usb adapter?
can i go ahead purchasing one..
11-01-2008 02:39 PM
"even if i use modibus, can i use a rs232/rs485 to usb adapter?" Yes.
But i would suggest you first try the RS-232 cable directcly.
There is a modbus library (free) for labview. Do a little search and you will find it.
Or you can write your own vis. It is not difficult.