Jump to content

JRys

MCC Staff
  • Posts

    1,539
  • Joined

  • Last visited

Reputation Activity

  1. Like
    JRys got a reaction from AdamSorrel in MCC 128 on Raspberry Pi 5   
    Please review the following forum thread regarding Raspberry PI 5 support.
     
  2. Like
    JRys got a reaction from OscarP in Voltage not 0 in analog inputs (USB 201)   
    You can test the input (CH0) by connecting it over to the +V pin, which is +5 volt signal. Then connect the input to the ground (AGND) and it should read close to zero. Assuming this all work, connect your sensor's -U to AGND and +S to the input. 
  3. Like
    JRys got a reaction from Scott C in OpenLayers C++ API   
    The USB-1604HS-2AO uses the Universal Library from Measurement Computing; it does not use OpenLayers.
  4. Like
    JRys got a reaction from Mare in Analog Output settings   
    DAQami cannot redirect the value from an analog input to an output. Instead, consider the DASYLab software, which can. If you have C or Python programming skills, you could do it using our Universal Library API. LabVIEW is another possibility.
  5. Like
    JRys got a reaction from stealth sniper in Nexys 4 DDR confused in setting the appropriate clock period in MIG to access ddr2 memory   
    "MIG.clk_ref_i." looks like a type-o that should have been written as "the MIG clk_ref_i input terminal."
    Thanks for the heads-up on the broken link. 
  6. Like
    JRys got a reaction from Vasanthakumar in USB-CTR08: High-speed counter/timer device with eight counter I/O   
    The USB-2416-4AO (and AI-EXP32) inputs can be individually set to either differential or single-ended. However, the device has only one A/D converter, which is shared among the channels. Because of this, the measurements are not truly simultaneous. For example, if the sample rate is 100 Hz, the gap from channel to channel is 10ms.
  7. Like
    JRys got a reaction from ThanhThe in Unipolar to Bipolar Converter   
    An example of unipolar is 0 to 5 volts. An example of bipolar is -5 to + 5 volts. The AD2 Scope inputs are bipolar. If your signal is unipolar, it can be shifted to appear bipolar using the Zero parameter found in the channel settings. 
  8. Like
    JRys got a reaction from xing in where to purchase C37FF-x or C37FFS-x cable?   
    You can get 37-pin cables from L-COM. Here's an example of a 2.5 ft female cable. 
    https://www.l-com.com/d-sub-reversible-hardware-molded-d-sub-cable-db37-female-female-25-ft
  9. Like
    JRys got a reaction from ThanhThe in Amplitude Modulation   
    Generating an AM signal is simple. Start with a new workspace. Add a Wavegen instrument and configure it for Modulation, as shown. Set the Carrier frequency to 1 MHz. Turn off the FM channel. Configure the AM channel to be a Triangle wave at 10 kHz, as shown. 

    Demodulation can be done with a lock-in amplifier. Add a Scope instrument and enable Scope-1. Physically connect Scope-1 to the Wavegen channel in a loopback fashion. Start both the Wavegen Channel and the Scope. To demodulate the AM signal, add a Lock-In amplifier and configure it, as shown.

     
    Next, add a second Math channel; select Simple instead of the Lock-In amplifier. Set the channel on the Simple math channel to M1. Set the operation to AC, and it will extract the AC signal from the first Math channel. The 10 kHz triangle wave is extracted from the 1 MHz Carrier wave using the Lock-In amplifier and a Simple AC math channel. Much more information can be found in the Waveforms Help.
     

  10. Like
    JRys got a reaction from Roman Slizynski in Terminal assignment and application display   
    In DAQami, the first four channels are the voltage inputs V0...V3 and the next four are T0...T3. DAQami AI0 is V0H, V0L, and AIO4 is T0H, T0L.
    Use InstaCal first to configure the temperature channels, such as thermistor, RTD, thermocouple, etc. Thermocouples are straightforward to connect; however, the other sensor types require special wiring. InstaCal has a Show Connections button that will display a wiring diagram to make it easy. 
  11. Like
    JRys got a reaction from Namder in Currently using DASYLab 13 and looking at upgrading to DASYLab 2022_1.   
    Open Packages->Data Acquisition in the Available Devices Configurator window and unselect the Omega Engineering OMB driver. This should remove the XML messages.
    In the top image you provided, I can see that the Worksheet opened in DASYLab 2022. So, what do you mean when you say it appears not to have opened the file?
     
  12. Like
    JRys got a reaction from DAQNerd in How to take single (fresh) reading of all channels specified in the Channel List   
    The single-value read command, such as MEAS:VOLT? (@0,1,7),  initiates a new measurement every time. 
  13. Like
    JRys got a reaction from ASC_ALD in Error 42 with PCI-DAS6025 and CIO-SERB-24/FD   
    Could you try our example? Open the Generate Values LLB library in \National Instruments\LabVIEW 2022\Examples\ULx\Digital\. The example's front panel has eight buttons, so select the eight lines of FirstPortA.
  14. Like
    JRys got a reaction from amilashanaka in PMOD AD1 FPGA bitstream genatation issues   
    I suspect you forgot to constrain the pins used by the PmodAD1_01.  Go to Sources, select Constraints, and add a constraints file. Open the file and copy the constraints below. Please pay close attention to the ja_pin#_io numbers, as they are not in order. 
    ## Pmod Header JA
    set_property -dict { PACKAGE_PIN Y18   IOSTANDARD LVCMOS33 } [get_ports { ja_pin1_io }]; #IO_L17P_T2_34 Sch=ja_p[1]
    set_property -dict { PACKAGE_PIN Y19   IOSTANDARD LVCMOS33 } [get_ports { ja_pin2_io }]; #IO_L17N_T2_34 Sch=ja_n[1]
    set_property -dict { PACKAGE_PIN Y16   IOSTANDARD LVCMOS33 } [get_ports { ja_pin3_io }]; #IO_L7P_T1_34 Sch=ja_p[2]
    set_property -dict { PACKAGE_PIN Y17   IOSTANDARD LVCMOS33 } [get_ports { ja_pin4_io }]; #IO_L7N_T1_34 Sch=ja_n[2]
    set_property -dict { PACKAGE_PIN U18   IOSTANDARD LVCMOS33 } [get_ports { ja_pin7_io }]; #IO_L12P_T1_MRCC_34 Sch=ja_p[3]
    set_property -dict { PACKAGE_PIN U19   IOSTANDARD LVCMOS33 } [get_ports { ja_pin8_io }]; #IO_L12N_T1_MRCC_34 Sch=ja_n[3]
    set_property -dict { PACKAGE_PIN W18   IOSTANDARD LVCMOS33 } [get_ports { ja_pin9_io }]; #IO_L22P_T3_34 Sch=ja_p[4]
    set_property -dict { PACKAGE_PIN W19   IOSTANDARD LVCMOS33 } [get_ports { ja_pin10_io }]; #IO_L22N_T3_34 Sch=ja_n[4]
  15. Like
    JRys got a reaction from mitchellc30 in Dasylab 13 to 2022 upgrade DAQ communication Issue   
    Restart DASYLab with administrator privileges.  Go to c:\Program Files (x86)\DASYLab 2022.1_en\ and get the properties for DASYLab.exe. Select the Compatibility tab and enable Run this program as an administrator. 
  16. Like
    JRys got a reaction from Seongchul Jun in Dasylab compatibility on Windows 11   
    Please watch the following video about installing DASYLab and the Measurement Computing support. It will show how to install the Measurement Computing driver and access the input and output modules. When the driver installation gets to the destination folder panel, edit the path (press Change) so that it is \Program Files (x86)\DASYLab 2022.1_en\. Otherwise, you will get a path not found error. 
     
  17. Like
    JRys got a reaction from Saha in Issue with Raspberry MCC 128 (ADC) and optical detector ground   
    The manual says to connect a 50-ohm resistor to the ground on the detector output. The output is current, and the resistor generates the output voltage. Connect the MCC 128 input across the resistor. I recommend placing the inputs in differential mode for the measurement. If the signal is too low with the 50 ohm resistor, use a 1000-ohm load resistor. 
  18. Like
    JRys got a reaction from LordValdrick in Unity - Win 11 - USB-1208FS - C# connection for trigger   
    Below is my get-board number function. It takes a device name string, such as '1208FS', to search for the device. Once it finds a device name that contains '1208FS', it determines if 'Plus' is in the name and, if so, sets the global variable PACKETSIZE to 32. Otherwise, it's 31. It is crucial to size the buffer as a multiple of PACKETSIZE times channel count. I have also attached my test program below that uses this function. 
     
           public static int GetBoardNum(string dev)
            {
                MccDaq.DaqDeviceManager.IgnoreInstaCal();
                MccDaq.DaqDeviceDescriptor[] inventory = MccDaq.DaqDeviceManager.GetDaqDeviceInventory(MccDaq.DaqDeviceInterface.Any);
                int DevicesFound = inventory.Length;
                if (DevicesFound > 0)
                {
                    for (int boardNum = 0; boardNum < DevicesFound; boardNum++)
                    {
                        try
                        {
                            if (inventory[boardNum].ProductName.Contains(dev))
                            {
                                MccDaq.MccBoard daqBoard = MccDaq.DaqDeviceManager.CreateDaqDevice(boardNum, inventory[boardNum]);
                                if (daqBoard.BoardName.Contains("Plus"))
                                    PACKETSIZE = 32;
                                else
                                    PACKETSIZE = 31;
                                return boardNum;
                            }
                        }
                        catch (ULException ule)
                        {
                            Console.WriteLine("Error occurred: " + ule.Message);
                        }
                    }
                }
                return -1;
            }
    USB_1208FS_CONT_EXAMPLE.cs
  19. Like
    JRys got a reaction from Sodanamm in Unrecognized property 'Sensitivity' for class 'daq.dt.AnalogInputIEPEChannel'.   
    The DAQ Adaptor for MATLAB does not have a channel Sensitivity function, hence the error message. Instead, you could do your own scaling with some simple math. Let's say you have an array of voltage measurements. Divide the values in the array by 0.00922 to get g's. 
     
  20. Like
    JRys got a reaction from Martin Wollatz in mmap failed 0xffffffffffffffff   
    Use the beta version, which is at https://github.com/mccdaq/daqhats/tree/pi5
    Follow the instructions below to install. 
    1. $ cd daqhats
    2. $ sudo ./uninstall.sh
    3. $ git pull
    4. $ git checkout pi5
    5. $ sudo ./install.sh
    6. $ pip install daqhats (manually add Python support)
    You can switch back to the released library by uninstalling the library, running “git checkout master”, and then installing the library.
    Use the installed MCC DAQ HAT Manager utility application to verify communication with the MCC 118/MCC 128 or use terminal commands.
    $ sudo daqhats_read_eeproms
    $ daqhats_list_boards
  21. Like
    JRys got a reaction from Ron Byron in What value to use for MccService.DeclareRevision   
    Hello,
    The original intent for DeclareRevision was so that we could make changes or fix bugs and not have to worry that we broke your program. However, we stopped managing it quite some time ago because no matter what you set it to, it returns 5.5, and GetRevision returns 5. One indication that this is true is the GetRevision function. It has a parameter for a VXD library, which was old Visual Basic 6 technology. I think you should use MccService.DeclareRevision(out revNum) where revNum = 6.73. It may not do anything, but later when someone reads your code, they'll know you had InstaCal 6.73. 
    Best regards,
    John
  22. Like
    JRys got a reaction from Ron Byron in USB-1608GX VB Analog Input Integration   
    Hello,
    Your source of information is the Universal Library Help: https://www.mccdaq.com/pdfs/manuals/Mcculw_WebHelp/ULStart.htm. You can look up the functions to see what they do. To get to the USB-1608G page, use the Search feature and look up "USB-1608G". 
    To get started, review the following program. https://kb.mccdaq.com/KnowledgebaseArticle50847.aspx This program reads the first four channels continuously. To stop it, press any key. 
    I've attached its Visual Studio project to this post. The project uses a the mccdaq.dll. It was added to the project as Reference Extension. If you create a new project, right mouse click the project shown in the Solution Explorer and select Add->References, select Extensions and add MccDaq. 
    Best regards,
    John
    VBNET_2013_Cont_Background_Scaled_Data.zip
  23. Like
    JRys got a reaction from Ron Byron in USB-1608GX VB Analog Input Integration   
    The AInScan function creates an acquisition that consists of a group of channels, a buffer, the buffer size, and options that dictate how it is to run. Only one can be running at a given time. However, your code uses a for-loop to run multiple continuous acquisitions, which is illegal. You should have gotten an error calling the second AInScan. Change the options parameter from:
    Dim Opts As MccDaq.ScanOptions = Continuous + Background + ScaleData  
    To
    Dim Opts As MccDaq.ScanOptions = ScaleData
    This will make your for-loop wait for the AInScan function to finish. When it has, the function will return control to the for-loop and the data can be transferred and displayed.
     
  24. Like
    JRys got a reaction from zia in 1608FS Plus Chanel gain queue   
    First, you must have a signal connected to the channel. If you leave them unconnected, they will float to a strange value like 1.4 volts. If you are getting started and your sensors have yet to be connected, wire the inputs to analog ground. If you do, they should read close to zero.
    Both DAQami and TracerDAQ Pro have a voltage range setting. In the DAQami configuration, select Channels, then click one of the Analog Input channels so that it appears selected. Next to it will be a voltage range and a unit selection. In TracerDAQ Pro, choose DAQ Hardware Settings from the Edit menu. Use the DAQ Range/Mode column to change the voltage range.
     
  25. Like
    JRys got a reaction from David T. in DASYlab Modbus and Advantech Adam Modules   
    You could contact Advantech regarding how their utility program works. They should be able to tell you the register/value that must be written to reset the latch. It might be that the inputs are mirrored on the output side (coils), and writing 0 to the corresponding output resets the latch. 
×
×
  • Create New...