Multiple Scales in Analog Gauge
Hi,
I am new to the Forum and fairly new to LabView. I am trying to display my data on a custom gauge like the one shown. I need the resolution from the -10 to 30 range, but just need a ballpark number between the range of 30 to 90. How do I manipulate my data and/or gauge to get that to work?
Juan
Maybe something like this?
You probably need to spend a few more minutes aligning things perfectly, but it shows the general idea...)
LabVIEW Champion . Do more with less code and in less time .
Attachments:
NonlinearGauge.vi 1079 KB
Similar Messages
-
Problem with chart/grap​h multiple scales
I have a chart with multiple scales. If I turn the visiblity off for some of the scales and then turn them back on they are not in the correct order on the chart. I have attached a program that I used to recreate the problem.
Please advise.
Thanks
Attachments:
Possible_bug.vi 36 KBThe only solution I can think of is to make all the scales invisible then make them visible in the order you want. I have modified your code to do this and added code to speed up the processing by disabling the front panel updates.
Attachments:
LV61_Possible_bug[1].vi 56 KB -
Post Author: andeezlemoyo
CA Forum: Charts and Graphs
Hi All,
I'm using CR XI Release 2. Is it possible to create a chart with multiple scales? Or in other words, plot multiple measures on a single chart.
Thanks,
AndyPost Author: Dan3D
CA Forum: Charts and Graphs
Yes. In the Chart selection tab, start out with a "Dual-Y" chart. This will produce a bar/line/area chart that has a y1 scale on the left and y2 scale on the right. Each measure can be mapped to either Y1 or Y2. -
Programmatically add multiple scales to graph
On the front panel, I can choose "duplicate scale" "delete scale" to add/remove multiple scales a Graph control. Can I do this programmatically,i.e., use the VI to adjust the number of scales on the graph? The purpose is to have variable number of plots on the same graph, each having a different scale.
I use this: Add the maximum number of needed scales per hand. You can swap sides to get a better look.
To switch on/off a scale use the property "Active Y Scale" to select the scale and "yscale.visible" to switch on/off.
I've written a small demo. I hope it's usefull.
Attachments:
add_multiple_scales_to_graph.vi 24 KB -
Multiple scales on Y with the one time axis
Hi All,
I am trying to make a multiple scale in Y-axis with the single x-axis in XY graph or waveform graph. I am tring to do this programetically but I am getting the error message"LabVIEW: Invalid property value." . I have attached the VI for your reference .
Please help me to plot multiple scale in Y-axis.
Thanks
Hi,
Add the total Y scales you need in XY graph.
Then you can hide or make it visible using XY graph Y Scale property node.
First you need to se the 'Active Y Scale' property ,then set any Scale property.
You cant programmatically add Y scales ,you need to add Manually and programmatically you can do anything on Y scales with above instructions -
Monitor multiple channels for analog trigger with DAQmx drivers
Hello! I would like to start a data acquisition of multiple analog channels (16) from an analog trigger. I would like trigger to monitor four of the (same) channels, and trigger when any one of them reaches a certain voltage. I found an example that would work with the Traditional DAQ drivers (using occurances), but can't figure out how to do something similar in DAQmx.
Time is also an issue, as I would like to collect the first 80 milliseconds of data after the trigger (at a rate of 500,000 Hz).
I'm using LabView 7.0 and collecting data off of two PXI-6133 cards.
Thanks for your help!Hi Denise-
After some research, I have found that it is not possible to use the functionality of DAQ Occurrences in DAQmx. Ironically, the reason that this functionality is available in Traditional and not DAQmx is due to the exploitation of an inherent limitation of Traditional that was upgraded in DAQmx. The multi-thread capability of DAQmx is a major advantage for most applications, but in this case it prevents the use of occurrences as they existed in Traditional DAQ.
In short, this means that you can't directly use this functionality in DAQmx. You can however emulate this functionality with minimal software analysis of the incoming signal. I have attached a modified example VI that logs data to a chart only when the analog level of one of the channels being measured has exceeded a user-defined reference value. Basically, the task is running continuously in the background but the data is not actually logged until the signal is above a predetermined "trigger" level.
Please let me know if the attached example is helpful for your application. You will see the input channels listed in the format "DevX/ai0:y" where X is the device number and y is the highest channel number of interest.
Regards,
Tom W
National Instruments
Attachments:
Cont Acq&Graph Voltage-Int Clk Analog SW Trigger.vi 83 KB -
Using Multiple non-successive Analog DAQ Channels
Hi,
I need to use multiple analog channels from my DAQ Device in a particular application. Is it necessary to use continuous range of analog channels (e.g. 0,1,2,3,...) or can i use channels in any order (e.g. 2,4,6...)? My DAQ Device has 16 AIOs. What are advantages/Disadvantages of using non-successive channels ?.
Thanks.Hello,
It is perfectly acceptable to sample on multiple channels that are not in a continuous range, nor do the channels have to be increasing order. In most applications, there are little to no advantages/disadvantages of doing this, other than ease of use for the programmer.
-Alan A. -
Programmatically controlling multiple scale graph
Is there a way to programmatically duplicate the Y scale of an XY Graph and to associate it to one of the multiple plots.
> Is there a way to programmatically duplicate the Y scale of an XY
> Graph and to associate it to one of the multiple plots.
You can show and hide a scale, you while a VI is running, LV cannot
create a new scale.
Make your graph in advance to have the number of scales you need, then
programmatically hide the ones you don't need and show the ones you are
using. You can also set the Plot Active Y Scale to select which Y scale
is used for the plot.
Greg McKaskle -
Dynamic scales and custom gauges
Hi,
I have some simple code for a gauge I need that changes the Min & Max Scales based on the current input value. For example, my Min/Max is 0 to 180, but when my input exceeds a value of 70, I want my Min/Max to be 60 to 180. However, I want to use a custom gauge (pictures) so I need the picture of my gauge to flip from one showing 0/180 Min/Max to one showing 60/180 Min/Max. I am not sure how to do that. Any ideas? Thanks in advance.
Solved!
Go to Solution.My initial suggestion would be to make the gauge housing transparent and put it on top of a picture ring control. Use the picture ring to toggle the picture and use the gauge to give you the needle/scale/etc.
If you need to reuse it and want to keep the block diagram clean then this might be a good time to wrap it up as an XControl.
~Simon -
Hi,
I am trying to set a different maximum for each of the gauges that I have. In order to so I went to :
Additional Gauge Properties -> Scale -> Gauge Limits -> Custom -> Maximum.
Here I specified the vale as a sql column "COLUMN B".
I was expecting that it will pickup the "COLUMN B" value from each row for each gauge, but the value seems to be set to the value of the first row for all gauges. I only have 5 rows.
Any help will be great.
Thanks.It is not entirey clear what you mean.
Is it possible that you want to adjust the scale range (min&max) programmatically? Simply create a property node of the gauge and write to the following properties:
Scale.Minimum
Scale.Maximum
(Of course you can also "move" the scale around on the front panel using properties such as "Scale.Left", etc., but this does not seem very useful).
LabVIEW Champion . Do more with less code and in less time . -
Multiple Scale Images in one workflow?
I want to take a large image, scale it down and rename it, then scale the new smaller image and rename it. (The Create Thumbnail function makes them too small, though.)
Right now, my workflow looks like this:
Get Selected Finder Items
Copy Finder Items
Scale Images
Rename Finder Items
Copy Finder Items
Scale Images
Rename Finder Items
The workflow does the first scale and rename, and while it says it does the second half, nothing results from those commands. The log shows no errors. Playing with it, it seems that the second Copy Finder Items isn't working. The only workaround is for that second Copy Items to be pointed to a different folder than where the first items are put (which is annoying).
I've tried throwing in commands for Automator to create a new folder and move things around, but repeatedly specifying where to move and copy almost defeats the purpose.
Any idea how to get a single workflow to take one image, then scale and rename it twice to end up with TWO images of different sizes and names? TIAHave you tried the Move finder items action, if you say the workaround is to save it in a different folder?
Just guessing:
Get Selected Finder Items
Copy Finder Items
Scale Images
Rename Finder Items (this is size 1)
Copy Finder Items (to a prespecified temp folder)
Scale Images
Rename Finder Items
Move Finder Items (back to where you want it to be, this is size 2)
See if it works -
Multiple scales do not assign properly ot traces
The Labview XY Graph object does not allow me to map signals properly to their scales. I have attached a simple XY Graph VI where there are 3 input traces that I want to map to their 3 respective Y Scales. The drop down menu item does not allow me to map to any scale except for Y Scale 1. ANy body know why this is?
Attachments:
scale mapping.vi 16 KBHi id,
I tried this vi in 8.0.1 and found the same issue. You can change the mapping from the front panel Plot Legend, but not on the Properties > Plots > Y- Scale drop-down-menu. The same is true in 8.2, but in 8.5 you can do it (I know that probably doesn't help much).
I'm including a version of your vi that sets different scale values for the Y scales.
steve
Help the forum when you get help. Click the "Solution?" icon on the reply that answers your
question. Give "Kudos" to replies that help.
Attachments:
scale mapping mod.vi 19 KB -
Can anyone explain to me, the option Interpolated, in the function , "Scaling and Mapping?
Thank you!!!!!When you select Interpolation you then define a table of value pairs; basically the raw data versus actual data.
For example
2 5
4 10
6 20
What the VI then does is if the input signal has a value of 3 the Express VI will linearly interpolate between 5 and 10 and will map your value of 3 to 7.5. Again a value of 5 would then be interpolated and mapped to 15.
Take a look at the attached VI.
Evan
National Instruents
Attachments:
mapandscale.vi 89 KB -
Reg: LSMW Multiple line items of scale pricing in transaction VK11
Hi,
Iam using LSMW to upload price condition records(VK11)
Totally Iam having two records which i have split as 2 flat files.
one flat file with header details and another flat file with line items for scale quantity and scale pricing, something like below.
Header flat file
__ZPR3__
__cust1__
__Mat1__
__AUD__
__EA__
__100__
__10__
__ZPR3__
__cust2__
__Mat2__
__AUD__
__EA__
__300__
__10__
Line Item Flat file
__cust1__
__mat1__
__95__
__20__
__cust1__
__mat1__
__90__
__30__
__cust1__
__mat1__
__85__
__40__
__cust1__
__mat1__
__80__
__50__
__cust1__
__mat1__
__75__
__60__
__cust2__
__mat2__
__70__
__20__
__cust2__
__mat2__
__65__
__30__
__cust2__
__mat2__
__60__
__40__
When i do the step of Read Data in LSMW iam getting the data correctly.
in Display read data step i got the header data in yellow and its line item in blue.
In Convert data step iam gettin as
Transaction read = 2.
Records read = 11.
Transaction written = 2.
Record written = 9.
In Display Converted data step Iam getting every record as a higher level item (displayed in green)
In Create Batch Input Session step Iam getting the message as 1 batch Input folder with 9 transactions
Which is actually wrong because only two transaction only must be written.
I think i migh have problem in Convert data step but iam not sure, can anyone help me what should be done.
My requirement is to upload the two datas with multiple scale prices for transaction vk11.
Kindly Help.
Regards
Naveenhi,
For u r reqrmnt u can make use of direct input method.
1)
Object 0070 Condition record
Method 0000
Program name RV14BTCI
Program type B Batch input
it make use of transaction VK15( alternate for vk11where instead of selecting combination u can directly input table name)
2) create u r internal table structure with the following fields
KSCHL cond type
KOTABNR cond table
VKORG sales org
VTWEG distr chnnl
KUNNR customer
MATNR material num
WERKS plant
WAERK currency
DATAB from date
DATBI to date
KSTBM cond scale qty
KBETR rate
LOEVM_KO del ind
KPEIN cond pricing unit
in the above if u dont require any fields u can omit but make sure u r using all key fields.
i thnk in u r reqrmnt its customer specific pricing so customer, cond scale qty,rate r needed.
deltion indicator is used to delete existing records.
3) maintain structure relations till BKOND3
4) for field mapping do Auto field mapping
give Tcode VK15
give value for VAKEY ( concate salesorg, plant,materialno,customer)
assign dates in standard format (YYYYMMDD)
5) Run remaining steps like assigning files, read convert and all
u r flat file structure shud be da same like u r internal table.
if u r not givin values provide empty space.
flat file
zpr3 cust1 mat1 aud ea 100 10 95 20
zpr3 cust1 mat1 aud ea 100 10 90 30
zpr3 cust2 mat2 aud ea 300 10 70 20
i hope it gives u some idea .
if its useful rewrd me. -
Counter to measure frequency with multiple channels (Analog In/Out) in one vi
Hi,
I am using DAQ 6062E. I have multiple channels: an Analog In, Analog Out, Count Edges, and Count Frequencies. Without Count Frequency, the program works fine, I have defined a Sample Clock for each channel and then a common sampling rate. When I add Count frequency channel, I am not able anymore to use Sample Clock, since I get an error that Sample Clock can not be used, and if I change the Sample clock of the Count frequency to Implicit, then I can not connect different channels with a same sampling rate. In the attached file, if the Count Frequency is not connected to any Sample clock and sampling rate, the program works, but now I can not run the program for more than 5-10 Hz sampling rate, otherwise I get the error: 209802 “occurred at DAQmx wait for next sample clock, slow down the sample clock”. Does anybody know how to fix this problem?
Thanks a lot,
Azadeh
Attachments:
multiple channel.jpg 117 KBHi Otis,
Thanks for looking at the problem. I ran just two counters in a same vi. I was not able to use the Sample Clock since I needed to define an external sample clock source. The vi is attached. I could run this vi fast (200Hz). So, I am not sure why when two counters are combined with AI/AO the rate is very slow. I have attached three vi(s). Just two counters, AI/AO/1 counter, and AI/AO/2 Counters vis. I am able to run the vis in 200 Hz except the vi with AI/AO/2 counters (maximum sampling rate 20Hz). I appreciate if you can look at it if I am missing something.
Thanks,
Azadeh
Attachments:
AI_AO_2 Counter.vi 153 KB
2 Counter.vi 61 KB
AI_AO_1 counter.vi 138 KB
Maybe you are looking for
-
ive tried to update the iOS on my ipod, but nothing happens. can someone help me?
-
hi every body i am using Oracle Jdeveloper 11g release 2 i wanted to create a Calendar Component for this i used JSF Declarative Component i added a RichInputText to page and a Button for opening calendar Dialog when for first time i open Calendar Di
-
Windows 2008R2 OEM compatibility
Hi there, After finally getting MSA Storage and VMware installed, now looking to setup my VM's. I have 2008R2 OEM licences as purchased with my HP DL380G6 Host Server. Do these work with VMware and what are my options if they don't?! Cheers, Matt
-
The questions sais it all really... It just doesnt work - no matter what i do, the scroll function just doesnt work. I remember this was the reason why i went back to the old version earlier - but now many sites require the latest version of FF...
-
QT Pro Crashes When I Ask It To Export a MOV to an AVI
I'm trying to use my newly-purchased QT Pro to export from MOV (captured with Casio digital camera) to uncompressed AVI so that I can edit my movie in Pinnacle. When I click the options > video settings so that I can specify the codec etc, QT disappe