Hello,
I am have difficulty trying to have my main code run alongside two while loops, each of which contain a timer.
The code takes in information from 3 temperature sensors, 2 soil moisture sensors and a humidity sensor. The information is then processed through the code and appropriate action is then outputted. I am using a USB-6008 which outputs to 5 digital outputs that switch on / off a bank of relays to control various instrumentation.
There are two timers that feed into one another, this is designed such that a on state can be obtained and then an off state. This is such that a grow light can be put on and off for a set amount of time. The timing works correctly, however i am hoping to have my main code run at the same time as the timers, this is such that continuous measurements can be taken of temperature, moisture.. ect while output action can be applied.
I have tried taking the output DAQ outside of the while loop, and while this fixes the problem allowing all while loops to run together, it prevents an actual output to occur, thus not turning on / off relays.
Any help would be much welcome,
Cheers.
Parallel While Loop + Timer Problem
Deciding if a target is real-time or not
Hi all!
I would like to check on target references (from project items) if they are real time targets or not.
My try was to check the Application.Real-Time Support property but it doesn't work as I expected. Does anyone know what does this property mean?
Is there any way to get whether a target is real-time target, or not?
Thanks,
Barnabás
Peppermint movie HorrorTalk
dll or API audio for windows
Hello,
I have a sound file (4 tracks to have quadriphonic sound), when I play this sound with VLC, I don't have any problem but when I try to play with LabVIEW I have only the sound on the first and second but not on the tree and the four speaker. Do you know if I can communicate with API Windows 7 (dll for example) to play my sound file with my hardware which is TASCAM (US-16x08) thanks for your answers.
Best regards
Searching movie Cinema Scope
Operation Finale movie Let's Chat Movies!
RS485 timeout error 6101.
Sup Guys
I'm using a Omega cn7800 and I want to use it in my lab view program
it is being connected to my computer via a RS485 to usb converter.
Sadly when I tried to use the Example VI it I got an error. I've searched on internet for a solution but sadly there were none
The Nun movie Heroic Hollywood
SMTP Email with Attachments Issue
I am running LabVIEW 2013 SP1 for Mac. I am using the lower-level VI's to send an email because I need attachments, specifically 2 text files. If I try to send a file that is any larger than 54 bytes, then I get Error 363514, with the source:
LabVIEWSMTPClient.lvlibend.vi:2280001<APPEND>
<b>Complete call chain:</b>
LabVIEWSMTPClient.lvlibend.vi:2280001
SendEmail.vi
Why the random tiny size limit, and any way around it? Thanks.
Order of elements (pixel positions) in RGB arrays
Hi!
I have two questions:
1) I have a number of images, and I want to create a 3D plot for each of the RGB Values for each image. The plot should contain: x-coordinate (x position of pixel), y-coordinate (y position of pixel) and R-value for example as z- coordinate. I get the R, G and B values of the image as 1D arrays. Each array starts at 0,0 position and as I can see on my displayed image, it goes forward on the x-axis (1,0; 2,0; ...n;0,.....). I cannot find out what comes after position (n;0). It's not (1,0) and not (n,1).
2) Is there an easy way to create a 2D Array for R, for G and for B values, where the position of the R value (for ex) in the array represents the pixel position on the image? the Option Color image to array (vision) gives the pixel values with the "correct" position but not the r, g and b values.
Thanks in advance for helping me!
Generate unique triangle wave with controllable rising and falling time ratio
Hi, there,
I have built a customized function generator to generate a unique triangle wave for my project. Because the basic function generator vi can only support standard triangle wave. The ratio between the rising time and falling time cannot be modified. Here I generate an array for the wavetable and feed it to the arbitrary wave block. The ratio can be changed by setting the wave ratio. All the .vi files are listed here. arbitrary waveform test.vi is the main function.
Picking up where someone else left off...
Good Moring all,
Like everyone who has ever taken on a new position and has had to pick up where their predicessor had left off, there are typically tons of questions (particularly when the predicessor had left the company.) My particular question is regarding an error converter sub vi that I can not open and is vague in its reference to its parent vi. I am have used LabView in the past but I am quite rusty. I can not tell if this is a standard sub-vi fromthe 2017 version Labview set up or if it is one my predicessor had made and is now broken? I am attaching the sub-VI and its parent for refference. Any direction on this issue would be greatly appreciated.
Kind regards,
Karl
Programmatically deploying/undeploying shared variables individually
Is this possible yet, or must the entire library be deployed/undeployed via the traditional library invoke methods? I have (to some regret) kept everything in a single library and would now have to create separate libraries and (seemingly) re-reference each variable contained in the new library. If I must go this route still, is there an easier way to move and re-reference these without breaking everything? Every item I will want to move is basically a sub address mapped to a single master I/O Server Modbus binding.
VISA Read buffer size? (Rigol Oscilloscope)
I am attempting to read the full internal memory of a Rigol MSO4024 Oscilloscope over a USB cable. I seem to be only able to read the first 4 million data points. I should be able to extract the full 70 million data points for the channel, or whatever memory depth the 'scope is set to.
- I am not timing out.
- Data wise, I get 4,000,012 bytes. The first 12 bytes is just header info. The remaining 4 million bytes correspond to 4 million data points.
- I don't believe this is a 'scope setting issue.
- Attempting to set the I/O buffer size with the corresponding VI just causes an error.
- The Read VISA byte count is set to 500 million
- Using LabVIEW 2017, 32 bit
Any insights into how to retrieve more that the 4 million bytes?
Connecting different VI's
Hello everyone,
I'm having problems with LABVIEW. I would like to control eight LED indicators from eight buttons, simple, but I wish the two were in different VI's (one for buttons and one to indicators). How can I do this?
Thanks,
IQ signal frequency shifter cannot downconvert to DC
Hello guys,
Now I use labview fpga module to generate and acquire IQ signal. The structure is create DC IQ first then use frequency shifter (f) to upconvert frequency to generate AC IQ. To acquire the amplitude and phase, I use frequency shifter (-f) to downconvert the AC signal to get the DC IQ, then I can use the cordic to calculate the amplitude and phase.
This is my code screenshot:
So now I am sure that the outputs are good quadrature AC signals, but the downconverted I and Q (I_test and Q_test in the screenshot) are still AC. Why would this happens?
Block diagram messes up by itself
I am working on a vi with multiple states and when I go back to a well organized state that I made a couple hours ago, I see the block diagram is messed up. most of the constants are shifted toward one direction. See attached image, the blue circle is for what it was before and the red one is after the earthquake. I am using LV2018 and I had the same issue in LV2017 too.
Any help is appreciated.
Having an executable expire
I was curious what the best way would be to have an executable expire after a certain amount of time, but I don't want the system to be fooled by having someone turn back the clock on their computer. There will also not be internet where this exe is running, so it can't pull current time that way.
I was thinking just save the current time into some sort of locked file and load it at run time. If the next time read is prior to the date/time that was previously saved then throw some error to the user.
Unexpected Behavior with Matrix Multiplication
I'm experiencing some strange results with the matrix multiplication VI.
Specifically, I'm trying to test the validity of a rotation matrix by checking that the inverse is equal to the transpose, ie. that R x R' = I. However, when I multiply a 3x3 matrix by its inverse, the result is a matrix with 1 on the diagonal and non-zero elsewhere.
This is my first time doing linear algebra in LabVIEW, so I'm prepared to have made a foolish mistake, but I've attached a screenshot that seems pretty clear cut. Any ideas as to what's going on here?
Store string input in a txt file and extract later
Hello Labview Community,
I'm writing af code, which prompts a user to type in a username and password. Later, when the corrent button is pressed, the user is directed to a new tab, at which one has to type in the previous typed username and password.
My problem is basically, that my program saves the input of username and password as a string in 1 line in a txt file, whose path I have to chose every time i run the program. I would like to do following improvements, but I have a hard time doing them:
1) How can I just save a certain file path for my input of username and password, so I dont have to choose a path every time i run the program?
2) How do I make my VI read the typed username and password, and compare that to a new input of username and password, in order to execute the rest of the program? My own idea is, that i want to use a simple compare function. But since i have a had time doing 1), then this is difficult.
I would like to channel the read username and password to the constants at the red arrows:
3) I have thought about making my VI arrange my input of username and password in columns in the txt file (or just seperated into different lines) which i can read more easily. But i don't know how to read a certain area of a txt file.
I hope you guys can help!