From: <alb...@ph...> - 2005-02-10 20:47:39
|
Good start Martin I attach a use case that even VISA does not handle nicely. One of the problems with the VISA serial implementation is that after opening the port you have to specify extra settings before using the channel. VISA takes the default settings from the operating system but normally you initialize these settings after opening in VISA. This is shown in the new templates for instrument drivers. Only for serial you have a special VI to configure the port. It not only makes instrument driver VI's look ugly but also has some weird effects on ports when changing the baudrate after already initializing the port. Sometimes the instrument chokes on an inadvertently send hiccup on the line. It would be nice to inform the operating system of new "default values" before really initializing the port.. I worked out a way to add these settings to a VISA resource name but did not yet inform the operating system. something like ASRL1::INSTR ;baudrate=9600;parity=even In fact my application accepts the eventual hiccup after opening the port because I did not have the time to sort out how to inform the OS. If you are interested I can send you the VI's but So even when using VISA for serial we need such a special serial open. Albert Geven Tel +31 (0)40 27 43019 Philips Research Fax +31 (0)84 722 9844 prof Holstlaan 4 WAA01 Email alb...@ph... 5656AA Eindhoven |