Re: Error BFFF0072 or -1073807246, when trying to open VISA session

2004-06-16 Thread jcrooke
This answer is on the NI site at http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/862567530= 005f09c862564e17e89?OpenDocument It sounds like the serial port you are trying to configure is in use already.=A0 Make sure no other application is trying to access that port.

Re: search special character

2004-06-16 Thread jcrooke
Sorry about that answer. I missed the part about searching in developer exchange. I don't know how to specialize searches in developer exchange.

Re: How would you recommend that I schedule a file-creation...

2004-06-04 Thread jcrooke
This sounds like a good approach. I think I will give it a try in my next update.

Re: How would you recommend that I schedule a file-creation...

2004-06-02 Thread jcrooke
Thanks for your response, Ryan. The only problem with that approach is that I am getting data every two seconds and I would like the data to go with the date of the file, i.e. I could potentially get about 10 seconds worth of data in the previous day's file. Not a big deal, but I already have suc

How would you recommend that I schedule a file-creation...

2004-05-26 Thread jcrooke
How would you recommend that I schedule a file-creation process to occur at midnight each day during a long term data logging operation in LV6.1? I am operating a continuous system that logs data over a period of years. There are large amounts of data being logged and I have a technique for namin

Re: Error -1073807246 when trying to control a circulator in Labview via RS-232

2004-05-17 Thread jcrooke
Glad to help. I have been there too often. It's amazing how much time is spent making simple problems complicated. Hopefully, some of the other discussion items will be of benefit in future tasks. -jayme

Re: Error -1073807246 when trying to control a circulator in Labview via RS-232

2004-05-12 Thread jcrooke
I work on an Apple machine, so the answer is no, but I will see if I can find a Windows machine with 6.1.

Re: Error -1073807246 when trying to control a circulator in Labview via RS-232

2004-05-12 Thread jcrooke
Determine wheter or not you have a straight through serial cable or a null modem cable. If it is null modem, your device will probably not properly receive the commands because it will be "listening" to the wrong wires in the cable.

Re: Error -1073807246 when trying to control a circulator in Labview via RS-232

2004-05-12 Thread jcrooke
If you sent the string out_sp_00, then the data stream was 10 bytes long, one byte per ASCII character, of which the character is the last. This corresponds to 80 bits. At a baud rate of 4800, this should take 80/4800 = 17 ms. Since your timeout value was set to something larger than 1 second,

Re: Error -1073807246 when trying to control a circulator in Labview via RS-232

2004-05-12 Thread jcrooke
Maybe that, or the data byte configuration is wrong. The 7 data bits seems a bit unusual. I have communicated with about 15 different devices over the course of my LabVIEW programming and 8 data bits is the only configuration that I have encountered. The stop bit is probably 1.0. Hung, double c

Re: Error -1073807246 when trying to control a circulator in Labview via RS-232

2004-05-11 Thread jcrooke
= carriage return = 0x0A hex = linefeed= 0x0D hex

Re: Error -1073807246 when trying to control a circulator in Labview via RS-232

2004-05-11 Thread jcrooke
It is rare to get a timeout when writing. I usually get this when I am reading a port. What value did you use for the timeout when you configured the port? I think the default is 10,000 ms, i.e. 10 seconds. If it were timing out, you would notice the code hanging for 10 seconds as the serial I/

Re: zero crossing of noisy signal

2004-05-11 Thread jcrooke
Please, be more specific. Do you want to count crossings that may be due to noise, or do you want to discriminate against the noise and count zero crossings from a band-limited signal?

Re: HOW TO CREATE A MATRIX

2004-05-11 Thread jcrooke
Pardon me, but your sentence structure was hard to decipher. I think you are asking a very basic question. If you want to know how to simply create the array, you have many options. All are found in the array tools sub-pallette. You can use the "initialize array.vi". First, put a numeric const

Re: VISA serial communication in LV 7 application

2004-05-11 Thread jcrooke
Ah, yes, serial communication is supposed to be simple, but it is often frustrating. I have done a fair amount of this, but none under LV7. Whether or not you get errors depends on the nature of the communication. For instance, suppose you send a request for status information to your serial dev

Re: Hi! Using LabVIEW 6.1, I am trying to call a function from a...

2004-05-11 Thread jcrooke
The low level register access functions are called "read" and "write". They have changed names over the years and I think they are platform dependent.

Re: Hi! Using LabVIEW 6.1, I am trying to call a function from a...

2004-05-11 Thread jcrooke
The low level register access functions are called "read" and "write". They have changed names over the years and I think they are platform dependent.

Re: Hi! Using LabVIEW 6.1, I am trying to call a function from a...

2004-05-11 Thread jcrooke
You can pass structures to dlls, but you may have to write a wrapper function to get the format right. If the c-code structure does not match a LV data type, you have to cast it, so-to-speak, in your wrapper function. The ability to write such a wrapper function is a good skill to have. Read som

Re: memory goes crazy when calling a sub-vi

2004-05-10 Thread jcrooke
As I suspected. Besides some introductory level knowledge of Pascal and C, I do not have the benefit of programming experience in other languages, nor time spent on Info-LabVIEW. I find that it is fairly easy to get the job done in LabVIEW without a more general understanding of the text-based pr

Re: change display size of plot area

2004-05-07 Thread jcrooke
LabVIEWer's suggestion is better because you should be able to move the pop-up graph to see both charts at the same time. To do that with my example, you have to make extra space in the main vi to put the charts side by side.

Re: memory goes crazy when calling a sub-vi

2004-05-07 Thread jcrooke
I want to thank you guys, Greg and Rolf, for taking the time to elaborate on the issue and encourage you to do so in the future. You both seem very knowledgeable and it helps to get a better understanding of what is really going on with the code. I have been operating under some flawed assumption

Re: memory goes crazy when calling a sub-vi

2004-05-06 Thread jcrooke
Thanks for your insight, Greg. I was surprised to learn that global references each contain a copy of the data. This implies that each time data is written to a global, each copy of that global must get updated. The process sounds amazingly inefficient. Now I know why globals are taboo in LabV

Re: memory goes crazy when calling a sub-vi

2004-05-05 Thread jcrooke
Sounds like you are passing a 100MB array to your sub-vi. As soon as you do this, you make a copy of the data. That is, the input variable is not a reference to the array, it is a copy of the array. To understand this more clearly, think about wiring the same array to four or five different sub-

Re: display timestamp from text file

2004-05-05 Thread jcrooke
Oops, I committed a bad programming sin. I forgot to close my control reference to the string. If you do that, the code should be acceptable. -jayme

Re: How to add plot areas?

2004-05-05 Thread jcrooke
The only ways I know to do what you want to do is 1)to create your own graphs using a picture control and the drawing functions (It is a lot of work.) or 2)to create your own offsets in an overlayed chart, turn off the scale and build your own scale with a picture control (also a lot of work). You

Re: resize controls proportionally

2004-05-04 Thread jcrooke
I found that even when I choose "fit to contents" the tab control does not automatically resize. They "autogrow" just fine, but they don't "autoshrink". I had to programmatically adjust the tab size to get it to work right.

Re: resize controls proportionally

2004-05-04 Thread jcrooke
There is always room for improvement for the LV development team. They get a lot of their ideas for improvement from these discussions. Hopefully, this "font scaling" issue will be addressed in a future version of LV. I'm glad you found my answer helpful. Thanks for the good rating.;-) jayme

Re: resize controls proportionally

2004-05-03 Thread jcrooke
Your buttons scale fine until you reach the limits of the text box. When you try to shrink the panel below the limit of the Boolean text box size, you find that the button shrinks no further. Then when you expand again, the panel forgets that the shrink operation was limited, and all of the button

Re: LabVIEW & Systran FibreXpress

2004-02-06 Thread jcrooke
If the APIs are well documented, it is a breeze. You need the function prototype which is found in header files and in the function definitions in good API documentation. The prototype contains the name of the function and the calling syntax, including the type specifications for the input parame

Re: scrollbar position in image display

2004-02-06 Thread jcrooke
What display control are you usng to display your image? That is, on which control is the scrollbar causing problems? Is it a color image? I have done live image aquisition without Vision in the past. I have displayed the image using a picture control and using an intensity graph control. Sound

Re: New to Lab view! Need some Help.

2004-02-06 Thread jcrooke
I can help you get started with your project, but first, please, provide more information. Do you have to keep your database in MS Notepad files, or can you create datalog files in LabvIEW to serve as your databases. Things are much easier for you if you can work directly with LabvIEW data struct