Quantcast
Channel: All LabVIEW posts
Viewing all articles
Browse latest Browse all 204032

Re: Critique my loop to send a text file, line by line or en masse?

$
0
0

I should probably clarify my purpose for writing these VIs to begin with. We make The World's Finest (tm) electronic test systems for CCDs and IR FPAs (e.g. image sensing devices). All the hardware is of our own design, so there are no off-the-shelf VIs for them. We have developing our own software internally for 30+ years in C/C++, but we have a lot of customers asking if are "compatible with LabVIEW."

 

Of course we are. Everything is compatible (or can be made compatible). The good news is that the basic control of our instrumentation is via human-readable text commands, passed into and out of 3 separate DLLs, and the output of our instrumentation is a binary data file.

 

But they want examples. And we are committed by contract with one such customer to provide some rudimentary LabVIEW VIs to demonstrate basic functionality (which functionality is really up to me, since it isn't spelled out in the contract). 

 

So I intend to offer up the following:

  1. Examples of the lowest-level primitives, e.g. VIs to send and receive strings from each of the 3 DLLs.
  2. Example of how to read and graph our binary data file.
  3. A real-world example with scripts to set up our hardware, acquire an image in a closed-loop test, and graph the image.
    1. I have text scripts to set up each of the 3 DLLs, so the VI that is the subject of this thread is just a way to send that script to one of the DLLs.
    2. The customer might use this as-is, but will likely write their own VIs to suit their application needs.

So that's a long way of saying that this VI doesn't need to be perfect, but I also don't want it to be embarrassingly amateur. We will also upload these to our website for all users, of widely-varying LV expertise, to use as tools to learn our hardware. That's why the debugging ability (send/pause/step) is so important.

 

But I also need the VIs to be architecturally simple, even at the expense of elegance, so that newbie LV users (like me Smiley Very Happy) can understand and adapt them. 

 

Anyway, that's a long way of saying, thanks!


Viewing all articles
Browse latest Browse all 204032

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>