05-17-2015 10:58 PM
Hi All,
I am developing a LV drivers for the device for which works on the both Serial COM and Ethernet. Commands used for both protocol are same just the commumcation choices are different.
As it would be difficult to maintain, I do not want to develope drivers separtely for Serail COM and Ethernet so I must use the communcation reference for that, I plan to generate this reference in Initialize.vi and further this reference is used for the communcation.
How to generate this communcation rference ?
Thank you.
-Amit
05-17-2015 11:58 PM
05-18-2015 12:59 AM - edited 05-18-2015 01:00 AM
Hi,
Thank you for your answer, I do not want to use ONLY VISA, I agree most of the driver user knows about VISA very well but here my concern is to
make the common driver both for COM port and Ethenet, just in Init.vi, I will select the COM or Ehtenet with proper inputs and accordingly
communciation reference will be generated and the same communcation reference I will use for the further functionality (at that time, I do not
care aobut what I am using COM or Ethernet as I have reference genered in Init,vi and I did input this reference for further VIs).
is it possible to do so ?
Thank you.
05-18-2015 02:28 AM
@amitwadje wrote:
Hi,
Thank you for your answer, I do not want to use ONLY VISA, I agree most of the driver user knows about VISA very well but here my concern is to
make the common driver both for COM port and Ethenet, just in Init.vi, I will select the COM or Ehtenet with proper inputs and accordingly
communciation reference will be generated and the same communcation reference I will use for the further functionality (at that time, I do not
care aobut what I am using COM or Ethernet as I have reference genered in Init,vi and I did input this reference for further VIs).
is it possible to do so ?
Thank you.
And VISA was speciifically designed to abstract the actual hardware interface away. It incidentially supports serial, GPIB, USB, AND TCP/IP for exactly that reason. Your Iniitilize.vi has to do only a little work to initialize certain aspects of VISA according to the used interface such as possible message termination and serial port parameters and the rest of the instrument driver simply gets the VISA reference and does its thing and doesn't have to worry at all if it should use the Serial COMM reference or rather the TCP/IP reference. In LabVIEW accessing Serial COMM without VISA is anyhow quite a bit of extra work.
05-18-2015 08:31 AM
@amitwadje wrote:
Hi,
Thank you for your answer, I do not want to use ONLY VISA, I agree most of the driver user knows about VISA very well but here my concern is to
make the common driver both for COM port and Ethenet, just in Init.vi, I will select the COM or Ehtenet with proper inputs and accordingly
communciation reference will be generated and the same communcation reference I will use for the further functionality (at that time, I do not
care aobut what I am using COM or Ethernet as I have reference genered in Init,vi and I did input this reference for further VIs).
is it possible to do so ?
Thank you.
Just goes to show you don't know what you are talking about.
The next time you contradict somehow be sure you have the information to make a correct response.
05-18-2015 09:20 PM
Hi,
some misunderstanding about VISA concept, now its clear.
Thnak you all.