Convert a channel from Hexidecimal to Decimal

Is there an easy way to convert a channel from HEX to Decimal without having to change every individual measurement. 
I am currently using the following command:
 HEXnumCOVNVERTED = (CLng("&h" & HEXnumTOconvert))
Just curious if there was an easier way around this. 
BBANACKI

Sure,
and you can use the same command for it. Simply use the DIAdem Calculator, which is capable of doing the calculation for a complete channel - row by row.
The syntax would be something like: ch("dec") = CLng("&h" & ch(1))
In the formula, replace Ch(1) with the channel you would like to convert.
Ingo Schumacher
Systems Engineer Sound&VibrationNational Instruments Germany

Similar Messages

  • How to get the list (vector) of selected channels from the portal

    Hi,
    I try to retrieve the selected channels from the portal to use them in my script. I use "DataCheckChnls". Is it possible to convert it to a vector, to use it after in in for next structure.
    I would like to do specific calculus for each selected channel. Must I use another method ?
    Thank's in advance.

    Hello!
    Sorry, I trusted the DIAdem help and did not testetd it. But I'm not completly wrong
    What you get is an array of strings containing the channel name. In standard use these names are unique and could be transfered to a channel numbers with the CNo command. Try this code to understand this:
    Option Explicit
    Dim aoChannels
    Dim oChannel
    aoChannels = ChnStrToChnList(DataCheckChnls)
    For Each oChannel In aoChannels
    MsgBox CNo(oChannel)
    Next
    If you realy need the numbers as array you can build a function to do this based on this code:
    Option Explicit
    Dim i
    Dim aoChannels
    Dim anChannels
    aoChannels = ChnStrToChnList(DataCheckChnls)
    ReDim anChannels(UBound(aoChannels))
    For i=0 To UBound(aoChannels)
    anChannels = CNo(aoChannels(i))
    Next
    Matthias
    Matthias Alleweldt
    Project Engineer / Projektingenieur
    Twigeater?  

  • Alpha channel from Quicktime into AE - broken?

    This has been driving me nuts for some time. I am generating an animation w/alpha channel from my 3D software (FormZ.) It creates a proprietary .fan file containing the animation frames, which is then converted to Quicktime. I am using the animation codec, max quality, millions+ colors. When I import the QT file into Aftereffects, I get the alpha channel pop-up - so it apparently recognizes that something is there - but whether I choose straight or premultiplied, I just get black for the alpha channel with jaggy edges.
    This is on OSX 10.5.5, QT 7.6, Adobe CS4. I have had the issue dating back a year or two, I had thought it was a bug that would be fixed by now - the same process used to work fine with older versions of AE and QT.
    Now - the kicker - when I boot into Windows XP and do the QT (7.5.5) conversion there - then take it back to OSX for import into AE - THE ALPHA CHANNEL WORKS PERFECTLY.
    I have talked with FormZ in the past, they recognize and have duplicated the problem. However, it is apparently a Quicktime issue so there is not much they can do about it.
    This seems like a pretty fundamental issue that I can't believe it would go uncorrected for so long. Why would the Mac version behave differently from the Windows version? Am I completely missing something in the Mac QT? I have played with the various transparency settings under Movie Properties (QT Pro) - but all I get is a dithered mess when I try to change those settings and bring it into AE. I can't even find much discussion of it - I found a reference to Quicktime 7.1.5 breaking alpha channels, but nothing very specific.

    Welcome to the discussions, austinpike.
    Normally, QuickTime should work the same on both systems. However, there are some deep differences in how the OS's work that mean the code isn't fully transportable, so there's a chance some things might get missed, or changed, etc.
    What you should do is go here.
    http://www.apple.com/quicktime/feedback
    And enter your details that you specified here. It could very well be that no one has reported this as an issue yet. I know I'd been perturbed by something in QuickTime I thought would just "get fixed" but a few versions after sending my bug, it was finally resolved. Hopefully, sending the feedback may put the wheels into motion to get it resolved for you.

  • How can I convert/read out from a string Hex (8-bit), the bit 0 length 1

    How can I convert/read out from Hex (8-bit), the bit 0 length 1 (string subset!!??) and convert it to decimal.
    With respect to one complement and two complement ?

    Just like Jeff, purely guessing here.
    It almost sounds like you just need to Read from Binary File?
    AND the 8-bit number with 1?
    Need more details.  What exactly do you have to start with?  What exactly are you trying to get out of it?  Examples help.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • I have an AT&T iphone 6 and want to give my AT&T 4 to my wife but she is a Sprint customer.  How involved would it be to convert my 4 from AT&T to Sprint?

    I Have an AT&T iPhone 6 and wants to give my AT&T 4 to my wife but she is a Sprint customer.  Is this possible and, if so, how involved is it to convert my 4 from AT&T to Sprint?

    Likely not possible.
    Sprint is a CDMA carrier which typically do not support BYOD (Bring Your Own Device) .
    You will have to ask Sprint if they can offer service on a unlocked GSM Phone that does not have the CDMA chip.
    Its unlikely they will though.  But if they do, you will need to request AT&T unlock your iPhone so you can insert a Sim card form another carrier into it

  • How can I read channels from different SCXI modules simultaneu​sly?

    Hello.
    I have a system that consists in:
    - Three E-series DAQ boards (PCI-6034, PCI-6052 & PCI-MIO-16E)
    - One SCXI chassis (SCXI 1001)
    - 4 SCXI modules for voltage measurement connected to PCI MIO 16E
    - One SCXI module for strain gauges connected to PCI 6034
    - One SCXI module for accelerometers connected to PCI 6052
    I have to develop a software application that reads all the channels at the same time or at least in the same program cycle. I have tried to create only one DAQmx task containing all the channels, although they belong to different DAQ boards (and SCXI modules, of course), but it seems to be impossible to use channels from different devices in the same task.
    So I have created three different DAQmx tasks, one for each device and its channels. I have used one "DAQmx Start Task" VI for each task at the beggining of the loop in order to use them independently, reading their channels inside the loop in every program cycle.
    When I have run the program I have get the following error:
    "ERROR -200619 ocurred at DAQmx Start Task.vi
    Chassis cannot be used for more than one scanning operation at the same time.
    Do only one scanning operation or combine multiple scanning operations into a single operation."
    What is the problem? How can I combine these multiple scanning operations? What can I do to read all channels at the same time?
    Thanks.

    Hello pablomendana,
    it's ok that you got an error when trying to use more than one device on the same task. According to the setup you have, I agree that 3 tasks should be put in place.
    The key question I have is... Have you configured manually at MAX the SG and accel. modules to be in Parallel mode?
    I would not expect the error you get if they are in parallel mode (in which you could even read directly from the DAQ board, using DAQ device channels instead of SCXI channels).
    Unfortunately, I haven't been able to setup a system similar to yours, but I would like to know more details on what you've tried so far.
    Also, I recommend you that if still need help on setting up the system, use NI's SSP program to get support from your local NI Application Engineering organization, as this will be faster than the forum.
    Regards,
    Jorge M.

  • How can i convert video files from my mac to watch them on my iphone?, how can i convert video files to watch them on my iphone?

    how can i convert video files from my mac to watch them on my iphone?, how can i convert video files to watch them on my iphone?

    Turns out the answer to that question changes if you ask it more than 4 times, so ask it again....
    The answer depends on the type of video files you want to convert.  If they are DRM protected commercial videos, no help can be given here.  Google.

  • Change a DAQmx channel property for a single channel from a channel group

    Hi,
    I'm doing some digital output, and I'd like to tristate certain lines in each port. However, I'm having difficulty figuring out how to specify which individual lines to tristate. I input a port and a line range, e.g. PXI-6533/port0/line0:7, specify to use one channel for each line in the DAQmx Create Virtual Channel VI, retrieve the channels from the DAQmx Task Property, and try to operate on the individual channels that way.  However, this results in the following error:
    Error -200428 occurred at Property Node DAQmx Channel (arg 1) in tristate_test.vi
    Possible reason(s):
    Measurements: Value passed to the Task/Channels In control is invalid.
    The value must refer to a valid task or valid virtual channels.
    Task Name: PXI-6533/port0/line0
    The NI knowledge base article that deals with this error code talks about creating a task with the DAQ assistant, or ensuring that a task has been created. However, I'm not using the DAQ assistant, as my I/O is pretty complicated; I'm just using a bunch of virtual channels. 
    Is there a way to specify individual channels to changethe properties of without having to create additional virtual channels? I have 48 digital channels I plan to use, so the less virtual channels I have to create the better. 
    Please reference the attached VI, which demonstrates the problem I am facing. 
    Thanks for any assistance. 
    Attachments:
    tristate_test.vi ‏11 KB

    You can only software-time tristate for the 6533/6534. Have a look at the attached example.
    Adnan Zafar
    Certified LabVIEW Architect
    Coleman Technologies
    Attachments:
    tristate6533.vi ‏58 KB

  • Feature Request:  Modify Audio Channels from the Timeline in Premiere CC.1

    Why have we never been able to modify audio channels once a clip is added to a sequence?  I'm guessing there's a good reason Adobe has never had this feature.  The lack of this feature is explicitly mentioned a few times in the audio section of the Premiere Pro CC manual, as if it's a benefit NOT to have it.  But the benefit is entirely lost on me. 
    In my workflow, I synchronize my double-system video and audio before anything else.  I do this in PluralEyes (and unfortunately I'll have to keep doing it this way, until PPr's sync on sound feature gets fixed—for me it's never worked).
    Once PluralEyes has synched hours of footage and audio and placed it on a PLURALEYES GENERATED sequence, I import that sequence into Premiere.  Note:  Since I haven't gone through the step of creating a blank New Sequence, I don't get the opportunity to setup my audio channels the way I'd like in my sequence (i.e. Stereo recordings should occupy ONE track, not two.  Typically these tracks come from a camcorder and are used for reference sound, or ambient noise at best, so I don't need them taking up precious real estate in my sequence). 
    Since PluralEyes doesn't merge my clips for me (or rather I don't want it to since I'm usually doing multi-cam sequences where I want to keep all 14, or so, tracks of audio), I have to go through the clips one by one and do a Merge Clip action once I've adjusted any minor sync issues, or determined which tracks I actually want to keep.  But, and here's the key, at this stage I'm not yet 100% certain whether I'll use the nat sound or the wireless mic sound (separate audio recorder, etc).  Furthermore, I don't really want to think about that at this point.  After I've spent a few mind-numbing hours just ingesting files, sync and merges, I want to jump into the edit as soon as possible, before I lose all will to finish this edit.  If I modify my audio channels right now, I'll lose the ability to make some creative decisions later on.
    I'd like to start whacking out an assembly edit.  And then after I have a rough program, I can start looking at which audio tracks (nat or double-system) I like better in each circumstance.  This is where I become stumped that at this stage, I'm locked into whatever audio channels I've setup (or not) in the earliest stage of the edit, back before any media was actually on the timeline!  It's at this stage, and usually only at this stage that I want to start Modifying Channels—FROM THE TIMELINE!
    Does anyone else feel the same?  If not, what is your workflow?
    Feature Summary:  Right-click on any clip, (master clip, sub-clip, merged, nested or otherwise) in the timeline and choose Modify > Audio Channels.
    I've submitted a feature request, with a link back to this discussion, so please pipe in—especially if you want this feature. 

    Maybe its your specific workflow, asset mangement  and use of a 3rd party application that  runs you into an issue.
    Take Pluraleyes out of the equation, I would imagine my workflow is the same as most everyone else.  Find footage in the Media Browser.  Import it.  Create a Sequence and start editing.  Use the Source Monitor to set Ins and Outs and then Insert the clip on the timeline. 
    At this point, if the audio needs to be modified, it cannot be done on the Timeline.  The workaround, of course, is to Find Clip in Project; Modify Audio in the Project panel; then do a Matchframe to replace the audio clip.  This works, but requires many steps per clip.  Also, Matchframe in Premiere Pro CC is not reliable. 
    Introducing a new Modify Audio (from Timeline) feature as seen in the fantasy screenshot above would solve it.
    I dont use Pluraleyse ...which I understand to be a synching aid...so I dont know the workflow it imposes on one .
    Returning to Pluraleyes workflow, this issue is compounded by the need to Modify almost ALL audio.  Every stereo track is separated and placed on two MONO tracks taking up precious real estate.  This is not something Pluraleyes imposes.  It is due to the way Premiere imports XML timelines.  This would apply to sequences imported from Final Cut as well.
    In this case it would be ideal to select both the LEFT and RIGHT mono tracks and choose "Modify > Audio Channels > Merge L/R Mono to a Single Stereo track."  Ideal?  No.  I guess Ideal would be if Premiere would interpret XML files properly in the first place.
    What actually is the issue with Premieres synch and merge workflow in your case?
    Audio Sync in Premiere Pro doesn't work.  Period.

  • How can i convert a url from https to http?

    Hi,
    SSL is enabled in WLS 9.2 and its wrkng fine. And iam able to access login page in secure(https)mode. After this page i need to convert the url from https mode to http. For enabling https i added some code in web.xml. For switchinng https to http i dn't knw anythng.
    Pls gve me suggetion.
    Thanks in advance.

    Export it from iPhoto. This process will make a QuickTime movie of it. That will play on an PC that has QuickTime installed - and that's a free download for PC, and comes with iTunes for PC
    Regards
    TD

  • How can I extract the two channels from a stereo track?

    Hi,
    I am writing a class that is able to draw an audio signal. It seems to be working well but I have a question. If I load a mono audio file I am able to draw it on a graph by using the byte[] array and everything is ok until now. That's the code:
    void Draw(byte[] x)
                Graphics g=getGraphics();
                Graphics2D g2=(Graphics2D)g;
                g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,                     RenderingHints.VALUE_ANTIALIAS_ON);
                for(int i=0; i<x.length-6; i++)
                    g2.draw(new Line2D.Float(((i*(getWidth()-6))/x.length)+5, (getHeight()/2)-          ((x*(getWidth()-6))/x.length), (((i+1)*(getWidth()-6))/x.length)+5, (getHeight()/2)-     ((x[i+1]*(getWidth()-6))/x.length)));
    The results is correct only if I have a mono track. Obviously when I get a stereo track the array becomes very large so here the question. How can I extract the two audio channels from a stereo track?
    Thanks in advance.
    Maurizio Di Vitto                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    A mono audio stream is stored [sample, sample, sample, sample], so just a list of samples in an array.
    A stereo sample is interleaved in the same manner, so you get [left-sample, right-sample, left-sample, right-sample]
    So every nth sample is the 1st channel, every nth+1 is the 2nd channel...

  • How can i convert the data from mutiple-table to the other database(MSSQL)?

    Dears,
    How can i convert the data from mutiple-table to the other database such as MS-SQL?
    I have a third party system based on MS-SQL 2000.
    Now we want to make a integration between SAP R/3(Oracle) and SQL server.
    When my user releases the purchase order in R/3, the application we coded will convert the releated data to the temp database on the SQL server.
    But i don't know which tools will help me reach the purpose.  BAPI, LSMW, IDoc... ???
    Would anybody tell me which way is better and how to do?
    Thanks a lot!
    Kevin Wang

    Hello Kevin,
    The question to use which method depend on your detail requirements. If you use BAPI, you need to find which Bapi can provide the data you want. Bapi normally use as a function called by external system. So you need to develop an external program like VB/Java to call this Bapi and move it to SQL. LSMW is use when you want to upload data from an external system to SAP. So it does not serve your requirement. Idoc can be use to export data to an external system. Again like Bapi, you need to find what Idoc can provide the data you want. However, it does not any programming from the external system. If I were you, based on your requirements, I think writing an Abap program that read the data you want and download it to NT/SQL server will be faster and easier.

  • Error in converting exchange rate from  to AED

    Dear All,
    When creating sales order I am receiving following error: Condition ZPRS: Error in converting exchange rate from  to AED.
    Such a error I am receiving when in material - there is not mantained delivery plant but this is not this case.
    (interesting is that from FX currency is missing...)
    I have also tried to play with customizing with plant assignment but without a result - this error is only in productive system in test everything is working fine...
    ??? any ideas ???
    many thanks for any brainstorming...
    Brgds. MIchal

    Dear Michal Duris      ,
    Have you maintained the currency conversion factors
    Check the following tcode
    OBBS
    OB08
    Compare between the production server and server in which there is no error (CHOOSE YOUR EXCHANGE RATE TYPE / DOCUMENT CURRENCY AND LOCAL CURRENCY )
    Check and revert back.
    If its not solved, please provide the error message number.
    Thanks & Regards,
    Hegal K Charles

  • Do I need a power converter to go from 220 to 110 on the ipad

    Do I need a power converter to go from 220v to 110v when charging my iPad in Europe?

    Hi,
    No Converted Needed...
    All you need is an adapter from your supply... to the sockets of the country you are in.
    Cheers,

  • When I converted a file from PDF to WORD.DOC it opened as Read Only and I'm unable to alter any of the text.  How can I solve this problem?

    When I tried to convert a file from PDF to WORD.DOC it opened as Read Only and I'm unable to alter any of the text.  How do I solve this problem?  I don't know how to change it from Read Only.

    Dear Sara
    Thank you very much for sending the converted file.  Yes, I am able to edit it - that will be very useful to me and I appreciate your help.
    Referring to your previous message when you said you'd converted via Acrobat and not Acrobat.com, I'm converting via Acrobat.com because that's the only option that is shown (how do I convert via Acrobat? - perhaps that would be more successful).  I'm using the Export PDF website, and the OCR is enabled to "Recognize text in English UK".  However, I've just tried converting a different LPA pdf form, this time for Health & Welfare https://www.gov.uk/government/uploads/system/uploads/attachment_data/file/245571/LPA114_He alth_welfare_LPA.pdf and again I have the same problem as before.  I've altered it from "Read only" and thought I'd then be able to enter text, but "Drawing Tools" is shown in the pane and I'm unable to enter anything onto the form - everything appears to be in images.  Also, the lettering on the heading of' page 1 has become jumbled, with the word "Public" overlaying the word "Guardian."  Any suggestions as to what it is I'm doing wrong would be welcome - I don't like to be beaten!
    Regards,
    Judith.

Maybe you are looking for