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

Re: TCP OPEN CONNECTION ERROR 63

$
0
0

Looking at your code, I could not find any "Close connection". You should handle the close connection, on both the VI side, and the device side. LabVIEW connection usually closes its own connections when the VI terminates but this is not a good practice. On the device side, if the connection is still open, you will run into errors.

The OS might also prevent to reuse some port values within a certain delay, especially when the open/close are not properly handled.


Hamamatsu DCAM_API init function reconstruction in vb

$
0
0

Hello,
I am working on controlling highest resolution x ray sensor from Hamamatsu C9732DK. 12cmx12cm
They have example for Labview, so it is very easy to rewrite in visual basic

Only problem that first and most important vi init function tm_initialize40.vi  is password protected, and i can't see what kind of dll calls it is making, and without that call, other functions does not work (just like in original DCAMAPI.dll)

example could be downloaded from here:
https://dcam-api.com/assets/software/HVC_4004.zip
Does any one know how can i open or how can i know, what kind of dll calls that function is making with what arguments and data types, so i could remake it in vb ? All i know, that it uses tmcamcon.dll

Please any one, help me out here, it is very important to me.

Re: Help: Model predictive control with references

$
0
0

mpc takes only two type of equations it should be either transfer function or than state space but my equation is non linear how can i get transfer function from that in labview?

Re: Analizing Cluster Array with elapsed time

$
0
0

Hi Altenbach,

-The valves has it's own  schedule to open.

-The command to open or close can come from the operator, so the operator can decide which valve he wants to open/close, or could come from a semiautomatically function, where the operator request an operation and a combination of valves shall open to achieve it, fulfill a tank for example.

-In the example i just have included the "not open" alarm, but i also have a "not closed" alarm and an incosistency alarm, when the valve is neither open or close, or open and close for more than x seconds. All these alarms can be in a cluster array, each valve in a cluster.

 

I did not understand what you said about the tick count array. could you give me an example?? How do i start the count when a command to open/close is set???

tks

Re: TCP OPEN CONNECTION ERROR 63

$
0
0

Looking at that "driver", it is 20 years old and originally developed in LabVIEW ~3. Isn't there something newer? At least that stacked sequence could be unrolled. Since the contained VI is not reentrant, it does not even need to be there.

I don't quite understand the toplevel VI. What exactly are you supposed to do with all these returned connection IDs? Where did you get the driver? Is there a manual?

 

Error 63 means that the connection was refused by the server. Are you sure the problem is not at the other end? There could also be firewall issues and such. You are connection to 5 devices in the first subVI, then you are connecting to the same devices while the original connection is still open (+ one new device). Do these devices allow multiple concurrent connections from the same client? What if you try to connect to 11 different devices instead?

Re: Scrolling of Frontpanel produces high CPU load and crashes COM-communication

$
0
0

Some other comments:

 

  • Make sure you don't have overlapping controls on the front panels. This increases the load on resources.
  • Avoid controls with tons of data (e.g. graphs with millions of points, charts with large history size, gigantic tables, etc.)
  • In your laserloop2.PNG" image, you have an event structure inside a case structure. We cannot see the rest of the code, but can you guarantee that the event structure has a chance to service all generated events?
  • Do you really need all these local variables?
  • ...

Re: Generate ramp voltage and keep it constant (cRIO and NI9263 - scan mode)

$
0
0

Hi,

Thank you, I definitely overlooked DAQ examples. However the issue is that this approach does not give a constant value, after it reaches its maximum.

 

Capture.JPG

Any suggestions, what can be done in order to get the desired results? Thank you!

Re: NI Error Reporting Interface 15.0 error when creating a LabVIEW 2014 installer package.

$
0
0

I just purchased the Home Version, which is the 2014 LabVIEW version, and am running into this same problem. I have tried the LabVIEW_Error_Report "fix" from above, and am still getting the same error.

 

I was initially impressed that the Home version came with the builder. Now, not so much. I cannot imagine someone new to LabVIEW going through this, and seeing the lack of a solution in a three-year-old product is discouraging.


Re: I want to know how to draw arrows & dashed lines in a picture control

$
0
0

Hi 

 arrow.zip file is not opening for me

 my labview version is 8.1

cananypone tell me hoe to open that file

sampling rate

$
0
0

Hi everybody,

               I need some ideas to work with sampling rate, here i have some doubts.

1. I was acquiring a voltage signal from daq device usb 6211 with rse configuration mode and i have added sapling clock to acquire a samples of 10 per second per channel but i don't think it was getting a 10 samples per second per channel, instead of that it takes 10 seconds to acquire next set of samples to acquire.

2. My questions is that sampling rate which denotes no. of rate of samples to acquire per second per channel or it will be used to set for time delay to acquire a samples.

as i am a new to this labview, need to know about this important thing,

Thank you in advance,

regards,

Dinesh

Re: sampling rate

$
0
0

It would help us if you posted you code.

 

The Samples Per Second is the sample rate that the hardware will sample at.  So with 10 S/sec, you will get a sample every 100ms.  What you are probably seeing is you set the sample count to 100.  With that setup, you are reading 100 samples every 10 seconds (100 S / 10 S/sec = 10 seconds).

Re: TCP OPEN CONNECTION ERROR 63

$
0
0

Yes that is correct! 

each device has a different IP address but the same port ( 9000) 

LabVIEW PID controlled PWM output

$
0
0

Dear All,

 

I need to control the heater with set temperature. My idea is to use PID control which can output duty cycle percentage and in-turn generate the PWM signal to control the SSR using single board RIO with 1 KHz frequency.

 

I have searched the forum for previous post. But unfortunate to find right one, most of them uses DAQ to generate variable duty cycle PWM output. Hence am using RIO digital I/O line in RT, am not familiar on how to proceed.

 

I would be happy to see the replies.

Visa Serial interface problem

$
0
0

I am trying to read an array of string using the code as attached. I have an error with "scan from string" block every time I run the program. you can find sample of my data to be sent by my hardware to Labview as below

 

D10112.31D10212.31D10312.31D10412.31D10512.31D10612.31D10712.31\r\nCapture.PNG

 

Re: Analizing Cluster Array with elapsed time

$
0
0

Thank you Altenbach.

i am adapting to my code but i believe it gonna work!!!

 


Find if string contains valid float

$
0
0

I have attached a VI.

A separate MCU board, sends data on computer COM port, in ascii format as below:

 

$-999.999;-999.999?

 

Total length of string is 19 max. It can be less than 19 also, for example number is small like  $9.999;9.999?

VI, continuously scans for 38 bytes of string, Then serach for $ & then take out two numbers in between from them. In VI,number separted are in string Voltage & Current.

 

Now sometimes, I read incorrect string also. So is there anyway to check the Voltage & Current strings, if they contain valid number between -999.999 to 999.999

 

 

Re: sampling rate

$
0
0

hello,

  i have created a vi to explain what i want? i need much more concept about sampling rate i need some idea to get started to work with sampling rate.

thanks in advance,

Regards,

Dinesh

Re: LabVIEW PID controlled PWM output

$
0
0

Hi,

 

you can use attached vi and link the output to Digital Output port of RT. The vi has two inputs: "PID output (%)" which you connect to your PID controller and "PWM period (sec)" which specifies the lenght of PWM period. For heater I ussualy set something between 3 to 10sec. For better resolution I usually use heater  with more heating elements and split PWM into more parts.

 

BR, Jan  

Re: LabVIEW PID controlled PWM output

$
0
0

Hi,

 


JanBarton wrote:

Hi,

 

you can use attached vi and link the output to Digital Output port of RT. The vi has two inputs: "PID output (%)" which you connect to your PID controller and "PWM period (sec)" which specifies the lenght of PWM period. For heater I ussualy set something between 3 to 10sec. For better resolution I usually use heater  with more heating elements and split PWM into more parts.

 

BR, Jan  


 

Thanks for reply. Attached vi is protected, if don't mind can you share the password.

 

Re: LabVIEW & Multisim Cosimulation using Different Language

$
0
0

hi everyone,

 

the  problem is solved by setting the system format as "English".

 

Control panel > Change date time or number formats > in the format tab ,select the  format  as "English".

 

Then change the display language as  "Tamil". 

 

Now LabVIEW Co-simulation works good. 

Viewing all 202140 articles
Browse latest View live


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