Using the VXM driver everything works GREAT, but I am looking at writing some functions that are not in the driver using Labview VISA so that I can use the same code in both 32bit and 64bit.
My 1st attempt is to configure the VISA but the "Visa Resource Name" does not show me any ports to communicate with????
I know everything works cause I can use COSMOS to communicate, and I can use the VXM driver to communicate, but not the Visa?
(I have also made sure that the port is not still open in COSMOS or the driver, so I can rule that out)
Again, not a Velmex problem but I hoped perhaps some users out there can point me in the right direction?
You should not have to configure VISA to make your code compatible in any way. This is very simple serial communication.
As for Run-Time, the only reason you need to install it separately is when you are running an executable built using LabVIEW on a computer that does not have LabVIEW installed.
Colin
C
C
So I went and downloaded the missing Visa files at http://joule.ni.com/nidu/cds/view/p/id/2914/lang/en
Now my beginnings look good cause I can see my ComPorts (as well as printer ports)
Colin,
This is just a learning experience for me since most tutorials I find in Labview are kind of worthless to me cause they do not really cover communications (Serial, USB, GPIB, etc)
I also like finding out why something does not work for me but seems to work for everyone else, then what am I not doing right? or what documentation did I miss? or is there any documentation that should cover the subject? or if the missing information is something that everyone just assumes you already know, when you don't???
Reinventing the wheel??....Yep, but now I know what it takes to make a wheel and not just buy one and use it.
I certainly understand reconstructing something to understand how it works. I do it all the time. The sort of low-level communications that you're talking about, however, are not something that I find very interesting. I suppose it's a consequence of being /forced/ to write such code when it doesn't exist for hardware devices I want to use. So when I get a device that has some nicely written function calls via serial com, unless there are obvious features missing, I gladly use them. Anyhow, I was honestly just curious what you were after by rewriting them.
My philosophy - and what I base my business model upon - is that people have rewritten little bits of code that make things work far too many times. Over the course of many years of designing and building characterization tools, I have countless times written basic communications, low and mid-level driver code that I know has been written by somebody else at some time (and probably better than I wrote it at the time). Furthermore, solving these sort of little problems takes time away from solving the fun problems. For people that don't code, that's doing what the tool was designed to do. For people that do code, that's working on the more interesting coding problems, like designing a user interface or a neat acquisition or automation sequence. For these reasons, not only would have gladly used a free piece of low-level com code, I would have paid for it. My boss never patted me on the back for writing glue code!
Colin