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

Re: Waterfall display

$
0
0

Set the intensity graph z-scale to autoscale.


Re: Waterfall display

$
0
0

I made z-scale to auto scale, but there no much difference.

Re: compare 2 1D arrays and return indices of the same elements

$
0
0

Hey Masoholic,

 

I would go for a nested for loop for the search and substitution. On every element of the array you check against every element of the alphabet array. When it matches the morse at the corresponding index is being called.

I have put together a simple code, feel free to use it.

Screenshot_1.png

ALSO: alvays put the event source into the event case to ensure proper mechanical action. Also stop case was added so your application now can be stopped.

 

 

Cheers!

 

 

Re: using data socket with ni opc server exceeding the max connection number

$
0
0

 wrote:

because we have 3200 items on the opc server


But you don't need 3200 connections. One connection can read\write 3200 items.

Re: Running console application from LV7.1 problems

$
0
0

Just to mention, you will never get any output string until the process is finished. At least not from the System Exec. If the process doesn't stop, you won't get a return string. SE is not an interactive shell...

 

You'd need some sort of pipe for that.

Re: Running console application from LV7.1 problems

$
0
0

I have win 7 2009 service pack 1 64bit enterprise.

The path is a network location in this format: \\[location pc standard name 4 letters and 4 numbers]\[folder name]\[folder name]\[folder name]\ -> It is only 40 characters long with some basic folder names (like ABC_BC). Obviously I am not trying to access anything on a local pc since everything is on network drives. LV is locally installed though but I compile the VI into exe and must call it from an other application on the PC it will be used on. There only runtime engine is available. Normally I connect to the pc via remote desktop and run things directly on it. (though apart from runtime engine everything is on the network)

For local testing I access the same folders + everything is already where it will be used later. The path is built by labview and not given directly by me -> See one of my other forum posts where I created a VI that looks up where the VI / exe is and uses that as path. It differentiates also if it is in development environment or run as application. The whole thing can also be run via TCP (than it uses direct IP addresses) so the path might not be the correct terminology but it should not matter in this case. In TCP use case it is something like “[PC name 4 letters 4 numbers].corporate.[name].com” and it works that way too. Though I have not yet tested it to 100%. This is why I did not want to get into path details since they should not matter with this problem. But correct me if I am wrong.

 

As I said – the application DOES run so there is no problem with how to access it. The problem is that the text interface is not displayed and I do not know how to make it visible.  


About the dir command I tried to access the same folder where the exe is though there I did not use the aforementioned path generation. Just ran the whole thing and copied the path from what LV generated.

Re: Waterfall display

$
0
0

I don't have your DAQ system. I replaced it with a generated sine waveform, and it does seem to work...

 

So does the spectrogram seem to be what you want?

LabVIEW with Kistler 5074 charge amplifier

$
0
0

Hello all,

 

I've recently bought a LabVIEW license to read the data from my Kistler charge amplifier type 5074A.

https://www.kistler.com/en/product/type-5074a/.

 

I have had experience with LabVIEW before, but only with simple operations. e.g. Mindstorms NXG.

 

The amplifier is configured on Ethernet/IP. I have an EDS file from the Kistler site an a MAC address on the device.

I would like to make a VI to communicate with the amplifier and read the sensor data.

Can someone help me with this problem?

Many thanks.


Re: Waterfall display

Re: Find the VI Named DAQmx Read (Analog 1D DBL 1Chan NSamp).vi

$
0
0

Problem is solved now. I reinstalled the DAQmx 8.9.7 which was part of driver. There are no issues with building installer now.

Thankyou

Re: How to control the wave time for scanning?

$
0
0

Hi RavensFan,

 

Thanks. 'time shown by the LabVIEW program' means the measured time shown in the time indicator. The time difference means the measured time in Labview and the real time I expected (e.g 1s for one row, so 10s for 10 rows X 128 column).   Yes, I want to measure the duration of the waveforms.  What should I do? put a wait in?

 

Thanks,

Mei 

Re: 3D-Graphs don't work on current target cRIO-9063

TwinCAt labview integration - error 1172

Re: How to control the wave time for scanning?

$
0
0

Do what I said in my message.

 

See attached.

GPIO ports of VBAI

$
0
0

Dear all,

            i am working on VBAI script for sports cap inspection method. i am using GigE Baumer VCXG-24C camera. Now i want to use GPIO port to glow tower light. is anyone help me how to use GPIO port to write signal from a camera and glow tower light through VBAI script? which function should i use in the script?

Thank you in advance.


Re: Having issue VISA Read reading entire serial response

$
0
0

 wrote:

Tried out the new method. Attached the .vi below. Results still intermittent.  No, you didn't.  You attached a VI that reads the Text file, while we need to see the VI that creates the Text file, that reads a Script, sending each line to the device, gets the (multi-line?) responses, and creates the text file that shows both the Questions and the Answers.!

When I removed the "TermChar" property node for Visa Write, it ended up causing issues and Visa Write would push all my lines from my text file and write the commands in 1 line, so I put it back in to ensure it was terminating after each write.  This also is not shown in the VI you attached.  If you don't show us what you are doing (whether right or wrong), we can't provide help other than to "guess" at the problem.  This wastes our time and wastes your time, as well.

Code is cleaner, but I am still not capturing the entire response. The result of what I'm capturing is clearer now though since it seems like the "Visa Read" is reading the response too late. To clarify this I have attached 2 text files again, 1 being my expected output and 1 being the failing output. You can see in the failing text file that the "Visa Read" seems to almost be running too slow to capture the first half of the response that happens right after I send my Visa Write command to my device.  My assumption is that your output streams are interfering with each other, but as you haven't shown what you are doing, I can only guess that the most likely explanation is that you are doing "something" wrong.  I won't try to guess what.
You will notice that in the "Correct_Response" file, the Visa Read captures:
=> sf probe
SF: Detected s25fs512s with page size 512 Bytes, erase size 256 KiB, total 64 MiB  You provide no indication what the situation was that led to this "correct" response.  How did it differ from the "incorrect" response?  Did you do exactly the same thing and get two different answers?  Did you do two times in a row, and it worked the first (or second) time and failed the other?  We have no idea!!  You have all the information and haven't shared it with us.

While in the "Incorrect_Response" file, the Visa Read reads late and captures only the tail end of the response being:

=> se size 256 KiB, total 64 MiB

 

Not sure what is causing it to sometimes capture the entire message, then other times capturing only the tail end of the response???  It's either in your code (most likely), in a possible flakey behavior of your Instrument (possible), or something peculiar about your Command File (which would also be a good thing to attach to give us a clue what you are asking, how many commands are being given, if there is a particular order, etc.  It would also be useful to know which command, if any, is expected to give a multi-line response.


Once again, you've told us that what you did didn't work, but failed to tell us what you did, so we can't help much except to say "So Don't Do That!".  Please attach all of your VIs, and relevant "Command" files.  If all of your files are in a folder (and/or if you are using LabVIEW Project), compress that folder and attach the resultant Zip file.  You can explain in your reply which files are which.  Don't make us beg to get the data  we need to help you.

 

Bob Schor

Re: Indexing an array

$
0
0

Sorry I have two subarrays which I have made to go to an index length of 30K.

So I want to plot from 70k-100k and I don't know how to make the arrays start from 70k and go towards 100k for the 30k index length?

 

 

Re: TwinCAt labview integration - error 1172

$
0
0

I assume that you have loaded the correct TwinCAT project, i.e., the one that is included in the Sample07.pro file. Do not have access to TwinCAT currently to open and check the contents of the .pro file.

 

However, the error that you get seems to be coming from one/many missing variable(s) in TwinCAT. Check whether MAIN in the PLC project that you are running has variables Bool1, dint1, usint1, lreal1, str1, str2, and complexStruct1. 

 

Re: LabVIEW 17.0f2 Development System has stopped working

$
0
0

@frosthiestgrunt:

You've already posted your own question, so trying to "take over" this question is extremely rude.  Just lurk quietly, patiently letting us help @Chimsom, the Original Poster, and meanwhile pay attention to your own Post.  For example, when you see that we've asking @Chimsom to attach code, you might "get the hint" and attach your code to your post so that we can answer your particular question.

 

Bob Schor  

Plotting a subset of data

Viewing all 203560 articles
Browse latest View live


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