Jump to content

Ramp function in Veristand stimulus profile and wrong data type


Recommended Posts

Hi all,

I'm a beginner with VS (Veristand), stimuls profile and real time seq.

I nedd to introduce in my test a ramp, I found a ramp under Real-Time Sequence Library->Waveforms folder.

The function required :

  1. RampOut—The variable to ramp from the InitialValue to the FinalValue.
  2. InitialValue—The starting value from which to start ramping.
  3. FinalValue—The ending value.
  4. Duration—The duration in seconds over which to ramp RampOut.

My RampOut parameters (Temp2) is a I32 and the ramp accept only double, so the editor generate an error :

 "The expression Temp2 in of type int32 but is passed a reference into a reference parameter of type Double in Ramp(Tem2,0,100,20). Reference parameters must match exactly"

How can 'cast' Temp2 in ramp function?


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

By using this site, you agree to our Terms of Use.