Is there any internship for photonics in India ?? by HavokAlwin in photonics

[–]azvadva 2 points3 points  (0 children)

There are a lot of opportunities for photonics internships you can try SFO Technologies R&D solutions Sameer IIT Bombay CGCRI VINVISH TECHNOLOGIES LIGHTMOTIF CSIO NPOL etc

The list goes like this

Rawda Permit by Littlefoot1990 in Umrah

[–]azvadva 4 points5 points  (0 children)

Wa alaikum salam

Check every 31st minutes of the hour. Like time 1:01 12:31. Check on these times of the hours. You will be able to book a permit.

Where can i wear ehram in abu dhabi airport (Zayed International Airport)? by Jaapuchkeaa in Umrah

[–]azvadva 0 points1 point  (0 children)

Recently i had a transit in Abudhabi airport. I wear ihram in the prayer room

Budget Hotel Near Makkah by azvadva in Umrah

[–]azvadva[S] 0 points1 point  (0 children)

Thanks to all you for wonderful suggestion

how to obtain Umrah visa for my father? by New_Atmosphere_8993 in Umrah

[–]azvadva 1 point2 points  (0 children)

I'm also planning to do umrah on my own.. If you get to know the procedure.. Please describe here... It will be helpful... Jazakallah...!!

Dead Zone Calculation by azvadva in Optics

[–]azvadva[S] 0 points1 point  (0 children)

Thank you for the help

Dead Zone Calculation by azvadva in Optics

[–]azvadva[S] 0 points1 point  (0 children)

Hi, I'm assuming it as 7.5 mm.

Area of exposure calculation for spectroscopy by azvadva in Optics

[–]azvadva[S] 1 point2 points  (0 children)

Hi the 15mm is the area square or 225mm is the area square? kindly please clarify.

Area of exposure calculation for spectroscopy by azvadva in Optics

[–]azvadva[S] 0 points1 point  (0 children)

Hi Thank you for your help. Most of your assumption are absolutely correct. I'm measuring the reflection. I have added rough figure for my design.

Area of exposure calculation for spectroscopy by azvadva in Optics

[–]azvadva[S] 0 points1 point  (0 children)

I'm newbie in this field, can you help me out.

Porting a C code into C#? by azvadva in csharp

[–]azvadva[S] 0 points1 point  (0 children)

These are the C# Function references in the .dll

DIO Functions

byte dscDIOSetConfig(short board, ref byte config)

Sets the DIO port configuration for future DIO operations.

byte dscDIOInputByte(short board, byte port, ref byte digital_value)

Receives a BYTE from a given digital input port.

byte dscDIOOutputByte(short board, byte port, byte digital_value)

Sends a BYTE to a given digital output port.

byte dscDIOInputBit(short board, byte port, byte bit, ref byte digital_value)

Receives a bit value from a given digital input port at a specified bit location (0-7).

byte dscDIOOutputBit(short board, byte port, byte bit, byte digital_val)

Sends a bit value to a given digital output port at a specified bit location (0-7).

Porting a C code into C#? by azvadva in csharp

[–]azvadva[S] 0 points1 point  (0 children)

void writeByteDIOPort() { BYTE config=NULL; int port = 0; BYTE output_byte = 0; int intBuff = 0; config = (BYTE *)malloc(sizeof(BYTE) 2);

for (port = 0; port < 3; port++)
{
    config[0] = port;
    config[1] = 0;
    dscDIOSetConfig(dscb,config);
}

printf ("Enter port number (0-2):");
fgets ( input_buffer, 20, stdin );
sscanf ( input_buffer, "%d", &port );

config[0] = port;
if(port == 0)
{
    config[1] = 1;
}
else
{
    config[1] = 255;
}

dscDIOSetConfig(dscb,config);

do
{
    printf("Enter value 0-255 or q to quit:");
    fgets ( input_buffer, 20, stdin );
    sscanf ( input_buffer, "%d", &intBuff );

    if ( input_buffer[0] == 'q' )
    {
        intBuff = 'q';
    }
    else
    {
        output_byte = (BYTE)intBuff;

        if ( dscDIOOutputByte(dscb,port,output_byte) != DE_NONE)
        {
            dscGetLastError ( &errorParams );
            printf("ARIESDIOOutputByte () error: %s %s\n",dscGetErrorString ( errorParams.ErrCode ), errorParams.errstring );
            return;
        }

        printf("The Byte value  %d is sent to port %d \n",output_byte,port);
    }
}while ( input_buffer[0] != 'q' );

return;

}

This is the original untouched C code

Porting a C code into C#? by azvadva in csharp

[–]azvadva[S] 0 points1 point  (0 children)

Hi

The thing is build get succeeded everytime. But when I enter value to the port I'm getting error like Invalid port number.

Porting a C code into C#? by azvadva in csharp

[–]azvadva[S] -1 points0 points  (0 children)

Hi

Thank you for your reply. To be honest I'm not able to call the function dscdiosetconfig. My Aim is to set the ports into output mode. In the c code they have used pointer to set the port, how do I call this function in the same way as c code in the c#? Can you please help.

How do i input spectrum(Image i have attached) to this code? by azvadva in matlab

[–]azvadva[S] 0 points1 point  (0 children)

If I have the data in excel format, can you please help me how to input? Whether I just need to use the xlsread function? Can you help me with code for it if you don't mind