Proper representation of digital IO

When programming a digital IO board, I'm using a 2-D array of booleans to represent the state of the digital IO.  When I expand the array, it's easy to see the states of all the outputs, with one major exception.
LabView array expansion/representation starts with the lowest indexes on the left, for a boolean word, the MSB must be on the left with the LSB to the right -- in other words, it's easy for the end user to misinterpret the outputs, even with a label indicating LSB.
The question becomes obvious, is there a way to expand and display a LabView array control (or indicator for that matter) such that the lowest indices are on the right?  I've never seen negative indices, don't see a way to trick LV that way -- other than that, I'd have to reverse the words when reading or writing to that control (indicator).
The problem with the work-around is that when you mix 8 and 16 bit DIO's, keeping track of displayed array index becomes unmanageable (I still haven't found the array property to change the displayed index).
   ...Dan

ok, you are right. The items should probably be right justified. You can still do some LV magic to get your items right justified and still have the upper 8 bits grayed out for your 8 bit only case.  Rather than having just one array of booleans in your cluster, split it into two seperate 8 bit arrays. One for the lower 8 bits and one for the upper 8 bits. If you don't put any data in the upper 8 bits, they will stay grayed out. However, the user could still click on an item in those upper 8 bits and essentially enable them, so you will have to do some filtering.
Hope this helps, because I'm out of suggestions.
Whoops, the upper and lower labels are reversed in the picture, but you get the point.
Message Edited by JaredW on 03-08-2006 02:28 PM
Attachments:
switch2.PNG ‏7 KB

Similar Messages

  • Memory leak in Digital Waveform

    I have a program with a pretty serious memory leak that uses up all my system RAM and crashes my computer within a few hours of running the program.
    The program takes an array of U16s where each bit represents a digital signal. The VI converts each U16 to a digital array and groups the resulting 16 digital signals into different busses for display on a Digital Waveform Graph. The profiler doesn't show any excessive memory usage in the VI. I put the whole VI into a Diagram Disable structure and moved a few pieces out at a time, and eventually the only thing inside the disable structure was the Digital Waveform Graph indicator. When this indicator is enabled, the memory usage of my system rises slowly and steadily until it uses all available RAM and crashes the system.
    If I replace the Digital Waveform Graph indicator with a cluster, the memory leak still occurs (but much more slowly). I thought using the cluster fixed the leak until I reran the VI overnight while using the cluster instead of the Graph.
    If I stop the VI before all the RAM is used, the RAM will not release until I close LabVIEW entirely. Once LabVIEW closes, the memory is released slowly and exponentially unless I use the "End Process" option in Task Manager.
    This is a continuation of a previous post I made where I thought the memory leak was due to problems transferring data from an FPGA for display.
    I ran the MemLeak vi (attached) on two separate systems, both running LV 2013 SP1, and got the same results. The memory leak is noticeably fast when using the enable structure connected to the Digital Waveform Graph but still present when using the cluster of Digital Waveforms.
    Attachments:
    MemLeak.vi ‏33 KB
    LV shutdown.PNG ‏101 KB

    Thanks for the replies.
    In response to John's points:
    1. The attached VI is a simplification of an FPGA VI that read a fixed number of samples from a DMA FIFO using an FPGA Interface Invoke Method approach. I'm using a card (PXI-7842R) that doesn't allow use of the Acquire Read Region method. In order to allow people without an FPGA card to hopefully see the issue, I replaced it with the for loop. Assuming that this for loop does leak (which I don't believe it does; as altenbach said, it's a fixed size allocation that LV should be able to reuse), why would I see a difference in the leak magnitude depending on which indicator I connect to the array?
    2. I've previously reviewed the document you referenced, and I don't see any errors from it present in my code; do you? I have no global/local variables, strings/arrays displayed on front panel, property nodes, coercion dots, altered memory sizes, resizing/reallocations, etc. I don't see any weird buffer allocations. I used to have the conversion from U16 array to digital waveforms in a subVI but placed it on the same diagram to allow incremental use of the Diagram Disable structure.
    3. The forum post you referenced had many of the items discussed above, plus it was solved using an RT FIFO. I'm not passing data from a producer to a consumer; I'm just displaying acquisition results. I guess you could say I'm processing the data, but I'm really only converting it to a format that the indicator will take; I'm not operating on the data.
    It's good that the leak doesn't show up in 2014, but my SSP runs out in a couple of days; I never got an upgrade to 2014. This is the last item remaining on the development path, and we've already spent ~$4k to upgrade the controllers enough to display the acquisition without dragging down the CPU. I will be in hot water if I spent all that money and then end up having to scrap the display...

  • Placing Text With Digits - the Digits Come Out in the Wrong Language

    I am using CS4 ME. When I place English text from Word into InDesign, the English text comes out okay but the digits in the text come out in Arabic. In the character menu, the setting for the digits is "default". When I set the digits to be in Arabic, they come out in English (1,2,3 and so on). How can I make it right so that the default will be 1,2,3..... and when the setting is Arabic in the file it will be Arabic?

    Digits respect language settings, so if the paragraph is marked as English, you'll get correct digits for English. Farsi, you'll get correct digits for Farsi. Set the digits for "Default" to get this behavior.
    However, note that the proper name of digits used by writers of English and European is Arabic digits, and the proper name of digits used by writers of Arabic is Hindi digits. This is because Europe got all of its upper maths from the Arabic world (when they had a flourishing civilization and Europe was hella barbaric). If you look at it, algebra is obviously an Arabic word (al-gebr).
    So if you mark digits as "Arabic" then they will be 1,2,3 even if it's Arabic text marked as Arabic in the paragraph style. Trust InDesign's default language settings here.

  • [Petition] Gamers Club Unlocked 20% off not on digital purchases.

    Hi, Matt, Mike, Kyle and all the other awesome BBY people out there helping and making a TRUE difference when it comes to customer service.
    Today I wish to bring a concern about the great and awesome 20% off discount included with the new Gamers Club Unlocked membership. As an avid gamer for nearly my whole life from my first visit to the arcade to being impressed by Resogun at 30 years old, gaming is a very important part of my life and the 20% off discount makes it even better.
    There is only one gripe I have about it, and I'm sure thousands around the nation feel the same way, and other won't care. But for me, the next generation brings about the proper advent of digital distribution of games. And I love having the convenience of not needing to switch discs between games which especially comes in handy when using the Remote Play feature on the PS4 with the Vita. But the discount only applies to disc based games, not digital.
    I know that price adjustments on digital games if sold in store is doable. I recently had Best Buy price match Amazon/Walmart who had Killzone Shadow Fall on sale both digital and retail copies for 48.99 which happens to be the cost for GCU members if we use our 20% off discount. I want to petition for Best Buy to update their policy and allow GCU 20% off discount to be applicable to digital purchases too. This would be an invaluable addition to end the benefit of the 20% GCU discount not applying to gamers such as myself.

    Hello Amirnawaz786,
    Thank you for writing in, and thank you for being a My Best Buy Gamers Club Unlocked member.  We appreciate your passion and desire to share your feedback with us.  
    As Enuf has mentioned, we have a place on our forum dedicated to hearing our customers' recommendations.  That place is called IdeaX, and we want to hear from you.  
    In this case the idea has already been presented, so adding your voice to that conversation is greatly appreciated.  In other instances you can definitely start a new thread and let your voice be heard.
    Hit the link below to check it out.
    IdeaX
    Thanks again,
    Mike|Social Media Specialist | Best Buy® Corporate
     Private Message

  • Premiere CS5 to Encore 5.1 Blu Ray track from six mono wave files

    When preparing a 5.1 mix for a theater presentation, I had repeated trouble trying to get a blu ray disk to reflect the 5.1 mix our sound engineer created, so, having had success this time, I wanted to record my procedure.  You gurus might catch something I missed, so critique this where necessary:
    I'm running Windows 7 Professional, Premiere CS5 and Encore CS5.  
    You will need to purchase the Minnetonka Surcode for 5.1 ( http://www.minnetonkaaudio.com/index.php?option=com_content&view=article&id=56&Itemid=74)
    Mine installed without any hitches.  
    In your Premiere sequence, make sure you create a 5.1 Master audio track.  (Very important)
    Create 6 5.1 audio tracks
    Import your six mono wave files.  (L.wav, R.wav, Ls.wav, Rs.wav, C.wav, LFE.wav) but DO NOT drag them to the timeline yet.
    Right click on each .wav file in the project panel.   For each one, select Modify -> Audio Channels
    In this dialogue box, you can select mono, stereo, mono as stereo, or 5.1.  Choose 5.1.
    Each of your wav files should be mapped to the proper representation of the 5.1 icon, with the black dot appearing where the final name would imply. (the *c.wav file would match the icon as it appears below.
    Continuously click on the icon will bring up new channel options. (see illustration below)
    For more info on channel mapping, see:  http://help.adobe.com/en_US/PremierePro/4.0/WS1c9bc5c2e465a58a91cf0b1038518aef7-7f46a.html
    (continued..)
    When all your wav files are mapped to the master 5.1 audio track, you can drag them to the sequence and  you can export your audio file.
    File -> export -> media 
    My objectives was to get an *.ac3 file to drop into my encore project, since I had trouble with dynamic link, so the next step for me was:
    Format:  H.264 Blu-ray (note export audio only didn't give me the 5.1 surcode option, but I got it this way:)
    uncheck export video
    export settings, h.264 Blu-Ray, Dolby Digital, SurCode for Dolby Digital
    Our engineer recommended:
    Dialog Normalization should be -31
    Dynamic Compression should be set to none
    The export resulted in an AC3 file that was a perfect match to the sound mixer's file on his end.

    You can skip the Modify step and just route the tracks from the Mixer.

  • Simple calculator

    Hello,
    I'm new to programming on the Mac and I've been following through a tutorial in the "Cocoa Programing for Mac OS X For Dummies" book. I'm getting a weird calculation error and was wondering if anyone had time to have a look at it for me?
    // Fusebox.h
    // My First Project
    #import <Cocoa/Cocoa.h>
    @interface Fusebox : NSObject {
    IBOutlet id answerField;
    IBOutlet id numberField1;
    IBOutlet id numberField2;
    - (IBAction)calculateAnswer:(id)sender;
    @end
    // Fusebox.m
    // My First Project
    #import "Fusebox.h"
    @implementation Fusebox
    - (IBAction)calculateAnswer:(id)sender
    float num1, num2, answer;
    num1 = [numberField1 floatValue];
    num2 = [numberField2 floatValue];
    answer = num1 + num2;
    [answerField setFloatValue:answer];
    @end
    I've re-read the tutorial and even copy and pasted the code and I can't find any problems. But when I run the simple application the simple addition doesn't return the proper results.
    For example, I just ran the application then and tried entering 1 into the first text field and 1.2 into the second. But when I click "Calculate" it returns "2.200000047683716".
    !http://img23.imageshack.us/img23/9361/picture1fc.png!
    Am I doing something wrong?
    Thanks!

    Just to add my two cents.
    Floating point numbers have always had a representation problem with whatever computer hardware in use, and as noted in many engineering texts, any number is only as accurate as the precision used in the problem.
    Thus, 1.2 is not the same as 1.20 or 1.200 because there is a question about precision. So, when you entered 1 + 1.2, the 1.0 had no fractional component, but a purist engineer will beg to differ. The 1.2 however does have a fractional component and could represent a number between 1.15000 and 1.24999 using traditional mathematical rounding rules. So, you need to either set the display as rounded to the nearest precision used, or work in a specified precision.
    Thus to expect 8 digits of precision, 1 + 1.2 == 1.20000000 you need to enter 1.00000000 + 1.20000000 and unless that wraps the precision of the computer, it should be accurate to the proper number of digits.
    There was a problem with some early pentium chips that adding 2.0+2.0 did not equal 4.0 and it was said to have been closer to 5.0, but I never checked the actual details on this since Macs didn't use pentium processors, so somewhere online there may be a reference to the actual calculation problem.

  • How do I cast a String to an int ?  HELP !

    Dear Java People,
    If I have a program that outputs a String of the time ie
    09:25
    How do I code in Java to check this String to see if it is greater than 12 o'clock and if so tack on a String of "PM'.....
    I tried
    if ((int) hours.getDisplayValue()> 12 )
    to attempt to add "PM" at the end of the String
    The error message says:
    "ClockDisplay.java": Error cannot cast java.lang.String to int at line 88, column 12
    below is the program
    Thank you in advance
    Stan
    * The ClockDisplay class implements a digital clock display for a
    * European-style 24 hour clock. The clock shows hours and minutes. The
    * range of the clock is 00:00 (midnight) to 23:59 (one minute before
    * midnight).
    * The clock display receives "ticks" (via the timeTick method) every minute
    * and reacts by incrementing the display. This is done in the usual clock
    * fashion: the hour increments when the minutes roll over to zero.
    * @author Michael Kolling and David J. Barnes
    * @version 2001.05.26
    public class ClockDisplay
    private NumberDisplay hours;
    private NumberDisplay minutes;
    private String displayString; // simulates the actual display
    * Constructor for ClockDisplay objects. This constructor
    * creates a new clock set at 00:00.
    public ClockDisplay()
    hours = new NumberDisplay(24);
    minutes = new NumberDisplay(60);
    updateDisplay();
    * Constructor for ClockDisplay objects. This constructor
    * creates a new clock set at the time specified by the
    * parameters.
    public ClockDisplay(int hour, int minute)
    hours = new NumberDisplay(24);
    minutes = new NumberDisplay(60);
    setTime(hour, minute);
    * This method should get called once every minute - it makes
    * the clock display go one minute forward.
    public void timeTick()
    minutes.increment();
    if(minutes.getValue() == 0) { // it just rolled over!
    hours.increment();
    updateDisplay();
    * Set the time of the display to the specified hour and
    * minute.
    public void setTime(int hour, int minute)
    //Exercise 3.19 This condition will insure that it will be a 12 hour clock
    if(hour > 12)
    hour = hour - 12;
    hours.setValue(hour);
    minutes.setValue(minute);
    updateDisplay();
    * Return the current time of this display in the format HH:MM.
    public String getTime()
    return displayString;
    * Update the internal string that represents the display.
    private void updateDisplay()
    if ((int) hours.getDisplayValue() > 12 )
    displayString = hours.getDisplayValue() + ":" +
    minutes.getDisplayValue() ;
    * The NumberDisplay class represents a digital number display that can hold
    * values from zero to a given limit. The limit can be specified when creating
    * the display. The values range from zero (inclusive) to limit-1. If used,
    * for example, for the seconds on a digital clock, the limit would be 60,
    * resulting in display values from 0 to 59. When incremented, the display
    * automatically rolls over to zero when reaching the limit.
    * @author Michael Kolling and David J. Barnes
    * @version 2001.05.26
    public class NumberDisplay
    private int limit;
    private int value;
    * Constructor for objects of class Display
    public NumberDisplay(int rollOverLimit)
    limit = rollOverLimit;
    value = 0;
    * Return the current value.
    public int getValue()
    return value;
    * Return the display value (that is, the current value as a two-digit
    * String. If the value is less than ten, it will be padded with a leading
    * zero).
    public String getDisplayValue()
    if(value < 10)
    return "0" + value;
    else
    return "" + value;
    * Set the value of the display to the new specified value. If the new
    * value is less than zero or over the limit, do nothing.
    public void setValue(int replacementValue)
    if((replacementValue >= 0) && (replacementValue < limit))
    value = replacementValue;
    * Increment the display value by one, rolling over to zero if the
    * limit is reached.
    public void increment()
    value = (value + 1) % limit;
    public class TryClockDisplay
    public static void main(String[] args)
    ClockDisplay clockDisplay_1 = new ClockDisplay();
    clockDisplay_1.setTime(17,40);
    System.out.println("\nThe time now is " + clockDisplay_1.getTime());
    clockDisplay_1.timeTick();
    clockDisplay_1.timeTick();
    clockDisplay_1.timeTick();
    clockDisplay_1.timeTick();
    clockDisplay_1.timeTick();
    clockDisplay_1.timeTick();
    clockDisplay_1.timeTick();
    System.out.println("\nThe time now is " + clockDisplay_1.getTime());

    String time = "09:25";
    String hrs = time.substring(0,2);
    int hrsInt = Integer.parseInt(hrs);
    if(hrsInt>12){
        time += "PM";
    System.out.println(time);                                                                                                                                                                                                                                                                                                                                       

  • Is it possible to force a single decimal in a specific column in the formula?

    I am working with a report where the decimal placement needs to change in different columns of the same row (due to unions). Therefore, I am looking to show only 1 digit after the decimal point in one cell out of the whole row. Is there a formula I can use that will override the decimal settings made in the column properties tab? I tried to truncate and round but it does not show the proper number of digits after the decimal.
    If anyone knows of a solution or workaround, that'd be great!
    Thanks

    I think if I show you pictures it might be easier to understand.
    http://imgur.com/a/7o5bL
    If you look in the first picture, you will notice that my volume row has the decimal number set to 0 to show only whole numbers. However, you will also see that the last column, union 5, is a % variance from union 3 vs union 4. In union 5, I am hoping to enter something in the formula for that column to force OBIEE to display a number in the following format XX.X instead of XX.
    I haven't had any luck using truncate, round, or cast unfortunately...

  • Passing query template name to BLS SQL action in the link editor

    I want to have one transaction that uses the SQL query action, but which query template it uses will be dependent on some user input. I am having trouble passing the query name. I'm using the full file path in xml format (i.e. "c://<folder1>//<folder2>//<folderN>//"&PassedFileName&".xml", but with backslashes instead of forward slashes). I got an error around the connector, so I set that too. Then I got an error around mode, so I set it to "FixedQuery". Now I'm getting, "The Query expression was not set with the Query parameter".
    There are only 3-5 possible queries that will be used, so I'd rather build SQL queries and just pass the transaction the name of the query, as opposed to passing the full text of the query each time.
    Thanks,
    Carrie
    Edited by: Carrie Schimizzi on May 9, 2008 6:38 PM
    Edited by: Carrie Schimizzi on May 9, 2008 6:39 PM
    Edited by: Carrie Schimizzi on May 9, 2008 6:40 PM

    Carrie,
    If you haven't already done so, configure your master BLS transaction with a proper representative runtime variation, which will make the whole process simpler to create and troubleshoot.  Quite often when people try to use the dynamic capabilities of MII, they end up getting confused because of user over-complication.  In your SQLQuery action block make sure you configure it to a valid template that would be one that the user would provide as an input (don't forget to allow the generation of sample results for making any subsequent trx efforts easier).  Then look in the link editor and you should see this string value for the query template link if you hover over the corresponding blue T icon.  This will show you the format you need to provide from your Transaction input property (which should also have a valid default value assigned so you can test the transaction by itself, without needing to initially rely on the Xacute Query template layer.
    Regards,
    Jeremy

  • Newbie seeks advice on importing to iMovie from JVC Everio

    Hi there,
    While I'm an old hand at the Mac - I really have little experience of AV applications and cams. I am very interested in buying a JVC Everio GZ-MC 500 or MC 200 Digital Media Camera, but just found out that I cannot import movie outputs into iMovie. Since MicroDrive technology seems like the way of the future I'd like to stick to the JVC. Is there any work around to this problem?
    I have iLife 05 with iMovie HD installed and have just downloaded QT7 with Pro upgrade on the way. Does the MPEG 2 component solve this situation?
    Any assistance to this would be a great help.
    Thanks and regards,
    Des

    My experience with microdrives (..incidentally, Clive Sinclair used the name 'Microdrive' for the tape storage devices he sold for his original 1980s home computers ..about 20 feet of videotape wound into an endless loop in a teeny plastic housing, rather like a miniature 8-track cartridge ..they were also used in the ancient British ICL 'One-Per-Desk' under licence from Sinclair: those two slots along the top are microdrive slots.. Oops ..sorry; where was I..?) ..is that they're unreliable. CF cards are better. But how much video can you store on a CF card, and at what price?
    Microdrives need a moment to run up to speed, and constantly starting and stopping them - as I've done with, for instance, a Sony F828 stills camera - I find that the drive gets confused about whether it should be saving or accessing ..and just stops working. Same thing has happened to me with a microdrive in various other devices. So I don't trust them any more. I've used various sizes (340Mb, 1Gb, 2.2Gb) and I always cross my fingers: some have stopped working completely; others have had to be reformatted as DOS, and then formatted as Mac HFS+ ..and I've found them to be more trouble than they promise to be worth. Imagine suddenly losing all your video after you'd just shot about 46 minutes' worth.. Weddings? Argghh! The bride and groom would be so disappointed ..and so would you!
    There are various programs which will read MPEG-2 footage (..including the audio: iMovie will play the video 'natively', but often without the sound..) such as Streamclip. That'll convert MPEG footage into proper QuickTime, which iMovie can handle. So you could connect your microdrive(s) to your Mac, copy the footage, squirt it through Streamclip, then edit it.
    However, be aware that the quality of the footage may not be as high as material recorded with proper miniDV (or Digital-8) tapes because of the nature of the Everio's recording/compressing/storing routine. The specification - on that page mentioned by 'L', above - shows that the Everios record in the same format as DV "NTSC (720x480) 4:2:0 PAL (720x576) 4:2:0" but - not having tried one - I dunno if the final appearance ..once the video's been 'unscrambled' from MPEG-2 format into something iMovie compatible, then saved back to tape or hard disc.. is as good as DV. It might be even better [..HDV hi-def is saved as MPEG-2..] but I couldn't say.
    But DO be careful about microdrives ..ask a few Everio owners before putting down your money and buying one. And how does the price of a microdrive compare with a 60 minute miniDV tape?
    Oh, by the way, I almost forgot: welcome to iMovie Discussions!

  • Crosscorrelation time delay question

    Hi!
    I have a project, where i work with 2 microphones, and i want to calculate the time delay between the two signals. I had made a simple method for it, but it's a bit bad...
    So now i  try it with crosscorrelation, but i can't get a correct time-format...i had made the correlation correct, i have just some problem with the time format...
    If i convert the time format into string with %<digit>, then i always becom 0...
    Here is my vi, can somebody help me?
    Attachments:
    CrossCorrforum.vi ‏134 KB

    I took a peek- your problem is with the format string on the timestamp to string functions.  Your format strings are "%5u" and "%S"  the %5u returns a string that represents 5 digits of fractional seconds, the %S converts only the whole number of seconds
    FROM the help-
    for format timestamp to string
    ..." Time
    format codes include the following:
    %a (abbreviated
    weekday name),
    %b (abbreviated month name),
    %c (locale-specific date/time),
    %d (day of month),
    %H (hour,
    24-hour clock),
    %I (hour, 12-hour clock),
    %m (month number),
    %M
    (minute),
    %p (a.m./p.m. flag),
    %S (second), %x
    (locale-specific date),
    %X (locale-specific time),
    %y (year within century),
    %Y (year including century),
    %<digit>u (fractional seconds with <digit> precision).
    So, How do you want to display the time information?  If you want 1 January 1900 12:00:00.000AM to display as "1/1/1900 12:00:00.0am" your format string should be "%d/%m/%Y\s%I:%M:%S%1u\s%p"  (ESCAPE CODES DISPLAYED)
    Jeff

  • DVD Export - Problems

    Hello,
    I shot some video a while back and I am trying to make a DVD with the footage.  I have several questions and any help would be greatly appreciated!
    First Camera: JVC GZ-HD5
    I used the 1440CBR (1440x1080i, 27Mbps Constant Bit Rate) record setting.
    Is there are difference if I capture the footage versus taking the file off the camera?  The camera files are .tod files and I have to change the file extension to .m2ts for them to import in to Premiere?
    Second Camera: Sony SD Camcorder
    If I want to make a DVD using both cameras footage which sequence preset should I use?
    What is the best option for exporting to DVD?
    Thanks!

    There are two quick and easy ways to resize your HD footage to SD. The first I'm not sure about, the second I know works.
    1) Select it in your bin and choose the "Clip | Modify | Interpret Footage" command, and make your adjustment there, bringing it to match the framerate and frame size of your SD footage (be careful, though, not to "squash" your video if you've got 4:3 SD...)
    2) Select your clips in the timeline, right click, and select "Scale to Frame Size." This may perhaps be the best option, though may not be as quick as selecting it all at once in the bin. Note that you can select multiple clips in the timeline by pressing the "A" key on your keyboard and then clicking on your first clip. It will select that clip and all that follow it.
    As to the instructions in your user manual, it sounds like it's asking you to brink the footage in over firewire, which isn't the proper workflow for digital format stuff... If the footage works copied to your computer and changed to mts files, then go that route. If PrPro doesn't recognize it, then you'll need to figure a different way to ingest it. However, playing back and capturing over firewire doesn't seem to be a very sensible option.

  • Deleting unused swatches except for...

    I have a script that cleans up my document... one of the functions is that it deletes unapplied swatches. This works well for me most of the time but in instances where I'm using a color whose name begins with a "D", I want the script to ignore it.
    In my workflow, "D" represents a digital process and we don't apply a color swatch to digitally printed artwork but a "D" swatch is necessary for our output program to sort the job to the correct printer. The swatch names vary but always begin with a "D" (DBLK, DGLD, DGRN....).
    Thoughts, suggestions?
    Thank you very much for your help.
    //delete unused swatches
    var myIndesignDoc = app.activeDocument;
    var myUnusedSwatches = myIndesignDoc.unusedSwatches;
    for (var s = myUnusedSwatches.length-1; s >= 0; s--) {
         var mySwatch = myIndesignDoc.unusedSwatches[s];
         var name = mySwatch.name;
    // alert (name);
      if (name != ""){
    mySwatch.remove();
    (I found this little script somewhere in these forums - I apologize for not having the credit information available)

    Hi,
    replace the line:
    if (name != ""){
    with:
    if (name != "" && name.search(/^D/) == -1){
    ...(/^D/i) if not case sensitive...
    Jarek

  • Funky bug - when previewing transitions...

    One peristent bug my iMovie has is that when I set up a transition between two photos or two video clips, and try to preview it, it basically doesn't preview well it all. First, it goes either previews in reverse, or previews it just plain wrong. For example, if I am transitioning between clip B and C, it will preview it as a transition from clip B to clip A, or at least from clip C to B. And it will go really fast. It is just not right at all. If I actually apply it/ drag it in, whatever, it will work just fine, as expected, but the preview feature is basically just plain bunk. Any thoughts?
    (While I'm at it, often when I clip on a blank space clip, to bring up the numeric display of its length, the text in the little text box that displays the length of the clip (which I can type in, to change the length) will get all wacky, as if it were typing over top of itself, getting all garbled, like numbers on top of numbers...)

    A big preview - in the main iMovie playback window - will often be slow and jerky, as the computer tries to play back in "real time" an effect which really needs the video to be rewritten ('rendered') before it'll play correctly.
    Any preview in the little 'Preview' window at top right will not necessarily be accurate, as iMovie tries to use a bit of video which is in its memory, instead of the slower and more cumbersome method of reading video from the hard disc.
    So the little black preview window gives only a rough 'taste' of what the transition or effect might look like, but isn't a proper representation. And a proper preview in the big playback window won't be accurate either, as most computers can't run fast enough to show an 'unrendered' effect in iMovie in real time (..though some effects and transitions used in Final Cut can be previewed in real time ..but that's a more expensive program!)
    (..I don't think I've ever seen the garbled "numbers on numbers" effect you mention ..not in iMovie, but occasionally in other dialogue boxes in other programs. Sounds like it may be a Display or Font problem..)

  • Epub Layout issue in Aldiko

    Hi,
    Request someone to please help me.
    I have made the epub from Indesign CS6 with the use of external CSS. The output is proper in Adobe Digital Edition, but when the same file is viewed in Andriod Mobile (Aldiko Application) there are issues with the file. The Layout of the content is not proper, the codes font is missing, the links are not click-able and the Chapter references are also not working. The Layout of the Table is totally messed up.
    Can somebody please let me know if there are more changes in CSS that needs to done to get the same output in Mobile Device.
    Regards
    Arvind

    Hi Bhaugen,
    Thanks for your reply.
    Sorry I cant provide you the epub file, as I the data is confidential.
    It is an EPUB 2 document, and I have run this through validator there are hardly 6 errors of the links that needs to be rectified, but I haven't fixed it in Indesign CS6.
    I can elborate this issues further, I have tested this issue is different types of EPUB reader. The same file displays the expected result in some reader (UB Reader, ePub Reader on Andriod Device) and in some reader its showing a normal text (no defined attributes are seen) (Moon Reader, Aldiko, AIReader).
    How can we can an ePUB where in our file should work on all readers.
    Looking forward for your reply.
    Regards
    Arvind

Maybe you are looking for