Quantcast
Channel: All LabVIEW posts
Viewing all 202367 articles
Browse latest View live
↧

Re: Waveform+Chart+Array Average

$
0
0

Hi Alyssa,

 

find the average after converting the data to Celsius

Like this?

check.png

↧

Re: displaying a signal in a waveform chart in "slow-motion"

$
0
0

Hi,

 

Thank you for your response.

This is not what I mean... I don't want  to change my number of samples (or the fs) I want to show more data in one screen, for example 20 seconds (what I really want is to give the user an option in the GUI how much time he would like to present on one screen). 

I guessing now I see one second in every sceen (since it so fast) so I would like to show 20 seconds on one screen. 

 

thanks in advanced,

Naama Smiley Happy

↧
↧

Re: Waveform+Chart+Array Average

$
0
0

wrote:

I need to find the average after converting the data to Celsius. Please let me know how i can do that.Thank you sir. I really appreciate the help Smiley Happy


Or you can take the average in Fahrenheit, then convert that to Celsius.

↧

Re: Search Ordered Table VI

$
0
0

Suppose I said "I'm thinking of a number from 1 to 1000.  You can "guess" 10 numbers, and I'll tell you if it is my number, or if it is too high or too low".  I'll also say that the right algorithm will always converge to my chosen number.  How would you do that?

 

The algorithm is called "Binary Search", and I'll leave it to you to either figure it out (hint -- Binary Search) or look it up.

 

Bob Schor

↧

Re: displaying a signal in a waveform chart in "slow-motion"

$
0
0

I was acquiring behavioral data at 1KHz and wanted to see 30 seconds of data scroll (slowly) across the screen.  As the data were being streamed to disk, I sent a copy to a "plotting" routine that decimated the data by a factor of 50 (initially by replacing every 50 points by the average of those points, but later, at the request of the Experimenters who were interested in the "noise" component of the data, by the first point, discarding the other 49).  This lowered the display rate from 1KHz to 1000/50 = 20 Hz, and meant that 30 seconds of data required a 600 pixel Chart, an easy fit for a PC Display.

 

Bob Schor

↧
↧

Set HID Driver from NI-VISA Driver Wizard as Default

$
0
0

I've made an application based on the USB-RAW Bulk and Interrupt examples to communicate with my custom device. In order for my device to be recognised by VISA and MAX, I had to generte the  driver with the Driver Wizard. This set up works, but if i plug in a different device (same VID&PID) windows automaticly uses the hid.dll driver. What can I change, to make every device (my custom device with fixed IDs) recognised by VISA, even on first connection?

↧

Help with Report Generation Tool kit

$
0
0

Currently having an issue with the Data being shown on the Excel Worksheet. Previously I had a sample rate of 10,000 Hz and a finite sample amount of 2000. Which would work with my program and display the data every time sampling collection interval. The new finite sample amount is 125000 to equate to 12.5 seconds of capture time which would relate to the gears output I am trying to acquire. Unfortunately looking at the probe all the data is being collected I'm just not seeing the output of data collected in Excel. Below I'm attaching a snippet of code which shows all the data collection information.

↧

Re: Input byte data to write serial command vi

$
0
0

Hi GerdW,

 

The manual is asking me to input the commands in binary format and i've been simulating it with a byte array control with values of required attached in the picture. Basically, Bit 1 is the address bit, 2/3/4 bytes are settings, 4 bytes for values and last byte is a checksum. I've purely wrote it to the Write serial command vi after setting visa config at baud rate of 9600 and using visa com port as attach in the picture. But it wouldnt even start the motor, thats why i'm perplex as im not sure if im sending the write data format for the commands needed. Am i doing this right? Sorry i'm pretty new at this serial command function in labview. 

 

Thank you, 

Jarrold 

↧

Re: How to share resource between 2 objects of a child class and a dynamic class loading practice

$
0
0

I still do not understand WHY you want to do this? Do you really want one object for every type of measurement you are going to have with that particular DMM? Are you going to use the same architecture on other DMMs as well? Why not have a generic method in the interface class that calls both 'Configure Instrument' and 'Take Measurement'? You pass in a string to the configure instrument, and the particular DMM instance knows how to parse that string into a configuration setup. From teststand, you just call the 'Configure and Measure' method. 

 

 

↧
↧

Re: Input byte data to write serial command vi

$
0
0

Hi Jarrold,

 

which data do you send to your motor?

Did you use the correct checksum?

↧

Re: How to replicate/duplicate sets of front panel controls and indicators?

$
0
0

I tried the subpanels and have a couple questions. What is the procedure to center the controls in the subpanel?  What is the procedure to exchange data between the main block diagram exchange data the subvi?  See attachment with 3 methods: cluster, subpanel, and single front panel.

↧

Re: Help with Report Generation Tool kit

$
0
0

After researching Excels column limit I believe that is the issue, but i'm not sure of a good work around just yet if anyone has suggestions? Excel column limit is 16,384. 

↧

Re: Input byte data to write serial command vi

$
0
0

You should probably disable the termination character on the Serial Configure.  Does the device send a response?  Since you are sending binary data, it would probably respond with binary and a termination character would cause the response to end early if the it happened to be a part of the data stream.

 

Are you sure your checksum is correct?  Are you data bits, stop bits, and parity correct?

 

Have you communicated with it using any software they provided to make sure the communication stream is correct?

↧
↧

Re: How to share resource between 2 objects of a child class and a dynamic class loading practice

$
0
0

wrote:

I still do not understand WHY you want to do this? 


Can't say I do.

 

Not sure if OP is trying to do something difficult, or doing something simple in a difficult way. The latter would be bad.

↧

Re: RS232, Flow-Bus protocol

$
0
0

The original poster's last post was almost 13 years ago, so I wouldn't hold my breath for an answer.

↧

Corrupted VI while execution

$
0
0

Hello,

 

I copied 3 days ago all my LabVIEW development file from mydesk local file to my company network file.

Since i did it i got following error message during execution launched on development system.

"The VI Main.vi has changed on disk since last saved or loaded by LabVIEW. If you load its block diagram, it will probably be inconsistent, with the parts of the VI already on memory, resulting in a corrupt VI."

I don't understand this error neither why it happens only since i copied my development files to my company's network.

Has anyone already got this behaviour ?

Any tip will be apreciated Smiley Happy

Best Regards

↧

Re: displaying a signal in a waveform chart in "slow-motion"

$
0
0

Hi Bob!!

 

So how can I do what you suggest? 

I tried to look a bit on this subject and tried to use the proporty node (see attached pic) but it shows me the same chart. 

 

thanks in advanced,

Naama 

↧
↧

Re: Corrupted VI while execution

$
0
0

Hi Gigi,

 

suggestion: don't store your VIs on a network drive. Use local drives to keep your development source code…

 

When you want to synchronize with a network drive use SCC tools like SVN or GIT!

↧

Re: Corrupted VI while execution

$
0
0

wrote:

Hello,

 

I copied 3 days ago all my LabVIEW development file from mydesk local file to my company network file.

Since i did it i got following error message during execution launched on development system.

"The VI Main.vi has changed on disk since last saved or loaded by LabVIEW. If you load its block diagram, it will probably be inconsistent, with the parts of the VI already on memory, resulting in a corrupt VI."

I don't understand this error neither why it happens only since i copied my development files to my company's network.

Has anyone already got this behaviour ?

Any tip will be apreciated Smiley Happy

Best Regards


Several things can cause data corruption. The solution is easy: delete the corrupted files and folders, and recover your data from your backup. I suppose you use some sort of source control, or at least some backup solution. If not, you should learn from this issue, and start using them!

 

edit: and check what GerdW wrote: what happens if you copy your project folder back to your local drive from the network one?

↧

Re: How to implement callback function when DLL file is called

$
0
0

The callback function is provided by it's pointer. The only (decent) way to get a pointer to a function is to put the function in a dll and use LoadLibrary and GetProcAddress to get the pointer to the function. The dll can be made in LabVIEW, but since LV2011(?), the dll's will run in a separate context. So you'll need another function to get the information back into LabVIEW, that was stored by the callback function (in a functional global for instance). It's tedious, since iterated builds of the .dll require the dll to be removed from memory (or the file will be locked)...

 

A wrapper .dll might be a better option.

↧
Viewing all 202367 articles
Browse latest View live


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