Hi,
I make Visa Vi.
The data is received 17bytes every 2ms second.
When third Visa read function byte count is 15, data is lose.
But, third Visa read function byte count is 14, data received well.....
So, Visa read function byte count is N-1?
Hi,
I make Visa Vi.
The data is received 17bytes every 2ms second.
When third Visa read function byte count is 15, data is lose.
But, third Visa read function byte count is 14, data received well.....
So, Visa read function byte count is N-1?
Hello LabView Community
I have a 2D Array of Strings that will correspond to labels of checkboxes that need to be displayed. Is there a way to create and precheck those checkboxes programmatically? The ones that need to appear checked are in another array of Strings. To explain myself better, here there is an example
2D Array of Strings with the labels for the checkboxes
Strings = { Fruits [apple, mango, cherry.....], Vegetables [eggplant, tomato, potato, lettuce....], Spices [pepper, curry...] }
Array with checkboxes that need to be displayed checked
Strings = [apple, eggplant, curry...]
I will like to do it programmatically because the values of both arrays can change depending on the configuration. Thank you very much in advance for the answer.
Hello everyone,
I am developing a medium-to-large sized project and I have started to notice some weird behaviour in the UI. The closest topic that I could find, relating to my problem, was https://forums.ni.com/t5/LabVIEW/Key-Focus-lost/td-p/474059. They experienced a similar issue, where controls lost their focus, but it was due to programmatic setting of tip strips on XControls - not quite what I am experiencing.
In my application, most UI elements are constantly being updated via references in a dedicated loop - none of which involve setting key focuses/tip strips. Only values, disable/enable and colours. Not sure if this makes a difference but the UI controls are placed in nested tab controls.
Prior to setting up this topic, I tested individual VIs to see whether they would affect the focus but did not come up with anything.
So my question is - has anyone experienced this before? Any potential solutions? I have also attached an example VI to showcase my issue as I cannot upload the whole project.
All help is much appreciated.
i have a large (1700+ VIs) application I'm producing.
It works fine in LV2013.
in moving to LV2013, I've hit a few snags.
One of them, involving PPLs that are used by other PPLs, is solved by discovering that LabVIEW 2017 fixed an issue that I had to work around in LV2013.. Previous problem and solution
Now I have another problem.
The app is build of several parts.
HOST.exe - this is the main part, running on Windows.
ADDONS used by host - These are PPLs that the user can compile (in a separate LVPROJ). They get "attached" to the host, by being in a certain folder and operating a command on the host.
PPLs used by host only - these are PPLs used by the host or by the addons, which provide data/code common to the host or to the addons. For example, the system configuration data is stored in one of these, and either the host or an addon can register and get notifications if the config has changed in a certain way.
RTHOST.rtexe - this is the main program on an RT box (PXI 8196 in my case, others are possible)
RT ADDONS - there are PPLS that the user can compile (in a separate LVPROJ). They get "attached" to the RTHOST, at the same time as the corresponding addon gets attached to the windows host.
PPLS used by RTHOST ONLY - these are PPLs used on the RT box to share data/code between the RTHOST and the RT Addons. Similar to the Windows host above.
COMMON PPLS - these are functions common to both the Windows host and the RT host. Common utilities such as circular buffer management, formatting text strings, TCP Transceivers, etc. Generic stuff.
Altogether there are 25-30 PPLs built by my process.
I haven't worked on the RT side in LV2017 yet, because I've had so much trouble with the host side.
In LV 2013, as long as I followed two simple rules, I had no trouble building anything:
1--- Dependencies go only BACKWARD. If B depends on A then A has to be built first. No problem.
2--- if a PPL has something that is Windows-Only (like a function dealing with menus), then you cannot use that PPL on the RT side. If a PPL has RT-ONLY content you cannot use ANYTHING in that PPL from Windows. That's because LabVIEW must load an entire PPL at a time - if anything is broken, the PPL is unusable.
To make that happen, I separated PPLs into the groups above. I "certified" that certain ones are RT-safe, and that means that they are usable on BOTH Windows and RT.
As part of the "certification" process, I built the dual-use PPLs using the RT side of my projects. (Since I have far more Windows-only stuff than RT-only stuff).
In LV2013, the dual-use ones were perfectly capable of being used AS IS, on either side of the fence. The same PPL was deployed in both locations and worked fine.
But now, in LV2017, the same build process complains. Some of the PPLs built on the RT side of a project get complained about. LabVIEW reports that they are missing dependencies, yet refuses to tell me what they are.
A visual exam shows that nothing in this PPL depends on anything outside of it. A list of VI DEPENDENCIES shows that nothing in this PPL depends on anything outside of it. Yet still, LabVIEW complains that it cannot find some "external dependency".
Note that the VIs will all load correctly in the DevSys. It will compile without error. yet you cannot load it anywhere.
If I move the LVLIB from the RT side to the MY COMPUTER side of the project, it will compile correctly and NOT complain about such things.
Not ALL VIs within one of these will load broken. I haven't discovered a common answer among the broken ones. In one PPL, only one VI is complained about. In another, there are three.
It's almost as if there are linkages behind the scenes that are different between RT and the host, and these show up differently between LV2013 and LV2017.
I have the host part compiling completely now, having moved some of these from RT to the MY COMPUTER side. My guess is the RT side will screw up when I tackle that.
So, is there a better plan to do what I am doing? Should I turn on some new option I haven't figured out?
Should I (can I) build two versions (RT and MY COMPUTER) using the same source library?
Ideas?
I have a multi-column list box which shows an identifier in the first column, a brief description in the second, and a file name in the third. What I'd like to do is be able to show a unique tip (Mouse hover) for each cell in the list box. For example, if they hover over the identifier, I want to show the user a tip containing the test comment associated with that identifier. Hover over the description, and the tip shows the entire description (Rather than an abbreviated one). Hover over the filename, and they see the full path.
Is there a standard approach to this or will I need to do gyrations with the mouse move event, control bounds, etc?
Thanks,
XL600
Hello,
I have made a sort of step sequencer which will be used to trigger lasers on and off in different sequences which can be preconfigured. The vi will run each segment for as long as the user wants through a numeric control. This is used as part of an experiment where the lasers when fired will excite a material which is then captured by a camera. The camera can output ttl pulses for each frame it takes. at the moment this VI is used through inputing the time in ms that is equivalent to each frame taken but due to different internal clocks of the camera and pc this gets out of syncrhonisation after a while so I am thinking of controlling the sequence with number of frames rather than time passed. I will attach my VI and would like to know if anyone have any ideas how I can use a TTL input from a camera to control my step sequencer. If this doesn't make much sense please ask and I'll clarify whatever you need.
Regards,
Jaafar Harari
PS. the force quit button isn't working as its supposed to atm so ignore it please
I would like to synchronize a continuous digital output with an analog input on a NI USB-6361 DAQ. I want to press a button and have the digital output send a square wave at 47 Hz and have the analog input begin sampling at the same rate. I have referenced the following link http://digital.ni.com/public.nsf/allkb/EBD603683446EC13862575B3006A63A2, but I am still unsure how to implement this with a NI-DAQmx express VI.
I have attached a working copy of my VI.
Thank you,
Mackenzie
I had popups before to ask the user to input values, when I click on ENTER (key) the popup closes.
Once put the popup into the subpanels (to get rid of many popups), when I enter the values, ENTERED. the screen doesn't closes and move on.
It makes me grab the mouse and click on OK in order to move on.
Is there a way to fix that? thanks for your help
Hello,
I'm trying to read data off an ST100 series flow meter using modbus using the libraries and programs that were suggested by Himanshu_Goyal in the following discussion forum:
https://forums.ni.com/t5/LabVIEW/LabVIEW-vi-communication-with-MODBUS/td-p/1584302
The attached files contain the programs and the user manual for the device I'm using. per the user manual, I'm trying to read registers 4103 and 4104 that should provide the most significant and least significant values of the temperature. I'm a little confused on how to go about combining the process registers to get the temperature value. Any help would be greatly appreciated.
Thanks in advance.
Hi All,
I'm trying to run the same template Vi, asynchronously, more than one (3 times) in 3 separate sub-panels, all with different data being passed to them. So far I've got this:
The first sub-panel displays correctly, but the other two fail on Error 1145. Where am I going wrong? I've been following some guides for loading sub-panels, but I can't find much info on running multiple asynchronous sub-panels that use the same template Vi.
TIA
I am trying to calculate HIlbert transform of a of filtered system.The problem I am facing is conversion of Dynamic data to waveform double. I have attached a VI that shows the broken wire. Please someone help me fixing the problem.
I'm trying to measure pressure out of my pressure transducer and can't figure out the electronic wiring to measure it properly. My setup is the following:
NI cRIO-9068
NI 9205 analog input module (using RSE)
OMEGA PX319-500G5V (the full scale is 500 psig and output is 0-5 VDC, linear relationship)
lab power supply at 12 VDC
At first I wanted to measure it with a multimeter which I did successfully by supplying the voltage to pins 1 and 2 according to OMEGA's pinout. And then I hooked the red lead from my multimeter to pin 3 (output) and the black lead to my negative terminal of my power supply.
Now I want to implement this in LabVIEW. So I connected the pin 3 wire from the sensor to pin 1 of the NI 9205 (AI0) using a RSE connection. But I don't how I can connect my COM to anything since I only have one signal wire. And when I have just the pin 3 wire connected it gives me the wrong voltage (supplying 100 psi to the sensor currently so it should read around 1 V out). I'm getting -2.86 V instead. Does the range of the NI 9205 have any effect? Because it's at +- 10 V whereas the sensor is outputting 0-5 V.
Hello,
In the attached main VI (main2sub), how do I going about passing the names of the listboxes from the MIAN VI to the the subVI?
Thanks,
hiNI
Hello everyone,
I need help, I am unable to stop the third loop in my consumer producer loop. I have attached an image of what the code looks like in the stop section. I just recently started using producer/consumer loops so please if you see mistakes let me know so I can correct them as well. My even starts properly and my second while loop which handles DAQ signals works as well but my third loop does not stop.
,
I got a question about regarding sending signal to 2 channel at the time to our c-series relay module. I looked at this tutorial but looks like I can only send signal to each line at the time.
http://digital.ni.com/public.nsf/allkb/515BD99CD2AF31EA8625724C0061F342
Is there a way to send digital signal to 2 lines at the time?
Hello Smart People,
I have modified the Optical Flow Feature Tracking Example VI to track the white lines in the attached images. I uploaded three, but the series will actually have 100+ images. We would like to track 6-10 points in the image depending on the experiment. Note: You have to pick points, not rectangles or anything else to construct the ROI. Also, the program only runs if you download the original example VI.
My main problem is that the IMAQ Write Image And Vision Info File 2 is not saving the overlay information that shows the point tracking for the images. Right now the program is set to record just the last image. I will modify it to save all the images when I figure out how to include the overlay information.
It would also be super awesome if the program could:
1. Let you select all the points at the same time. I.e. pick Point 1, click o.k., pick Point 2 click o.k., etc... and when complete all the chosen points would be visible at the same time. Then one final o.k. to run the program.
2. Let you have the option to be able to confirm the location of, or re-position, the points in each frame.
3. We only need Point, Zoom, and Pan from the Tools drop down, but it doesn't want to save them as defaults.
These are indicated with red text on the Front Panel/Block Diagram.
Thank you for being you!
bentaztick
I'm totally beginner of using Labview.
I will make a simple vision machine.
it is inspect a label on product whether it is pasted well or not
If this machine find one label, it is good and OK.
if this machine cant find label or find over 2 labels, it will be NG.
I already make a vision algorithm for detection.
but I dont know how to apply above condition for sequence.
also I want to get a image when proximity sensor is activated.
what I need to use a proximity sensor for machine
need I any board or something? what is most cost saving way for making this machine
Please tell any ideas this machine!
Or let me know usefull resourcse
Thank you
Hello! I have been trying to implement voice chat between HoloLens and LabVIEW (on a PC). I am aware that WebRTC module can be deployed on HoloLens for voice communication. We are unsure whether LabVIEW has WebRTC plugins (UWP compatible) that we can use to establish WebRTC channel with HoloLens.
Other than WebRTC, there are other sound modules such as Opus and Speex for sound codec and compression that can facilitate voice chat. I am a little confused and thus I hope to learn from your suggestions on how to set up a voice chat capability.
I have c series relay modulator. I have an array of numbers , let's say 5,8,9,2
i wanna send digital signal 5 times , then 8 times , 9 times , then lastly 2
should I do a for loop and my array as N value then Boolean as digital signal each time so a for loop inside Boolean is fed to daq assistant ?
Hi everyone,
I am building a measurment system with a state machine. I dont know how but somehow I lost all the cases labels in the case structure.
Can anybody help me with it. There are the numbers, and it supposed to be the names of cases.
Thanks!