Save Smith Chart to JPG
I am using the Smith Multi Plot VI in LabVIEW 6.1
There is an Get Image Invoke Node for the picture plot.
I am not sure if this is what I should be using or am I going down the wrong path.
I want to save that image to the hard drive as a JPG file.
Solved!
Go to Solution.
Use that property node and then the Write JPEG File.vi under the Graphics and Sound >> Graphics Format palette.
Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.
Similar Messages
-
Does any one tried anychart to save a chart as jpg in a blob for reports
Hi does any body used anychart through plsql to save a chart as jpg in a blob in a table to display it in oracle reports, or for another use.
Thank you :)Hi,
Have you solved this?
I have the same problem. -
Urgent - How can I save a Chart
Hi,
How can I save a Chart generated in forms as a BMP or JPG or other extension.
I need to generate 12.000 Chart and I want to automatize it.
Is there any bulti-in to save charts???
ThanksEverything about using Motion, including exporting a video (and much more), is available either in the application or online:
Help Menu> Motion 5 Help: see the Share Motion Projects chapter.
The manual can also be found online here: http://www.apple.com/support/motion/
Finally there is also this link to the manual: http://help.apple.com/motion/mac/5.1/ -
Save excel chart as image (activeX)
Hi community,
I have to generate couple thousands xls files which have some data and a chart on the first sheet. Once the files are generated I'd like to sweep thru all of them and save the chart as an image (BMP, GIF, PNG, doesnt matter).
I have no success though. I assume I am quite close, by using the Chart.export method, but actually nothing happens, the file is not created. (worksheet selection is good, and chart index must be one, as 0 or 2 gives me an error message while one is OK.
Any ideas?
thx.
ps: i know how to export an image of a labview-chart, but I want the export to happen from excel..
Solved!
Go to Solution.Instead of getting a reference to the workbook worsheets collection you need to get a reference to the workbook charts collection (which is the collection of all the workbook chartsheets) . You select the chart sheet using its index and convert the resulting item to an Excel._Chart object (this is where you use this object). You can then export it.
Ben64 -
How do I save a chart as a jpeg?
How do I save a chart as a jpeg. In excel I right click, "save as picture." Not seeing anything like that in Numbers.
Here is a script dedicated to Numbers.
You will find explanations in French and English at the beginning.
CAUTION :
it requires the installation of a Unix command file which gives us the ability to check if a modifier key is depressed.
During my tests, only shift or fn keys were correctly detected.
Maybe it was because I did my tests in the AppleScript Editor.
I choose the fn key which, as far as I know, is not used to define the area to save.
--{code}
--[SCRIPT subset_of_numbers_doc_to_jpeg]
Télécharger getModKey.zip depuis
http://allancraig.net/index.php?option=com_docman&Itemid=100
Décompacter puis déplacer le fichier getModKey dans le dossier
<VolumeDeDémarrage>:Users:<votreCompte>:UnixBins:
Il vous faudra peut-être créer le dossier UnixBins.
Détails complémentaires dans :
http://macscripter.net/viewtopic.php?id=33652
Enregistrer le script en tant que Script : subset_of_numbers_doc_to_jpeg.scpt
déplacer le fichier ainsi créé dans le dossier
<VolumeDeDémarrage>:Users:<votreCompte>:Library:Scripts:Applications:Numbers:
Il vous faudra peut-être créer le dossier Numbers et peut-être même le dossier Applications.
Ouvrir un document Numbers et afficher la feuille dont une portion doit être enregistrée dans un fichier jpeg.
Aller au menu Scripts , choisir Numbers puis choisir “subset_of_numbers_doc_to_jpeg”
Le script affiche la feuille au format PDF dans Aperçu.
Sélectionnez la zone à enregistrer puis pressez la touche fn.
Le script copie la sélection dans le Presse-papiers, ferme le PDF complet,
crée un nouveau PDF à partir du Presse-papiers
puis ouvre le dialogue Enregistrer au format jpeg.
Il restera à définir le nom et la destination du fichier.
--=====
L’aide du Finder explique:
L’Utilitaire AppleScript permet d’activer le Menu des scripts :
Ouvrez l’Utilitaire AppleScript situé dans le dossier Applications/AppleScript.
Cochez la case “Afficher le menu des scripts dans la barre de menus”.
Sous 10.6.x,
aller dans le panneau “Général” du dialogue Préférences de l’Éditeur Applescript
puis cocher la case “Afficher le menu des scripts dans la barre des menus”.
--=====
Download getModKey.zip from
http://allancraig.net/index.php?option=com_docman&Itemid=100
Expand it then move the getModKey file into the folder
<startupVolume>:Users:<yourAccount>:UnixBins:
Maybe you would have to create the folder UnixBins.
Details available in :
http://macscripter.net/viewtopic.php?id=33652
Save the script as a Script: subset_of_numbers_doc_to_jpeg.scpt
Move the newly created file into the folder:
<startup Volume>:Users:<yourAccount>:Library:Scripts:Applications:Numbers:
Maybe you would have to create the folder Numbers and even the folder Applications by yourself.
Open a Numbers document and display the sheet whose a subset must be saved in a jpeg file.
Go to the Scripts Menu, choose Numbers, then choose “subset_of_numbers_doc_to_jpeg”
The script display the sheet in a Preview's PDF window.
Select the area to save then press the fn key.
The script copy the selected area in the clipboard, close the full PDF,
create a new PDF from the clipboard's contents
then open a dialog to Save as jpeg.
Define the name and the storage location.
--=====
The Finder’s Help explains:
To make the Script menu appear:
Open the AppleScript utility located in Applications/AppleScript.
Select the “Show Script Menu in menu bar” checkbox.
Under 10.6.x,
go to the General panel of AppleScript Editor’s Preferences dialog box
and check the “Show Script menu in menu bar” option.
--=====
Yvan KOENIG (VALLAURIS, France)
2011/11/15
--=====
on run
local nomFenetre, nbw
Check that the Unix command file getModKey is available in the folder <startupVolume>:Users:<yourAccount>:UnixBins: *)
set flPth to ("" & (path to home folder) & "UnixBins:")
tell application "System Events" to set maybe to exists disk item (flPth & "getModKey")
if not maybe then
if not my parleAnglais() then
error "Please, install “getModKey” in the folder" & return & "“" & flPth & "” !"
else
error "Veuillez installer « getModKey » dans le dossier « " & flPth & " » !"
end if
end if
set flPth to quoted form of POSIX path of (flPth & "getModKey")
tell application "Numbers" to activate
tell application "System Events" to tell application process "Numbers"
Get the name of the frontmost standard window
so that we will not 'speak' to an inspector or to the Find dialog *)
set nomFenetre to name of first window whose subrole is "AXStandardWindow"
keystroke "p" using {command down}
Wait the availability of the Print sheet *)
tell window nomFenetre
repeat until exists sheet 1
delay 0.2
end repeat
tell sheet 1
click first menu button
click first menu item of menu 1 of first menu button
end tell -- sheet
end tell -- window
end tell -- System Events
tell application "Preview" to activate
tell application "System Events" to tell application process "Preview"
set nbw to count of every window
repeat while nbw = (count windows)
delay 0.2
end repeat
Trigger the menu item Tools > Selection Tool *)
keystroke "3" using {command down}
end tell -- System Events
Now, select the area which must be saved in a jpeg file *)
Thanks to the command getModKey, loop until the fn key is depressed *)
repeat
delay 0.2
if (do shell script flPth) = "131072" then exit repeat
end repeat
The fn key was depressed so we may copy the defined area to the clipboard *)
tell application "Preview" to activate
tell application "System Events" to tell application process "Preview"
Empty the clipboard. So we will be able to check that the copy task is achieved *)
set the clipboard to ""
Copy to clipboard *)
keystroke "c" using {command down}
Loop waiting for the achievement of the Copy task *)
repeat
delay 0.2
try
the clipboard as «class PDF »
exit repeat (* Exit when the task is achieved *)
end try
end repeat
set nbw to count windows
Close the PDF window *)
keystroke "w" using {command down}
Wait the achievement of the Close task *)
repeat while nbw = (count windows)
delay 0.2
end repeat
set nbw to count windows
Create New PDF from the clipboard *)
keystroke "n" using {command down}
Wait the availability of the new PDF window *)
repeat while nbw = (count windows)
delay 0.2
end repeat
Get the name of the new window *)
set nomFenetre to name of window 1 --(first window whose subrole is "AXStandardWindow")
keystroke "s" using {command down}
Wait the availability of the Save sheet *)
repeat until exists sheet 1 of window nomFenetre
delay 0.2
end repeat
tell sheet 1 of window nomFenetre
-- properties of every UI elements
tell group 1
click first pop up button
delay 0.2
-- properties of every menu item of menu 1 of first pop up button
click menu item "JPEG" of menu 1 of first pop up button
delay 0.2
end tell -- group
-- click button 1 (* Click in the Save button *)
end tell -- sheet
end tell -- System Events
end run
--=====
on parleAnglais()
local z
try
tell application "Numbers" to set z to localized string "Cancel"
on error
set z to "Cancel"
end try
return (z is not "Annuler")
end parleAnglais
--=====
--[/SCRIPT]
--{code}
Of course, thanks to FastScripts, we may link a shortcut to the script.
Yvan KOENIG (VALLAURIS, France) mardi 15 janvier 2011 19:04:38
iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
My iDisk is : <http://public.me.com/koenigyvan>
Please : Search for questions similar to your own before submitting them to the community -
Iphoto usually saves your photos as jpg. as you know
mine no longer does that..
when i look up the pictures in their folders it simply has their title but not the jpg.
format.
This means it's IMPOSSIBLE to upload them to imageshack or other photo hosting sites,
how do i fix it?
ThankyouI'd guess the files are still jpeg, but the extensions are hidden. Go to the Finder preferences window, click Advanced, and make sure "Show all file extensions" is checked.
-
How to save a chart after each iteration in a for loop?
Hello,
I have written code which initializes a spectrometer. Once initialized, if the "Capture" button is pushed, the spectrometer takes a new spectrum three times (see for loop) every second. This spectrum is displayed as a chart in my front panel. My code runs fine...it will update the spectrum every second.
However, I want to be able to save each of these three iterations as separate graphs. Basically, I want to click "Capture" and have my code save three charts to a specified folder. How do I go about doing this?
I've attached my VI.
Thanks.
Solved!
Go to Solution.
Attachments:
Spectrometer Iteration.vi 444 KBUse Build Array to make a 2D Array of your X and Y data and use Write To Spreadsheet File to save the data.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines -
A script for "Save for Web" as .jpg
I found a script that saves the current selected document in Photoshop as .png to the Desktop, and use it all the time.
function main() {
// declare local variables
var doc = app.activeDocument;
var docName = app.activeDocument.name.slice(0,-4);
var saveFile = new File("~/Desktop/" + docName + ".png");
pngSaveOptions = new PNGSaveOptions();
pngSaveOptions.interlaced = false;
doc.saveAs(saveFile, pngSaveOptions, true, Extension.LOWERCASE);
main();
Now I'd really like a similar script to do "Save for Web" as .jpg files, without a colour profile, to the Desktop. Preferably a version to save as 100% quality and one to save as 60% quality.
Any help would be greatly appreciated.Here you are...
function main(){
if(!documents.length) return;
var Name = app.activeDocument.name.replace(/\.[^\.]+$/, '');
var saveFile = File(Folder.desktop + "/" + Name + ".jpg");
if(saveFile.exists){
if(!confirm("Overwrite existing document?")) return;
saveFile.remove();
SaveForWeb(saveFile,100); //change to 60 for 60%
main();
function SaveForWeb(saveFile,jpegQuality) {
var sfwOptions = new ExportOptionsSaveForWeb();
sfwOptions.format = SaveDocumentType.JPEG;
sfwOptions.includeProfile = false;
sfwOptions.interlaced = 0;
sfwOptions.optimized = true;
sfwOptions.quality = jpegQuality; //0-100
activeDocument.exportDocument(saveFile, ExportType.SAVEFORWEB, sfwOptions); -
Hi,
How to save full chart image after zooming chart areas in windows form application programmatically with C#.
Thanks,
PurnaHi Purna,
In my opinion, this thread is related to chart forum. This forum is to discuss problems about C# programming. So please post thread that forum for more effective response. Thank you for understanding. Please refer to the following link.
http://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=MSWinWebChart.
To save your time, I know there is should be a “SaveImage” method in Chart class. Did you try it?
Regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
hello,
i want to display all the point witch is in my array, but in my VI it doesn't work.
i need, in my project, to have all the point because after i want to compare the two display.
you will find attached my VI.
thank you in advance.
Attachments:
create the cluster for the smith chart test.vi 29 KBHi again,
i think i found the problem in your VI. If you go through the program with the highlight function and probes you can see that not the whole array arrives at the "index array" function. I have changed your VI and attached it to this post. I use two "index array" functions and so it works, but i am just slow on the uptake how to change the constant in the first "index array" function during the program. If you change this constant from 0 to 1 , you get the other 6 complex number pairs in the smith chart. I just don't get it at the moment, maybe you have a better view on it.
best regards
Attachments:
Smith Chart.vi 21 KB -
How to use cursors on Smith Chart?
Hi everybody,
Last 7 days , i was trying to point some markers on Smith chart.
Please suggest any method to implement this. i want to mark some points on smith chart and get data.
thank you,
dg7318
Solved!
Go to Solution.thankyou nyc,
I am seeing the demos.llb but nothing is mentioned about using cursors or markers.
I am plotiing impedance on smith chart. I want to put some markers on the chart. I also want to control the placement of those markers. I wish to get data (impedance and frequency) wherever the marker is positioned.
Again thanks for ur help.
dg,
the things that seems to be impossible first, after completion gives u real happiness.. -
Could not save as "untitled-218a.jpg" because write access was not granted.
Can anyone guide me on what might be going on? I am unable to save images in PS. I keep getting this error: Could not save as “untitled-218a.jpg” because write access was not granted.
Thank you!we don't even know what platform your using or version of PS
Supply pertinent information for quicker answers
The more information you supply about your situation, the better equipped other community members will be to answer. Consider including the following in your question:
Adobe product and version number
Operating system and version number
The full text of any error message(s)
What you were doing when the problem occurred
Screenshots of the problem
Computer hardware, such as CPU; GPU; amount of RAM; etc. -
Having trouble overlaying data on Smith Chart using LabVIEW
I am receiving data from an HP8720A Network Analyzer and want to display it on a Smith Chart. I have developed my VI with the Smith Multi Point.VI as a sub VI. When I run my VI the subVI displays the data but it is not overlayed properly on the Smith diagram. I am normalizing my data and it looks exactly as the analyzer but the data is not directly over the Smith diagram, how can this be corrected?
Alexndr,
Did you ever figure out why your data was not overlaying properly over the smith chart? I have been messing with the same exact issue on the Agilent N5230A I have. The plot is coming out just right, but not overlaying correctly. I have referenced the Smith Multi point.vi with no success. It's starting to become very frustrating, and I just want to get this script up and running.
Basically I have r & i being converted to a complex, then being normalized (50.00), and finally going into the input of the smith.vi.
Argh!!
Any way any help would be much appreciated.
Thanks,
-Chazzzmd -
Ever time i save a file in jpg it saves the file that was 4 to 5 meg to 720 kb
i
am a photo stock photographer when i down load my files from my
camera they are between 4 to 5 meg in size
but when i bring up in photoshop to edit them after i save them
in jpg as format cus
tomer wishes they save in a 720kb or less file size i need thes files to be at least 4 meg in size so what am i doing wrong?I am sorry, it is very difficult to understand exactly what you are asking.
When you download files from your camera to Photoshop they are large, several megs.
JPEG's coming directly from a camera for the most part have very little compression applied to them as so are much larger file size then an editing application would save them as.
Now if I am understanding correctly you are attempting to compress the images to 740 k or less per image.
When you choose the save the file, choose file>save as and choose jpg from the drop down and select OK.
You will get a box with jpeg options, it is from that box you can select in the image options section the amount of compression you want applied to the JPG the more compression the smaller the file size. keep in mind too much compression starts to produce jpeg artifacts and distortions so not too much compression. -
How can I flip a smith chart picture to plot admittance?
I need to rotate the smith chart 180 degrees in order to plot admittance rather than impedance.
I do not think there is going to be an easy fix. You are going to have to dig into the control to make the changes.
Maybe you are looking for
-
I'm running Mavericks on a mid-2010 MacBook Pro. Up until I upgraded, I was able to access my ImageRunner iRC3220 and HP 4MP Laserjet printers on my wired network. After the OS upgrade, the printers remained idle and unresponsive in the utility. I re
-
LMS 4.2 Xeon processor support
Does LMS 4.2 support Intel Xeon X7560 processor in Hyper-V environment?
-
Which module requires more coding?
Hello SDN, I am trying to assess the different modules extracted in BW in terms of which module is more code intensive such that Abap skills is more required. Bt Abap, I exclude start routines, transfer and update rules. I am more looking at enhancem
-
Re-installed 10.3.9 - eject button stopped working
I just erased and re-installed 10.3.9 on my PowerBook G4 laptop. However, since I did that the eject button on the keyboard doesn't work anymore. I can only eject a CD by dragging it to the trash. Is there a way to get the eject button working again?
-
Time machine does not seem to be backing up pictures, music or videos on WD My Book live
We puchased a Western Digital My Book Live to use as an external hard drive. After setting it up with Time Machine and going through the first back up it doesn not look like any of our photos, vidoes or music has been backed up. Is there any way sp