NI VeriStand Add-Ons Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Scan Engine and Ethercat DAQ DIO Rate

I am running a cRio 9204 and trying to read the RMS PWM Voltage (like reading with a multimeter). I am only getting the max and min voltage.  Is there anything I can do to speed up my Custom Device or controller to get this to work?   I have set my DAQ DIO Rate to 1000Hz, and the Target Rate is 800Hz with teh Primary control loop timing source set to Custom Device Timing.

Thoughts?

0 Kudos
Message 1 of 9
(6,665 Views)

Hello wegunterjrASI,

I'm going to assume that you are using an NI 9225 module in the scan engine (hardware-timed single-point acquisition) which means that you will acquire a new data point ever 800 Hz. If this is the case, then what you are seeing is expected. You will see a single voltage reading (not Vrms) every 1.25 ms. This module returns DC voltage that needs to be processed into Vrms. This can be done using a model. If you are familiar with LabVIEW you can use the Basic Averaged DC-RMS VI to create a LabVIEW model for VeriStand. You can do a similar process with any other supported modeling environment.

Changing the DAQ DIO Rate will have no impact on FPGA based acquisition.

If you need further assistance I recommend that you post to the NI VeriStand Discussion Forum or speak to an Applications Engineer directly via support@ni.com or 1-866-ASK-MYNI. This forum is not meant for support. If you have questions specific to the Scan Engine and EtherCAT custom device it is recommended that you post to it's specific feedback forum.

Best Regards,


Lynn

National Instruments
Senior Systems Engineer
Message 2 of 9
(4,931 Views)

Aha...that makes sense. I am actually using a 9205 (with single ended - but a similar card) running in a cRio 9024 (VxWorks). Do you have any secrets on building a model with LabVIEW that will run in VxWorks?

0 Kudos
Message 3 of 9
(4,931 Views)

Ah sorry. VxWorks does not support LabVIEW models. If your only options is LabVIEW, you could consider using the Easy Custom Device Tool.

National Instruments
Senior Systems Engineer
Message 4 of 9
(4,931 Views)

HA!   I like the word Easy in the name.  I am looking into that option now.   Thanks for the help.

0 Kudos
Message 5 of 9
(4,931 Views)

Also, i thought i was posting this in the Veristand discussion forum. How do i fix that?

0 Kudos
Message 6 of 9
(4,931 Views)

I do have access to Matlab, Simulink and Code Generator...will that work for this scenario?

0 Kudos
Message 7 of 9
(4,931 Views)

Next time just submit your questions to the NI VeriStand Discussion Forum. You are currently on the Add-Ons page.

National Instruments
Senior Systems Engineer
0 Kudos
Message 8 of 9
(4,931 Views)

Yes you can use this, you will just need to write the Vrms computation code yourself.

National Instruments
Senior Systems Engineer
0 Kudos
Message 9 of 9
(4,931 Views)